2021-02-28 05:12:54 +00:00
|
|
|
warning: lint `single_use_lifetime` has been renamed to `single_use_lifetimes`
|
|
|
|
--> $DIR/renamed-lints-still-apply.rs:2:9
|
|
|
|
|
|
|
|
|
LL | #![deny(single_use_lifetime)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: use the new name: `single_use_lifetimes`
|
|
|
|
|
|
|
|
|
= note: `#[warn(renamed_and_removed_lints)]` on by default
|
|
|
|
|
|
|
|
error: lifetime parameter `'a` only used once
|
|
|
|
--> $DIR/renamed-lints-still-apply.rs:6:9
|
|
|
|
|
|
|
|
|
LL | fn _foo<'a>(_x: &'a u32) {}
|
|
|
|
| ^^ -- ...is used only here
|
|
|
|
| |
|
|
|
|
| this lifetime...
|
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/renamed-lints-still-apply.rs:2:9
|
|
|
|
|
|
|
|
|
LL | #![deny(single_use_lifetime)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
help: elide the single-use lifetime
|
|
|
|
|
|
2021-06-22 02:07:19 +00:00
|
|
|
LL - fn _foo<'a>(_x: &'a u32) {}
|
|
|
|
LL + fn _foo(_x: &u32) {}
|
2022-06-08 17:34:57 +00:00
|
|
|
|
|
2021-02-28 05:12:54 +00:00
|
|
|
|
|
|
|
error: aborting due to previous error; 1 warning emitted
|
|
|
|
|