fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1warning: lint `single_use_lifetime` has been renamed to `single_use_lifetimes` 2 --> $DIR/renamed-lints-still-apply.rs:2:9 3 | 4LL | #![deny(single_use_lifetime)] 5 | ^^^^^^^^^^^^^^^^^^^ help: use the new name: `single_use_lifetimes` 6 | 7 = note: `#[warn(renamed_and_removed_lints)]` on by default 8 9error: lifetime parameter `'a` only used once 10 --> $DIR/renamed-lints-still-apply.rs:6:9 11 | 12LL | fn _foo<'a>(_x: &'a u32) {} 13 | ^^ -- ...is used only here 14 | | 15 | this lifetime... 16 | 17note: the lint level is defined here 18 --> $DIR/renamed-lints-still-apply.rs:2:9 19 | 20LL | #![deny(single_use_lifetime)] 21 | ^^^^^^^^^^^^^^^^^^^ 22help: elide the single-use lifetime 23 | 24LL - fn _foo<'a>(_x: &'a u32) {} 25LL + fn _foo(_x: &u32) {} 26 | 27 28error: aborting due to previous error; 1 warning emitted 29