diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-05-19 12:26:06 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-05-19 12:26:06 +0000 |
| commit | cf5a803600c7a1f18883eef30de61815690664bc (patch) | |
| tree | 9cca274f3ba8b1409e98fdd7cae5dfb9c53d7374 | |
| parent | 5ff331142e03bede7f9c8264b8625caf6b65989c (diff) | |
| download | rust-cf5a803600c7a1f18883eef30de61815690664bc.tar.gz rust-cf5a803600c7a1f18883eef30de61815690664bc.zip | |
Rebase fallout
| -rw-r--r-- | compiler/rustc_passes/src/stability.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ impl<'tcx> Visitor<'tcx> for Checker<'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 |
