about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2020-07-29 21:11:14 -0400
committerJoshua Nelson <jyn514@gmail.com>2020-08-22 00:25:29 -0400
commit9db0b86f4e24c939cd33cff050ce556faf30e47d (patch)
tree71f2a6dff5f79d4352ab32c05a94ca609ed18865 /compiler/rustc_codegen_llvm/src
parent42232ba70add056cf422960ac96986264870b313 (diff)
downloadrust-9db0b86f4e24c939cd33cff050ce556faf30e47d.tar.gz
rust-9db0b86f4e24c939cd33cff050ce556faf30e47d.zip
rustdoc: Cache traits implemented by a type
This avoids taking the slow path several thousand times in a row.

- Fallback to all traits if the traits in scope are unknown
- Use a rustdoc thread_local cache instead of a query

The set of traits implemented by a type is not stable across crates:
there could be new traits added in a new crate.

- Use DocContext instead of a thread-local
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions