// if an interner exists in TLS, return it. Otherwise, prepare a
// fresh one.
// FIXME(eddyb) #8726 This should probably use a thread-local reference.
if an interner exists in TLS, return it. Otherwise, prepare a
fresh one.
FIXME(eddyb) #8726 This should probably use a thread-local reference.
if an interner exists in TLS return it . Otherwise prepare a fresh one . FIXME ( eddyb ) #8726 This should probably use a thread - local reference .
pub fn with_ident_interner<T, F: FnOnce(&mut IdentInterner) -> T>(f: F) -> T {
    thread_local!(static KEY: RefCell<IdentInterner> = {
        RefCell::new(mk_fresh_ident_interner())
    });
    KEY.with(|interner| f(&mut *interner.borrow_mut()))
}
pub fn with_ident_interner < T , F : FnOnce ( & mut IdentInterner ) -> T > ( f : F ) -> T { thread_local ! ( static KEY RefCell IdentInterner { RefCell new ( mk_fresh_ident_interner ( ) ) } ) ; KEY . with ( | interner | f ( & mut * interner . borrow_mut ( ) ) ) }
if an interner exists in TLS, return it.
if an interner exists in TLS return it .
f
F