From 2bc5a0a600d99b0597b63c7c878836b005790763 Mon Sep 17 00:00:00 2001 From: Joshua Nelson Date: Fri, 12 Feb 2021 01:59:20 -0500 Subject: 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. --- src/librustdoc/html/render/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/librustdoc/html/render') diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs index 914ad35e7a4..f5eb92c1bb5 100644 --- a/src/librustdoc/html/render/mod.rs +++ b/src/librustdoc/html/render/mod.rs @@ -181,7 +181,7 @@ impl<'tcx> Context<'tcx> { self.shared.tcx } - fn sess(&self) -> &Session { + fn sess(&self) -> &'tcx Session { &self.shared.tcx.sess } } -- cgit 1.4.1-3-g733a5