Check lint expectations and emit lint if unfulfilled (RFC-2383)

This commit is contained in:
xFrednet
2021-08-06 23:36:33 +02:00
parent 2ca9037b61
commit 44cb8fa482
3 changed files with 52 additions and 0 deletions

View File

@@ -503,4 +503,7 @@ pub fn check_crate<'tcx, T: LateLintPass<'tcx>>(
});
},
);
// This check has to be run after all lints are done processing for this crate
tcx.sess.time("check_lint_expectations", || crate::expect::check_expectations(tcx));
}