diff options
| author | Jonas Schievink <jonasschievink@gmail.com> | 2021-05-16 14:59:32 +0200 |
|---|---|---|
| committer | Jonas Schievink <jonasschievink@gmail.com> | 2021-05-16 21:57:40 +0200 |
| commit | 014e8d46f87e746bf9cb9b78c0bcf7e57c2cbc8c (patch) | |
| tree | a0e33ed739f157351fffe6df9c0ded1c36ab17b7 | |
| parent | bd16825767d53dad8851e0e36c0d2c2392b1384c (diff) | |
| download | rust-014e8d46f87e746bf9cb9b78c0bcf7e57c2cbc8c.tar.gz rust-014e8d46f87e746bf9cb9b78c0bcf7e57c2cbc8c.zip | |
Add tracking issue
5 files changed, 6 insertions, 1 deletions
diff --git a/compiler/rustc_feature/src/active.rs b/compiler/rustc_feature/src/active.rs index 78ead47d1ba..f3f9f0cd763 100644 --- a/compiler/rustc_feature/src/active.rs +++ b/compiler/rustc_feature/src/active.rs @@ -651,7 +651,7 @@ declare_features! ( (active, const_fn_unsize, "1.53.0", Some(64992), None), /// Allows `async {}` expressions in const contexts. - (active, const_async_blocks, "1.53.0", None, None), + (active, const_async_blocks, "1.53.0", Some(85368), None), /// Allows using imported `main` function (active, imported_main, "1.53.0", Some(28937), None), diff --git a/src/test/ui/consts/async-block.without_feature.stderr b/src/test/ui/consts/async-block.without_feature.stderr index 93d0fbd3950..751627c5226 100644 --- a/src/test/ui/consts/async-block.without_feature.stderr +++ b/src/test/ui/consts/async-block.without_feature.stderr @@ -4,6 +4,7 @@ error[E0658]: `async` blocks are not allowed in constants LL | const _: i32 = { core::mem::ManuallyDrop::new(async { 0 }); 4 }; | ^^^^^^^^^^^ | + = note: see issue #85368 <https://github.com/rust-lang/rust/issues/85368> for more information = help: add `#![feature(const_async_blocks)]` to the crate attributes to enable error[E0658]: `async` blocks are not allowed in statics @@ -12,6 +13,7 @@ error[E0658]: `async` blocks are not allowed in statics LL | static _FUT: &(dyn Future<Output = ()> + Sync) = &async {}; | ^^^^^^^^ | + = note: see issue #85368 <https://github.com/rust-lang/rust/issues/85368> for more information = help: add `#![feature(const_async_blocks)]` to the crate attributes to enable error: aborting due to 2 previous errors diff --git a/src/test/ui/impl-trait/issues/issue-78721.stderr b/src/test/ui/impl-trait/issues/issue-78721.stderr index b6acdfa048f..d5712dd9200 100644 --- a/src/test/ui/impl-trait/issues/issue-78721.stderr +++ b/src/test/ui/impl-trait/issues/issue-78721.stderr @@ -13,6 +13,7 @@ error[E0658]: `async` blocks are not allowed in constants LL | let f: impl core::future::Future<Output = u8> = async { 1 }; | ^^^^^^^^^^^ | + = note: see issue #85368 <https://github.com/rust-lang/rust/issues/85368> for more information = help: add `#![feature(const_async_blocks)]` to the crate attributes to enable error[E0493]: destructors cannot be evaluated at compile-time diff --git a/src/test/ui/impl-trait/issues/issue-78722.full_tait.stderr b/src/test/ui/impl-trait/issues/issue-78722.full_tait.stderr index f013547782e..7a4be1d5f6d 100644 --- a/src/test/ui/impl-trait/issues/issue-78722.full_tait.stderr +++ b/src/test/ui/impl-trait/issues/issue-78722.full_tait.stderr @@ -21,6 +21,7 @@ error[E0658]: `async` blocks are not allowed in constants LL | let f: F = async { 1 }; | ^^^^^^^^^^^ | + = note: see issue #85368 <https://github.com/rust-lang/rust/issues/85368> for more information = help: add `#![feature(const_async_blocks)]` to the crate attributes to enable error[E0493]: destructors cannot be evaluated at compile-time diff --git a/src/test/ui/impl-trait/issues/issue-78722.min_tait.stderr b/src/test/ui/impl-trait/issues/issue-78722.min_tait.stderr index 9425bc48d69..131033063d2 100644 --- a/src/test/ui/impl-trait/issues/issue-78722.min_tait.stderr +++ b/src/test/ui/impl-trait/issues/issue-78722.min_tait.stderr @@ -13,6 +13,7 @@ error[E0658]: `async` blocks are not allowed in constants LL | let f: F = async { 1 }; | ^^^^^^^^^^^ | + = note: see issue #85368 <https://github.com/rust-lang/rust/issues/85368> for more information = help: add `#![feature(const_async_blocks)]` to the crate attributes to enable error[E0493]: destructors cannot be evaluated at compile-time |
