diff --git a/src/librustc_lint/builtin.rs b/src/librustc_lint/builtin.rs index 0987197db26c2..0688e47606f72 100644 --- a/src/librustc_lint/builtin.rs +++ b/src/librustc_lint/builtin.rs @@ -736,7 +736,7 @@ impl EarlyLintPass for BadRepr { warn.help("valid hints include `#[repr(C)]`, `#[repr(packed)]`, \ `#[repr(rust)]` and `#[repr(transparent)]`"); warn.note("for more information, visit \ - "); + "); } warn.emit(); } diff --git a/src/test/ui/feature-gate/issue-43106-gating-of-builtin-attrs.stderr b/src/test/ui/feature-gate/issue-43106-gating-of-builtin-attrs.stderr index 2b6396249bb82..f351a9e69d011 100644 --- a/src/test/ui/feature-gate/issue-43106-gating-of-builtin-attrs.stderr +++ b/src/test/ui/feature-gate/issue-43106-gating-of-builtin-attrs.stderr @@ -194,7 +194,7 @@ LL | mod inner { #![repr="3900"] } | = note: #[warn(bad_repr)] on by default = help: valid hints include `#[repr(C)]`, `#[repr(packed)]`, `#[repr(rust)]` and `#[repr(transparent)]` - = note: for more information, visit + = note: for more information, visit warning: `repr` attribute isn't configurable with a literal --> $DIR/issue-43106-gating-of-builtin-attrs.rs:320:5 @@ -203,7 +203,7 @@ LL | #[repr = "3900"] fn f() { } | ^^^^^^^^^^^^^^^^ needs a hint | = help: valid hints include `#[repr(C)]`, `#[repr(packed)]`, `#[repr(rust)]` and `#[repr(transparent)]` - = note: for more information, visit + = note: for more information, visit warning: `repr` attribute isn't configurable with a literal --> $DIR/issue-43106-gating-of-builtin-attrs.rs:326:5 @@ -212,7 +212,7 @@ LL | #[repr = "3900"] type T = S; | ^^^^^^^^^^^^^^^^ needs a hint | = help: valid hints include `#[repr(C)]`, `#[repr(packed)]`, `#[repr(rust)]` and `#[repr(transparent)]` - = note: for more information, visit + = note: for more information, visit warning: `repr` attribute isn't configurable with a literal --> $DIR/issue-43106-gating-of-builtin-attrs.rs:330:5 @@ -221,7 +221,7 @@ LL | #[repr = "3900"] impl S { } | ^^^^^^^^^^^^^^^^ needs a hint | = help: valid hints include `#[repr(C)]`, `#[repr(packed)]`, `#[repr(rust)]` and `#[repr(transparent)]` - = note: for more information, visit + = note: for more information, visit warning: `repr` attribute isn't configurable with a literal --> $DIR/issue-43106-gating-of-builtin-attrs.rs:312:1 @@ -230,7 +230,7 @@ LL | #[repr = "3900"] | ^^^^^^^^^^^^^^^^ needs a hint | = help: valid hints include `#[repr(C)]`, `#[repr(packed)]`, `#[repr(rust)]` and `#[repr(transparent)]` - = note: for more information, visit + = note: for more information, visit warning: `repr` attribute isn't configurable with a literal --> $DIR/issue-43106-gating-of-builtin-attrs.rs:62:1 @@ -239,7 +239,7 @@ LL | #![repr = "3900"] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ needs a hint | = help: valid hints include `#[repr(C)]`, `#[repr(packed)]`, `#[repr(rust)]` and `#[repr(transparent)]` - = note: for more information, visit + = note: for more information, visit warning: unused attribute --> $DIR/issue-43106-gating-of-builtin-attrs.rs:194:5 diff --git a/src/test/ui/suggestions/repr.stderr b/src/test/ui/suggestions/repr.stderr index efc7e0fd2bed5..83f5bb48f7a08 100644 --- a/src/test/ui/suggestions/repr.stderr +++ b/src/test/ui/suggestions/repr.stderr @@ -6,7 +6,7 @@ LL | #[repr] | = note: #[warn(bad_repr)] on by default = help: valid hints include `#[repr(C)]`, `#[repr(packed)]`, `#[repr(rust)]` and `#[repr(transparent)]` - = note: for more information, visit + = note: for more information, visit warning: `repr` attribute isn't configurable with a literal --> $DIR/repr.rs:17:1 @@ -15,7 +15,7 @@ LL | #[repr = "B"] | ^^^^^^^^^^^^^ needs a hint | = help: valid hints include `#[repr(C)]`, `#[repr(packed)]`, `#[repr(rust)]` and `#[repr(transparent)]` - = note: for more information, visit + = note: for more information, visit warning: `repr` attribute isn't configurable with a literal --> $DIR/repr.rs:21:3