libsyntax: fix casing in error message
This commit is contained in:
parent
5aac93c8fb
commit
e4e4039c5b
4 changed files with 5 additions and 5 deletions
|
|
@ -1138,7 +1138,7 @@ pub const BUILTIN_ATTRIBUTES: &'static [(&'static str, AttributeType, AttributeG
|
|||
Gated(Stability::Deprecated("https://github.com/rust-lang/rust/issues/44489\
|
||||
#issuecomment-415140224"),
|
||||
"panic_implementation",
|
||||
"This attribute was renamed to `panic_handler`",
|
||||
"this attribute was renamed to `panic_handler`",
|
||||
cfg_fn!(panic_implementation))),
|
||||
|
||||
// RFC 2070
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
use core::panic::PanicInfo;
|
||||
|
||||
#[panic_implementation] //~ ERROR This attribute was renamed to `panic_handler` (see issue #44489)
|
||||
#[panic_implementation] //~ ERROR this attribute was renamed to `panic_handler` (see issue #44489)
|
||||
fn panic(info: &PanicInfo) -> ! {
|
||||
loop {}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
error[E0658]: This attribute was renamed to `panic_handler` (see issue #44489)
|
||||
error[E0658]: this attribute was renamed to `panic_handler` (see issue #44489)
|
||||
--> $DIR/feature-gate-panic-implementation.rs:18:1
|
||||
|
|
||||
LL | #[panic_implementation] //~ ERROR This attribute was renamed to `panic_handler` (see issue #44489)
|
||||
LL | #[panic_implementation] //~ ERROR this attribute was renamed to `panic_handler` (see issue #44489)
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(panic_implementation)] to the crate attributes to enable
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
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
|
||||
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
|
||||
--> $DIR/panic-implementation-deprecated.rs:19:1
|
||||
|
|
||||
LL | #[panic_implementation]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue