File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ use std::collections::HashMap;
3030// change the semantics--everything here is immutable--but
3131// it should cut down on memory use *a lot*; applying a mark
3232// to a tree containing 50 identifiers would otherwise generate
33+ // 50 new contexts
3334pub struct SCTable {
3435 table : RefCell < Vec < SyntaxContext_ > > ,
3536 mark_memo : RefCell < HashMap < ( SyntaxContext , Mrk ) , SyntaxContext > > ,
@@ -160,7 +161,7 @@ fn with_resolve_table_mut<T>(op: |&mut ResolveTable| -> T) -> T {
160161}
161162
162163// Resolve a syntax object to a name, per MTWT.
163- // adding memoization to possibly resolve 500+ seconds in resolve for librustc (!)
164+ // adding memoization to resolve 500+ seconds in resolve for librustc (!)
164165fn resolve_internal ( id : Ident ,
165166 table : & SCTable ,
166167 resolve_table : & mut ResolveTable ) -> Name {
Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ pub enum Nonterminal {
114114 NtPat ( Gc < ast:: Pat > ) ,
115115 NtExpr ( Gc < ast:: Expr > ) ,
116116 NtTy ( P < ast:: Ty > ) ,
117+ // see IDENT, above, for meaning of bool in NtIdent:
117118 NtIdent ( Box < ast:: Ident > , bool ) ,
118119 NtMeta ( Gc < ast:: MetaItem > ) , // stuff inside brackets for attributes
119120 NtPath ( Box < ast:: Path > ) ,
You can’t perform that action at this time.
0 commit comments