about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorxFrednet <xFrednet@gmail.com>2022-03-29 00:10:45 +0200
committerxFrednet <xFrednet@gmail.com>2022-05-08 14:37:14 +0200
commit2c5e85249f8b10b5fb0caf608d8b2537620285c6 (patch)
tree8d3d6e7b8e79d54df8b5eda69dbe45923b666a47 /compiler/rustc_interface/src
parent7f03681cd941c7e18ee99549148b8aa6f468d7c2 (diff)
downloadrust-2c5e85249f8b10b5fb0caf608d8b2537620285c6.tar.gz
rust-2c5e85249f8b10b5fb0caf608d8b2537620285c6.zip
Move lint expectation checking into a separate query (RFC 2383)
Diffstat (limited to 'compiler/rustc_interface/src')
-rw-r--r--compiler/rustc_interface/src/passes.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs
index 08987dff660..00119267e85 100644
--- a/compiler/rustc_interface/src/passes.rs
+++ b/compiler/rustc_interface/src/passes.rs
@@ -1009,6 +1009,10 @@ fn analysis(tcx: TyCtxt<'_>, (): ()) -> Result<()> {
                 });
             }
         );
+
+        // This check has to be run after all lints are done processing. We don't
+        // define a lint filter, as all lint checks should have finished at this point.
+        sess.time("check_lint_expectations", || tcx.check_expectations(None));
     });
 
     Ok(())