diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-12-25 13:38:57 -0500 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-12-25 14:10:46 -0500 |
| commit | b98633b94c5354fbcb02bd0111f2aba5155c3190 (patch) | |
| tree | ebfb6e277e20318795617fbd27f514aa708bc84e /src/test/codegen/src-hash-algorithm | |
| parent | ed33453a37d602f34cc40c205f9b9b8a8aff88b5 (diff) | |
| download | rust-b98633b94c5354fbcb02bd0111f2aba5155c3190.tar.gz rust-b98633b94c5354fbcb02bd0111f2aba5155c3190.zip | |
Store callbacks in global statics
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.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
