1
Fork 0

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.
- Changes `fn sess` to properly return a borrow with the lifetime of `'tcx`, not the mutable borrow.
This commit is contained in:
Joshua Nelson 2021-02-12 01:59:20 -05:00
parent 6da9e3c226
commit 2bc5a0a600
14 changed files with 243 additions and 251 deletions

View file

@ -181,7 +181,7 @@ impl<'tcx> Context<'tcx> {
self.shared.tcx
}
fn sess(&self) -> &Session {
fn sess(&self) -> &'tcx Session {
&self.shared.tcx.sess
}
}