Skip to content

Commit 14ac74d

Browse files
authored
Rollup merge of rust-lang#94213 - digama0:patch-4, r=Dylan-DPC
fix names in feature(...) suggestion
2 parents 8bb6051 + b673c63 commit 14ac74d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/rustc_feature/src/builtin_attrs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
453453
// Internal attributes: Stability, deprecation, and unsafe:
454454
// ==========================================================================
455455

456-
ungated!(feature, CrateLevel, template!(List: "name1, name1, ..."), DuplicatesOk),
456+
ungated!(feature, CrateLevel, template!(List: "name1, name2, ..."), DuplicatesOk),
457457
// DuplicatesOk since it has its own validation
458458
ungated!(
459459
rustc_deprecated, Normal,

src/test/ui/feature-gates/gated-bad-feature.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ error: malformed `feature` attribute input
2020
--> $DIR/gated-bad-feature.rs:5:1
2121
|
2222
LL | #![feature]
23-
| ^^^^^^^^^^^ help: must be of the form: `#![feature(name1, name1, ...)]`
23+
| ^^^^^^^^^^^ help: must be of the form: `#![feature(name1, name2, ...)]`
2424

2525
error: malformed `feature` attribute input
2626
--> $DIR/gated-bad-feature.rs:6:1
2727
|
2828
LL | #![feature = "foo"]
29-
| ^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#![feature(name1, name1, ...)]`
29+
| ^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#![feature(name1, name2, ...)]`
3030

3131
error: aborting due to 5 previous errors
3232

0 commit comments

Comments
 (0)