Skip to content

Commit 7c91f89

Browse files
committed
Fix typo in #[coroutine] gating error
1 parent 62bf38f commit 7c91f89

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

compiler/rustc_feature/src/builtin_attrs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
572572
// `#[coroutine]` attribute to be applied to closures to make them coroutines instead
573573
gated!(
574574
coroutine, Normal, template!(Word), ErrorFollowing,
575-
EncodeCrossCrate::No, coroutines, experimental!(coroutines)
575+
EncodeCrossCrate::No, coroutines, experimental!(coroutine)
576576
),
577577

578578
// RFC 3543

tests/ui/coroutine/gen_block.e2024.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0658]: the `#[coroutines]` attribute is an experimental feature
1+
error[E0658]: the `#[coroutine]` attribute is an experimental feature
22
--> $DIR/gen_block.rs:20:13
33
|
44
LL | let _ = #[coroutine] || yield true;
@@ -8,7 +8,7 @@ LL | let _ = #[coroutine] || yield true;
88
= help: add `#![feature(coroutines)]` to the crate attributes to enable
99
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
1010

11-
error[E0658]: the `#[coroutines]` attribute is an experimental feature
11+
error[E0658]: the `#[coroutine]` attribute is an experimental feature
1212
--> $DIR/gen_block.rs:24:13
1313
|
1414
LL | let _ = #[coroutine] || {};

tests/ui/coroutine/gen_block.none.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ LL | let _ = #[coroutine] || yield true;
4444
= help: add `#![feature(coroutines)]` to the crate attributes to enable
4545
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
4646

47-
error[E0658]: the `#[coroutines]` attribute is an experimental feature
47+
error[E0658]: the `#[coroutine]` attribute is an experimental feature
4848
--> $DIR/gen_block.rs:20:13
4949
|
5050
LL | let _ = #[coroutine] || yield true;
@@ -54,7 +54,7 @@ LL | let _ = #[coroutine] || yield true;
5454
= help: add `#![feature(coroutines)]` to the crate attributes to enable
5555
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
5656

57-
error[E0658]: the `#[coroutines]` attribute is an experimental feature
57+
error[E0658]: the `#[coroutine]` attribute is an experimental feature
5858
--> $DIR/gen_block.rs:24:13
5959
|
6060
LL | let _ = #[coroutine] || {};

tests/ui/coroutine/gen_block.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ fn main() {
1818
//~^^ ERROR `yield` can only be used in
1919

2020
let _ = #[coroutine] || yield true; //[none]~ ERROR yield syntax is experimental
21-
//~^ ERROR `#[coroutines]` attribute is an experimental feature
21+
//~^ ERROR `#[coroutine]` attribute is an experimental feature
2222
//~^^ ERROR yield syntax is experimental
2323

2424
let _ = #[coroutine] || {};
25-
//~^ ERROR `#[coroutines]` attribute is an experimental feature
25+
//~^ ERROR `#[coroutine]` attribute is an experimental feature
2626
}

0 commit comments

Comments
 (0)