Move early lint machanism in librustc_lint.

This commit is contained in:
Camille GILLOT 2019-12-30 14:11:49 +01:00
parent 9e6fb538f9
commit 3a350e1a39
5 changed files with 399 additions and 370 deletions

View file

@ -231,7 +231,7 @@ fn configure_and_expand_inner<'a>(
metadata_loader: &'a MetadataLoaderDyn,
) -> Result<(ast::Crate, Resolver<'a>)> {
time(sess, "pre-AST-expansion lint checks", || {
lint::check_ast_crate(
rustc_lint::check_ast_crate(
sess,
lint_store,
&krate,
@ -458,7 +458,7 @@ pub fn lower_to_hir<'res, 'tcx>(
});
time(sess, "early lint checks", || {
lint::check_ast_crate(
rustc_lint::check_ast_crate(
sess,
lint_store,
&krate,