Skip to content

Commit 03321b8

Browse files
committed
Add inline const to INCOMPLETE_FEATURES
1 parent 547e5eb commit 03321b8

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

compiler/rustc_feature/src/active.rs

+1
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,7 @@ pub const INCOMPLETE_FEATURES: &[Symbol] = &[
621621
sym::const_trait_bound_opt_out,
622622
sym::lazy_normalization_consts,
623623
sym::specialization,
624+
sym::inline_const,
624625
];
625626

626627
/// Some features are not allowed to be used together at the same time, if

src/test/ui/inline-const/const-expr-array-init.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// build-pass
22

3+
#![allow(incomplete_features)]
34
#![feature(inline_const)]
45

56
use std::cell::Cell;

src/test/ui/inline-const/const-expr-basic.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// run-pass
22

3+
#![allow(incomplete_features)]
34
#![feature(inline_const)]
45
fn foo() -> i32 {
56
const {

src/test/ui/inline-const/const-expr-reference.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// run-pass
22

3+
#![allow(incomplete_features)]
34
#![feature(inline_const)]
45

56
const fn bar() -> i32 {

src/test/ui/inline-const/const-match-pat.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// run-pass
22

3+
#![allow(incomplete_features)]
34
#![feature(inline_const)]
45
const MMIO_BIT1: u8 = 4;
56
const MMIO_BIT2: u8 = 5;

0 commit comments

Comments
 (0)