File tree 2 files changed +5
-10
lines changed
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) ]
7
2
#![ warn( clippy:: extra_unused_lifetimes) ]
8
3
9
4
fn empty ( ) { }
Original file line number Diff line number Diff line change 1
1
error: 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
3
3
|
4
4
LL | fn unused_lt<'a>(x: u8) {}
5
5
| ^^
6
6
|
7
7
= note: `-D clippy::extra-unused-lifetimes` implied by `-D warnings`
8
8
9
9
error: 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
11
11
|
12
12
LL | fn unused_lt_transitive<'a, 'b: 'a>(x: &'b u8) {
13
13
| ^^
14
14
15
15
error: 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
17
17
|
18
18
LL | fn x<'a>(&self) {}
19
19
| ^^
20
20
21
21
error: 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
23
23
|
24
24
LL | fn unused_lt<'a>(x: u8) {}
25
25
| ^^
You can’t perform that action at this time.
0 commit comments