diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs index 3b51f8eb61c..5d633846bcf 100644 --- a/compiler/rustc_interface/src/passes.rs +++ b/compiler/rustc_interface/src/passes.rs @@ -939,6 +939,7 @@ fn analysis(tcx: TyCtxt<'_>, (): ()) -> Result<()> { // This marks the corresponding crate-level attributes // as used, and ensures that their values are valid. tcx.ensure().limits(()); + tcx.ensure().stability_index(()); } ); });