diff options
Diffstat (limited to 'compiler/rustc_interface')
| -rw-r--r-- | compiler/rustc_interface/src/passes.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs index 5d633846bcf..e88ad04e0f5 100644 --- a/compiler/rustc_interface/src/passes.rs +++ b/compiler/rustc_interface/src/passes.rs @@ -934,6 +934,11 @@ fn analysis(tcx: TyCtxt<'_>, (): ()) -> Result<()> { }); }, { + sess.time("unused_lib_feature_checking", || { + rustc_passes::stability::check_unused_or_stable_features(tcx) + }); + }, + { // We force these querie to run, // since they might not otherwise get called. // This marks the corresponding crate-level attributes @@ -1012,11 +1017,6 @@ fn analysis(tcx: TyCtxt<'_>, (): ()) -> Result<()> { .par_for_each_module(|module| tcx.ensure().check_mod_deathness(module)); }, { - sess.time("unused_lib_feature_checking", || { - rustc_passes::stability::check_unused_or_stable_features(tcx) - }); - }, - { sess.time("lint_checking", || { rustc_lint::check_crate(tcx, || { rustc_lint::BuiltinCombinedLateLintPass::new() |
