summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/declare.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-12-29 19:22:33 +0000
committerbors <bors@rust-lang.org>2021-12-29 19:22:33 +0000
commit78fd0f633faaa5b6dd254fc1456735f63a1b1238 (patch)
tree1e71acc9b5ec5436ce7b56093444f8f56884b988 /compiler/rustc_codegen_llvm/src/declare.rs
parentdf96fb166f59431e3de443835e50d5b8a7a4adb0 (diff)
parent90e371027eada63225106a8cc3c0cb548e5e56c8 (diff)
downloadrust-78fd0f633faaa5b6dd254fc1456735f63a1b1238.tar.gz
rust-78fd0f633faaa5b6dd254fc1456735f63a1b1238.zip
Auto merge of #92244 - petrochenkov:alltraits, r=cjgillot
rustc_metadata: Encode list of all crate's traits into metadata

While working on https://github.com/rust-lang/rust/pull/88679 I noticed that rustdoc is casually doing something quite expensive, something that is used only for error reporting in rustc - collecting all traits from all crates in the dependency tree.

This PR trades some minor extra time spent by metadata encoder in rustc for major gains for rustdoc (and for rustc runs with errors, which execute the `all_traits` query for better diagnostics).
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/declare.rs')
0 files changed, 0 insertions, 0 deletions