about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-02-19 16:39:03 +0000
committerbors <bors@rust-lang.org>2021-02-19 16:39:03 +0000
commit9b471a3f5fe57e5c6e08acf665f2094422415a3d (patch)
treea7cfdbfe655ddca8f88b5e00192c8ce95feb8a9a /compiler/rustc_codegen_llvm/src/builder.rs
parent8599bff5a3556059817503030e248507706e96b4 (diff)
parent2bc5a0a600d99b0597b63c7c878836b005790763 (diff)
downloadrust-9b471a3f5fe57e5c6e08acf665f2094422415a3d.tar.gz
rust-9b471a3f5fe57e5c6e08acf665f2094422415a3d.zip
Auto merge of #82020 - jyn514:mut-passes, r=camelid,GuillaumeGomez
Make `Clean` take &mut DocContext

- Take `FnMut` in `rustc_trait_selection::find_auto_trait_generics`
- Take `&mut DocContext` in most of `clean`
- Collect the iterator in auto_trait_impls instead of iterating lazily; the lifetimes were really bad.

This combined with https://github.com/rust-lang/rust/pull/82018 should hopefully help with https://github.com/rust-lang/rust/pull/82014 by allowing `cx.cache.exported_traits` to be modified in `register_res`. Previously it had to use interior mutability, which required either adding a RefCell to `cache.exported_traits` on *top* of the existing `RefCell<Cache>` or mixing reads and writes between `cx.exported_traits` and `cx.cache.exported_traits`. I don't currently have that working but I expect it to be reasonably easy to add after this.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions