1
Fork 0
rust/compiler/rustc_trait_selection/src
bors 9b471a3f5f 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.
2021-02-19 16:39:03 +00:00
..
traits Auto merge of #82020 - jyn514:mut-passes, r=camelid,GuillaumeGomez 2021-02-19 16:39:03 +00:00
autoderef.rs Remove ProjectionTy::from_ref_and_name 2021-02-13 19:29:55 +00:00
infer.rs Remove compile-fail test suite 2020-12-29 23:39:56 +03:00
lib.rs Stabilize by-value [T; N] iterator core::array::IntoIter 2020-12-29 09:16:46 +01:00
opaque_types.rs Review changes 2021-01-16 18:56:37 -05:00