diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs index 5ea1cb20990b5..670547dae9d6b 100644 --- a/compiler/rustc_interface/src/passes.rs +++ b/compiler/rustc_interface/src/passes.rs @@ -1130,13 +1130,6 @@ fn run_required_analyses(tcx: TyCtxt<'_>) { tcx.ensure_ok().check_mod_unstable_api_usage(module); }); }, - &mut || { - // We force these queries to run, - // since they might not otherwise get called. - // This marks the corresponding crate-level attributes - // as used, and ensures that their values are valid. - tcx.ensure_ok().limits(()); - }, ]); });