diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2015-10-06 01:47:35 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2015-10-06 01:47:35 +0300 |
| commit | b82d76c8a14bcdb166d453604fde6903bb52d80e (patch) | |
| tree | 4edd9bd015f31354163382c8ec156cc9843f40fa | |
| parent | f37d6fc6f3732ce00cfb332d028b46a7807341ae (diff) | |
| download | rust-b82d76c8a14bcdb166d453604fde6903bb52d80e.tar.gz rust-b82d76c8a14bcdb166d453604fde6903bb52d80e.zip | |
Add comment for the use of Ident in hash map in mtwt
| -rw-r--r-- | src/libsyntax/ext/mtwt.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsyntax/ext/mtwt.rs b/src/libsyntax/ext/mtwt.rs index bb58152e4ef..7ac0e8c64c2 100644 --- a/src/libsyntax/ext/mtwt.rs +++ b/src/libsyntax/ext/mtwt.rs @@ -35,6 +35,8 @@ use std::collections::HashMap; pub struct SCTable { table: RefCell<Vec<SyntaxContext_>>, mark_memo: RefCell<HashMap<(SyntaxContext,Mrk),SyntaxContext>>, + // The pair (Name,SyntaxContext) is actually one Ident, but it needs to be hashed and + // compared as pair (name, ctxt) and not as an Ident rename_memo: RefCell<HashMap<(SyntaxContext,(Name,SyntaxContext),Name),SyntaxContext>>, } |
