From 014e8d46f87e746bf9cb9b78c0bcf7e57c2cbc8c Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Sun, 16 May 2021 14:59:32 +0200 Subject: Add tracking issue --- compiler/rustc_feature/src/active.rs | 2 +- src/test/ui/consts/async-block.without_feature.stderr | 2 ++ src/test/ui/impl-trait/issues/issue-78721.stderr | 1 + src/test/ui/impl-trait/issues/issue-78722.full_tait.stderr | 1 + src/test/ui/impl-trait/issues/issue-78722.min_tait.stderr | 1 + 5 files changed, 6 insertions(+), 1 deletion(-) 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 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 + Sync) = &async {}; | ^^^^^^^^ | + = note: see issue #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 = async { 1 }; | ^^^^^^^^^^^ | + = note: see issue #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 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 for more information = help: add `#![feature(const_async_blocks)]` to the crate attributes to enable error[E0493]: destructors cannot be evaluated at compile-time -- cgit 1.4.1-3-g733a5