Skip to content

Commit b82d76c

Browse files
committed
Add comment for the use of Ident in hash map in mtwt
1 parent f37d6fc commit b82d76c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libsyntax/ext/mtwt.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ use std::collections::HashMap;
3535
pub struct SCTable {
3636
table: RefCell<Vec<SyntaxContext_>>,
3737
mark_memo: RefCell<HashMap<(SyntaxContext,Mrk),SyntaxContext>>,
38+
// The pair (Name,SyntaxContext) is actually one Ident, but it needs to be hashed and
39+
// compared as pair (name, ctxt) and not as an Ident
3840
rename_memo: RefCell<HashMap<(SyntaxContext,(Name,SyntaxContext),Name),SyntaxContext>>,
3941
}
4042

0 commit comments

Comments
 (0)