#![feature(inline_const)] is no longer incomplete

This commit is contained in:
Gary Guo 2021-11-22 20:14:25 +00:00
parent 6d61d87b22
commit 6f38568dec
12 changed files with 5 additions and 12 deletions

View file

@ -409,7 +409,7 @@ declare_features! (
/// Allows associated types in inherent impls. /// Allows associated types in inherent impls.
(incomplete, inherent_associated_types, "1.52.0", Some(8995), None), (incomplete, inherent_associated_types, "1.52.0", Some(8995), None),
/// Allow anonymous constants from an inline `const` block /// 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 /// Allow anonymous constants from an inline `const` block in pattern position
(incomplete, inline_const_pat, "1.58.0", Some(76001), None), (incomplete, inline_const_pat, "1.58.0", Some(76001), None),
/// Allows using `pointer` and `reference` in intra-doc links /// Allows using `pointer` and `reference` in intra-doc links

View file

@ -1,6 +1,5 @@
// Regression test for issue 90013. // Regression test for issue 90013.
// check-pass // check-pass
#![allow(incomplete_features)]
#![feature(inline_const)] #![feature(inline_const)]
fn main() { fn main() {

View file

@ -1,7 +1,7 @@
// run-pass // run-pass
#![feature(inline_const)] #![feature(inline_const)]
#![allow(unused, incomplete_features)] #![allow(unused)]
// Some type that is not copyable. // Some type that is not copyable.
struct Bar; struct Bar;

View file

@ -1,6 +1,5 @@
// build-pass // build-pass
#![allow(incomplete_features)]
#![feature(inline_const)] #![feature(inline_const)]
use std::cell::Cell; use std::cell::Cell;

View file

@ -1,7 +1,7 @@
// run-pass // run-pass
#![allow(incomplete_features)]
#![feature(inline_const)] #![feature(inline_const)]
fn foo() -> i32 { fn foo() -> i32 {
const { const {
let x = 5 + 10; let x = 5 + 10;

View file

@ -1,7 +1,6 @@
// check-pass // check-pass
#![feature(inline_const)] #![feature(inline_const)]
#![allow(incomplete_features)]
pub fn todo<T>() -> T { pub fn todo<T>() -> T {
const { todo!() } const { todo!() }

View file

@ -1,4 +1,3 @@
#![allow(incomplete_features)]
#![feature(const_mut_refs)] #![feature(const_mut_refs)]
#![feature(inline_const)] #![feature(inline_const)]

View file

@ -1,5 +1,5 @@
error[E0597]: `y` does not live long enough 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>() { LL | fn foo<'a>() {
| -- lifetime `'a` defined here | -- lifetime `'a` defined here

View file

@ -1,6 +1,5 @@
// run-pass // run-pass
#![allow(incomplete_features)]
#![feature(const_mut_refs)] #![feature(const_mut_refs)]
#![feature(inline_const)] #![feature(inline_const)]

View file

@ -1,7 +1,7 @@
// run-pass // run-pass
#![allow(incomplete_features)]
#![feature(inline_const)] #![feature(inline_const)]
macro_rules! do_const_block{ macro_rules! do_const_block{
($val:block) => { const $val } ($val:block) => { const $val }
} }

View file

@ -1,6 +1,5 @@
// run-pass // run-pass
#![allow(incomplete_features)]
#![feature(inline_const)] #![feature(inline_const)]
const fn bar() -> i32 { const fn bar() -> i32 {

View file

@ -2,7 +2,6 @@
// ignore-emscripten FIXME(#45351) hits an LLVM assert // ignore-emscripten FIXME(#45351) hits an LLVM assert
#![feature(repr_simd, platform_intrinsics)] #![feature(repr_simd, platform_intrinsics)]
#![allow(incomplete_features)]
#![feature(inline_const)] #![feature(inline_const)]
#[repr(simd)] #[repr(simd)]