Skip to content

Commit 52b67b1

Browse files
committed
Remove a bunch of now-unnecessary const_let feature gates
1 parent df2123c commit 52b67b1

File tree

5 files changed

+2
-47
lines changed

5 files changed

+2
-47
lines changed

src/libcore/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
#![feature(const_slice_len)]
121121
#![feature(const_str_as_bytes)]
122122
#![feature(const_str_len)]
123-
#![feature(const_let)]
123+
#![cfg_attr(stage0, feature(const_let))]
124124
#![feature(const_int_rotate)]
125125
#![feature(const_int_wrapping)]
126126
#![feature(const_int_sign)]

src/test/run-pass/ctfe/const-fn-destructuring-arg.rs

Lines changed: 0 additions & 26 deletions
This file was deleted.

src/test/run-pass/ctfe/issue-37550.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#![allow(dead_code)]
1313
#![allow(unused_variables)]
1414

15-
#![feature(const_fn, const_let)]
15+
#![feature(const_fn)]
1616

1717
const fn x() {
1818
let t = true;

src/test/ui/consts/const_let_assign2.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
// compile-pass
22

3-
#![feature(const_let)]
4-
#![feature(const_fn)]
5-
63
pub struct AA {
74
pub data: [u8; 10],
85
}

src/test/ui/issues/issue-44056.rs

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)