From 27d8cd7db046746bbfbb0bd3e1df40757cabb1fe Mon Sep 17 00:00:00 2001 From: Camille GILLOT Date: Wed, 19 Jan 2022 16:24:49 +0100 Subject: Cleanup feature gates. --- compiler/rustc_interface/src/passes.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'compiler/rustc_interface/src') 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 @@ -933,6 +933,11 @@ fn analysis(tcx: TyCtxt<'_>, (): ()) -> Result<()> { tcx.ensure().check_mod_const_bodies(module); }); }, + { + 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. @@ -1011,11 +1016,6 @@ fn analysis(tcx: TyCtxt<'_>, (): ()) -> Result<()> { tcx.hir() .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, || { -- cgit 1.4.1-3-g733a5