diff options
| author | bors <bors@rust-lang.org> | 2023-10-16 14:34:53 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-10-16 14:34:53 +0000 |
| commit | 98c1e3d95ba7f5d29915dac3f391a296648aa74c (patch) | |
| tree | 4f5056f4d448de62364aac90bec96ecc68a7f391 /compiler/rustc_const_eval/src | |
| parent | e7bdc5f9f869219e8d20060b42a09ea10a837851 (diff) | |
| parent | d284c8a2d7a2de918a966bee9c9069d7b5bf06bf (diff) | |
| download | rust-98c1e3d95ba7f5d29915dac3f391a296648aa74c.tar.gz rust-98c1e3d95ba7f5d29915dac3f391a296648aa74c.zip | |
Auto merge of #116550 - nnethercote:rustc-features-more, r=Nilstrieb
Cleanup `rustc_features` some more The sequel to #116437. r? `@Nilstrieb`
Diffstat (limited to 'compiler/rustc_const_eval/src')
| -rw-r--r-- | compiler/rustc_const_eval/src/transform/check_consts/check.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/transform/check_consts/check.rs b/compiler/rustc_const_eval/src/transform/check_consts/check.rs index d476805c0b2..92e7922ad3b 100644 --- a/compiler/rustc_const_eval/src/transform/check_consts/check.rs +++ b/compiler/rustc_const_eval/src/transform/check_consts/check.rs @@ -323,7 +323,7 @@ impl<'mir, 'tcx> Checker<'mir, 'tcx> { let gate = match op.status_in_item(self.ccx) { Status::Allowed => return, - Status::Unstable(gate) if self.tcx.features().enabled(gate) => { + Status::Unstable(gate) if self.tcx.features().active(gate) => { let unstable_in_stable = self.ccx.is_const_stable_const_fn() && !super::rustc_allow_const_fn_unstable(self.tcx, self.def_id(), gate); if unstable_in_stable { |
