about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2019-12-25 13:38:57 -0500
committerMark Rousskov <mark.simulacrum@gmail.com>2019-12-25 14:10:46 -0500
commitb98633b94c5354fbcb02bd0111f2aba5155c3190 (patch)
treeebfb6e277e20318795617fbd27f514aa708bc84e /src/test/codegen/src-hash-algorithm
parented33453a37d602f34cc40c205f9b9b8a8aff88b5 (diff)
downloadrust-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