Skip to content

Commit e7f3fb6

Browse files
committed
---
yaml --- r: 131345 b: refs/heads/dist-snap c: 04ced03 h: refs/heads/master i: 131343: 0097d09 v: v3
1 parent 8295fe0 commit e7f3fb6

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 457a3c991d79b971be07fce75f9d0c12848fb37c
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: e3361bcbc259cf25b21e9ae50701d9030ad1f513
9+
refs/heads/dist-snap: 04ced031ad52cfa33f30dbd55f72aff1d95813a3
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/libsyntax/ext/mtwt.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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
3334
pub 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 (!)
164165
fn resolve_internal(id: Ident,
165166
table: &SCTable,
166167
resolve_table: &mut ResolveTable) -> Name {

branches/dist-snap/src/libsyntax/parse/token.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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>),

0 commit comments

Comments
 (0)