Skip to content

Commit e4e4039

Browse files
author
Alva Snædís
committed
libsyntax: fix casing in error message
1 parent 5aac93c commit e4e4039

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/libsyntax/feature_gate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1138,7 +1138,7 @@ pub const BUILTIN_ATTRIBUTES: &'static [(&'static str, AttributeType, AttributeG
11381138
Gated(Stability::Deprecated("https://github.com/rust-lang/rust/issues/44489\
11391139
#issuecomment-415140224"),
11401140
"panic_implementation",
1141-
"This attribute was renamed to `panic_handler`",
1141+
"this attribute was renamed to `panic_handler`",
11421142
cfg_fn!(panic_implementation))),
11431143

11441144
// RFC 2070

src/test/ui/feature-gates/feature-gate-panic-implementation.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
use core::panic::PanicInfo;
1717

18-
#[panic_implementation] //~ ERROR This attribute was renamed to `panic_handler` (see issue #44489)
18+
#[panic_implementation] //~ ERROR this attribute was renamed to `panic_handler` (see issue #44489)
1919
fn panic(info: &PanicInfo) -> ! {
2020
loop {}
2121
}

src/test/ui/feature-gates/feature-gate-panic-implementation.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
error[E0658]: This attribute was renamed to `panic_handler` (see issue #44489)
1+
error[E0658]: this attribute was renamed to `panic_handler` (see issue #44489)
22
--> $DIR/feature-gate-panic-implementation.rs:18:1
33
|
4-
LL | #[panic_implementation] //~ ERROR This attribute was renamed to `panic_handler` (see issue #44489)
4+
LL | #[panic_implementation] //~ ERROR this attribute was renamed to `panic_handler` (see issue #44489)
55
| ^^^^^^^^^^^^^^^^^^^^^^^
66
|
77
= help: add #![feature(panic_implementation)] to the crate attributes to enable

src/test/ui/panic-implementation/panic-implementation-deprecated.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: use of deprecated attribute `panic_implementation`: This attribute was renamed to `panic_handler`. See https://github.com/rust-lang/rust/issues/44489#issuecomment-415140224
1+
error: use of deprecated attribute `panic_implementation`: this attribute was renamed to `panic_handler`. See https://github.com/rust-lang/rust/issues/44489#issuecomment-415140224
22
--> $DIR/panic-implementation-deprecated.rs:19:1
33
|
44
LL | #[panic_implementation]

0 commit comments

Comments
 (0)