whitespace, reindentation, and comments only
This commit is contained in:
@@ -51,6 +51,12 @@ impl Ident {
|
||||
if (self.ctxt == other.ctxt) {
|
||||
self.name == other.name
|
||||
} else {
|
||||
// IF YOU SEE ONE OF THESE FAILS: it means that you're comparing
|
||||
// idents that have different contexts. You can't fix this without
|
||||
// knowing whether the comparison should be hygienic or non-hygienic.
|
||||
// if it should be non-hygienic (most things are), just compare the
|
||||
// 'name' fields of the idents. Or, even better, replace the idents
|
||||
// with Name's.
|
||||
fail!(fmt!("not allowed to compare these idents: %?, %?", self, other));
|
||||
}
|
||||
}
|
||||
@@ -128,6 +134,7 @@ pub type FnIdent = Option<Ident>;
|
||||
pub struct Lifetime {
|
||||
id: NodeId,
|
||||
span: Span,
|
||||
// FIXME #7743 : change this to Name!
|
||||
ident: Ident
|
||||
}
|
||||
|
||||
@@ -647,7 +654,6 @@ pub enum matcher_ {
|
||||
// lo, hi position-in-match-array used:
|
||||
match_seq(~[matcher], Option<::parse::token::Token>, bool, uint, uint),
|
||||
// parse a Rust NT: name to bind, name of NT, position in match array:
|
||||
// NOTE: 'name of NT' shouldnt really be represented as an ident, should it?
|
||||
match_nonterminal(Ident, Ident, uint)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user