File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 1- #![ allow(
2- unused,
3- dead_code,
4- clippy:: needless_lifetimes,
5- clippy:: needless_pass_by_value
6- ) ]
1+ #![ allow( unused, dead_code, clippy:: needless_lifetimes, clippy:: needless_pass_by_value) ]
72#![ warn( clippy:: extra_unused_lifetimes) ]
83
94fn empty ( ) { }
Original file line number Diff line number Diff line change 11error: this lifetime isn't used in the function definition
2- --> $DIR/extra_unused_lifetimes.rs:13 :14
2+ --> $DIR/extra_unused_lifetimes.rs:8 :14
33 |
44LL | fn unused_lt<'a>(x: u8) {}
55 | ^^
66 |
77 = note: `-D clippy::extra-unused-lifetimes` implied by `-D warnings`
88
99error: this lifetime isn't used in the function definition
10- --> $DIR/extra_unused_lifetimes.rs:15 :25
10+ --> $DIR/extra_unused_lifetimes.rs:10 :25
1111 |
1212LL | fn unused_lt_transitive<'a, 'b: 'a>(x: &'b u8) {
1313 | ^^
1414
1515error: this lifetime isn't used in the function definition
16- --> $DIR/extra_unused_lifetimes.rs:40 :10
16+ --> $DIR/extra_unused_lifetimes.rs:35 :10
1717 |
1818LL | fn x<'a>(&self) {}
1919 | ^^
2020
2121error: this lifetime isn't used in the function definition
22- --> $DIR/extra_unused_lifetimes.rs:66 :22
22+ --> $DIR/extra_unused_lifetimes.rs:61 :22
2323 |
2424LL | fn unused_lt<'a>(x: u8) {}
2525 | ^^
You can’t perform that action at this time.
0 commit comments