mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 17:18:32 +03:00
Add comment for the use of Ident in hash map in mtwt
This commit is contained in:
@@ -35,6 +35,8 @@
|
||||
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>>,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user