#![feature(inline_const)]
is no longer incomplete
This commit is contained in:
parent
6d61d87b22
commit
6f38568dec
12 changed files with 5 additions and 12 deletions
|
@ -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
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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!() }
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#![allow(incomplete_features)]
|
|
||||||
#![feature(const_mut_refs)]
|
#![feature(const_mut_refs)]
|
||||||
#![feature(inline_const)]
|
#![feature(inline_const)]
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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)]
|
||||||
|
|
||||||
|
|
|
@ -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 }
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue