From cf5a803600c7a1f18883eef30de61815690664bc Mon Sep 17 00:00:00 2001 From: Oli Scherer Date: Thu, 19 May 2022 12:26:06 +0000 Subject: [PATCH] Rebase fallout --- compiler/rustc_passes/src/stability.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_passes/src/stability.rs b/compiler/rustc_passes/src/stability.rs index 8f8f677cad4..70cb1f2a281 100644 --- a/compiler/rustc_passes/src/stability.rs +++ b/compiler/rustc_passes/src/stability.rs @@ -745,7 +745,7 @@ fn visit_item(&mut self, item: &'tcx hir::Item<'tcx>) { // `#![feature(const_trait_impl)]` is unstable, so any impl declared stable // needs to have an error emitted. if features.const_trait_impl - && constness == hir::Constness::Const + && *constness == hir::Constness::Const && const_stab.map_or(false, |(stab, _)| stab.is_const_stable()) { self.tcx