Skip to content

Commit

Permalink
Add inline const to INCOMPLETE_FEATURES
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino committed Oct 16, 2020
1 parent 547e5eb commit 03321b8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_feature/src/active.rs
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,7 @@ pub const INCOMPLETE_FEATURES: &[Symbol] = &[
sym::const_trait_bound_opt_out,
sym::lazy_normalization_consts,
sym::specialization,
sym::inline_const,
];

/// Some features are not allowed to be used together at the same time, if
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/inline-const/const-expr-array-init.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// build-pass

#![allow(incomplete_features)]
#![feature(inline_const)]

use std::cell::Cell;
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/inline-const/const-expr-basic.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-pass

#![allow(incomplete_features)]
#![feature(inline_const)]
fn foo() -> i32 {
const {
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/inline-const/const-expr-reference.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-pass

#![allow(incomplete_features)]
#![feature(inline_const)]

const fn bar() -> i32 {
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/inline-const/const-match-pat.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-pass

#![allow(incomplete_features)]
#![feature(inline_const)]
const MMIO_BIT1: u8 = 4;
const MMIO_BIT2: u8 = 5;
Expand Down

0 comments on commit 03321b8

Please sign in to comment.