]> git.lizzy.rs Git - rust.git/commitdiff
Don't require LintStore to live for 'a in configure_and_expand_inner
authorbjorn3 <bjorn3@users.noreply.github.com>
Tue, 1 Jun 2021 09:52:44 +0000 (11:52 +0200)
committerbjorn3 <bjorn3@users.noreply.github.com>
Tue, 8 Jun 2021 17:24:17 +0000 (19:24 +0200)
compiler/rustc_interface/src/passes.rs

index 802d00faef9acbe3f8cade8e48885222097ac2c4..62abc5e696430ef8e0d3f66a29a33df3e1ed7e20 100644 (file)
@@ -271,7 +271,7 @@ fn pre_expansion_lint(
 
 fn configure_and_expand_inner<'a>(
     sess: &'a Session,
-    lint_store: &'a LintStore,
+    lint_store: &LintStore,
     mut krate: ast::Crate,
     crate_name: &str,
     resolver_arenas: &'a ResolverArenas<'a>,