Skip to content

Commit

Permalink
#![feature(inline_const)] is no longer incomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
nbdd0121 committed Nov 22, 2021
1 parent 6d61d87 commit 6f38568
Show file tree
Hide file tree
Showing 12 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion compiler/rustc_feature/src/active.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ declare_features! (
/// Allows associated types in inherent impls.
(incomplete, inherent_associated_types, "1.52.0", Some(8995), None),
/// Allow anonymous constants from an inline `const` block
(incomplete, inline_const, "1.49.0", Some(76001), None),
(active, inline_const, "1.49.0", Some(76001), None),
/// Allow anonymous constants from an inline `const` block in pattern position
(incomplete, inline_const_pat, "1.58.0", Some(76001), None),
/// Allows using `pointer` and `reference` in intra-doc links
Expand Down
1 change: 0 additions & 1 deletion src/test/ui/consts/closure-structural-match-issue-90013.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Regression test for issue 90013.
// check-pass
#![allow(incomplete_features)]
#![feature(inline_const)]

fn main() {
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/consts/const-blocks/fn-call-in-const.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// run-pass

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

// Some type that is not copyable.
struct Bar;
Expand Down
1 change: 0 additions & 1 deletion src/test/ui/inline-const/const-expr-array-init.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// build-pass

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

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

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

fn foo() -> i32 {
const {
let x = 5 + 10;
Expand Down
1 change: 0 additions & 1 deletion src/test/ui/inline-const/const-expr-inference.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// check-pass

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

pub fn todo<T>() -> T {
const { todo!() }
Expand Down
1 change: 0 additions & 1 deletion src/test/ui/inline-const/const-expr-lifetime-err.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![allow(incomplete_features)]
#![feature(const_mut_refs)]
#![feature(inline_const)]

Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/inline-const/const-expr-lifetime-err.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0597]: `y` does not live long enough
--> $DIR/const-expr-lifetime-err.rs:24:30
--> $DIR/const-expr-lifetime-err.rs:23:30
|
LL | fn foo<'a>() {
| -- lifetime `'a` defined here
Expand Down
1 change: 0 additions & 1 deletion src/test/ui/inline-const/const-expr-lifetime.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// run-pass

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

Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/inline-const/const-expr-macro.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// run-pass

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

macro_rules! do_const_block{
($val:block) => { const $val }
}
Expand Down
1 change: 0 additions & 1 deletion src/test/ui/inline-const/const-expr-reference.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// run-pass

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

const fn bar() -> i32 {
Expand Down
1 change: 0 additions & 1 deletion src/test/ui/simd/intrinsic/generic-elements-pass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// ignore-emscripten FIXME(#45351) hits an LLVM assert

#![feature(repr_simd, platform_intrinsics)]
#![allow(incomplete_features)]
#![feature(inline_const)]

#[repr(simd)]
Expand Down

0 comments on commit 6f38568

Please sign in to comment.