Avoid clearing the string interner.

This commit is contained in:
Jeffrey Seyfried 2016-11-18 22:58:16 +00:00
parent 3ea2bc4e93
commit ff4994235a
2 changed files with 0 additions and 7 deletions

View File

@ -210,9 +210,6 @@ pub fn compile_input(sess: &Session,
tcx.print_debug_stats();
}
// Discard interned strings as they are no longer required.
token::clear_ident_interner();
Ok((outputs, trans))
})??
};

View File

@ -454,10 +454,6 @@ pub fn reset_ident_interner() {
with_ident_interner(|interner| *interner = mk_fresh_ident_interner());
}
pub fn clear_ident_interner() {
with_ident_interner(|interner| *interner = IdentInterner::new());
}
/// Represents a string stored in the thread-local interner. Because the
/// interner lives for the life of the thread, this can be safely treated as an
/// immortal string, as long as it never crosses between threads.