From 15b7f9224373a95713adab3fc16a1f668d9654c2 Mon Sep 17 00:00:00 2001 From: mejrs <59372212+mejrs@users.noreply.github.com> Date: Thu, 8 Oct 2026 14:35:26 +0200 Subject: [PATCH] omit unconditionally invoking crate level limits query These are always checked in attribute parsing --- compiler/rustc_interface/src/passes.rs | 7 ------- 1 file changed, 7 deletions(-) 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(()); - }, ]); });