comments only
This commit is contained in:
@@ -190,6 +190,8 @@ pub struct TyParam {
|
|||||||
pub span: Span
|
pub span: Span
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Represents lifetimes and type parameters attached to a declaration
|
||||||
|
/// of a function, enum, trait, etc.
|
||||||
#[deriving(Clone, PartialEq, Eq, Encodable, Decodable, Hash)]
|
#[deriving(Clone, PartialEq, Eq, Encodable, Decodable, Hash)]
|
||||||
pub struct Generics {
|
pub struct Generics {
|
||||||
pub lifetimes: Vec<Lifetime>,
|
pub lifetimes: Vec<Lifetime>,
|
||||||
@@ -288,7 +290,7 @@ pub enum Pat_ {
|
|||||||
PatWild,
|
PatWild,
|
||||||
PatWildMulti,
|
PatWildMulti,
|
||||||
// A PatIdent may either be a new bound variable,
|
// A PatIdent may either be a new bound variable,
|
||||||
// or a nullary enum (in which case the second field
|
// or a nullary enum (in which case the third field
|
||||||
// is None).
|
// is None).
|
||||||
// In the nullary enum case, the parser can't determine
|
// In the nullary enum case, the parser can't determine
|
||||||
// which it is. The resolver determines this, and
|
// which it is. The resolver determines this, and
|
||||||
|
|||||||
@@ -841,9 +841,9 @@ fn expand_pat(p: Gc<ast::Pat>, fld: &mut MacroExpander) -> Gc<ast::Pat> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// a tree-folder that applies every rename in its (mutable) list
|
/// A tree-folder that applies every rename in its (mutable) list
|
||||||
// to every identifier, including both bindings and varrefs
|
/// to every identifier, including both bindings and varrefs
|
||||||
// (and lots of things that will turn out to be neither)
|
/// (and lots of things that will turn out to be neither)
|
||||||
pub struct IdentRenamer<'a> {
|
pub struct IdentRenamer<'a> {
|
||||||
renames: &'a mtwt::RenameList,
|
renames: &'a mtwt::RenameList,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user