File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
branches/try2/src/libsyntax Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
5
5
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
- refs/heads/try2: e3361bcbc259cf25b21e9ae50701d9030ad1f513
8
+ refs/heads/try2: 04ced031ad52cfa33f30dbd55f72aff1d95813a3
9
9
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ use std::collections::HashMap;
30
30
// change the semantics--everything here is immutable--but
31
31
// it should cut down on memory use *a lot*; applying a mark
32
32
// to a tree containing 50 identifiers would otherwise generate
33
+ // 50 new contexts
33
34
pub struct SCTable {
34
35
table : RefCell < Vec < SyntaxContext_ > > ,
35
36
mark_memo : RefCell < HashMap < ( SyntaxContext , Mrk ) , SyntaxContext > > ,
@@ -160,7 +161,7 @@ fn with_resolve_table_mut<T>(op: |&mut ResolveTable| -> T) -> T {
160
161
}
161
162
162
163
// 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 (!)
164
165
fn resolve_internal ( id : Ident ,
165
166
table : & SCTable ,
166
167
resolve_table : & mut ResolveTable ) -> Name {
Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ pub enum Nonterminal {
114
114
NtPat ( Gc < ast:: Pat > ) ,
115
115
NtExpr ( Gc < ast:: Expr > ) ,
116
116
NtTy ( P < ast:: Ty > ) ,
117
+ // see IDENT, above, for meaning of bool in NtIdent:
117
118
NtIdent ( Box < ast:: Ident > , bool ) ,
118
119
NtMeta ( Gc < ast:: MetaItem > ) , // stuff inside brackets for attributes
119
120
NtPath ( Box < ast:: Path > ) ,
You can’t perform that action at this time.
0 commit comments