about summary refs log tree commit diff
path: root/src/librustc_data_structures/atomic_ref.rs
AgeCommit message (Collapse)AuthorLines
2019-12-25Store callbacks in global staticsMark Rousskov-0/+26
The callbacks have precisely two states: the default, and the one present throughout almost all of the rustc run (the filled in value which has access to TyCtxt). We used to store this as a thread local, and reset it on each thread to the non-default value. But this is somewhat wasteful, since there is no reason to set it globally -- while the callbacks themselves access TLS, they do not do so in a manner that fails in when we do not have TLS to work with.