libsyntax: add optional help message for deprecated features
This commit is contained in:
parent
e4e4039c5b
commit
79da7a0a2f
4 changed files with 13 additions and 10 deletions
|
|
@ -2,7 +2,7 @@ error: use of deprecated attribute `dropck_parametricity`: unsafe_destructor_bli
|
|||
--> $DIR/feature-gate-dropck-ugeh-2.rs:17:5
|
||||
|
|
||||
LL | #[unsafe_destructor_blind_to_params]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace this attribute with `#[may_dangle]`
|
||||
|
|
||||
note: lint level defined here
|
||||
--> $DIR/feature-gate-dropck-ugeh-2.rs:11:9
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ error: use of deprecated attribute `panic_implementation`: this attribute was re
|
|||
--> $DIR/panic-implementation-deprecated.rs:19:1
|
||||
|
|
||||
LL | #[panic_implementation]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^ help: replace this attribute with `#[panic_handler]`
|
||||
|
|
||||
note: lint level defined here
|
||||
--> $DIR/panic-implementation-deprecated.rs:13:9
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue