Skip to content

Commit

Permalink
Add comment for the use of Ident in hash map in mtwt
Browse files Browse the repository at this point in the history
  • Loading branch information
petrochenkov committed Oct 5, 2015
1 parent f37d6fc commit b82d76c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libsyntax/ext/mtwt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>>,
}

Expand Down

0 comments on commit b82d76c

Please sign in to comment.