|
1 | 1 | error: unnecessary lifetime parameter `'b`
|
2 |
| - --> $DIR/transitively-redundant-lifetimes.rs:4:10 |
| 2 | + --> $DIR/transitively-redundant-lifetimes.rs:3:10 |
3 | 3 | |
|
4 | 4 | LL | fn a<'a, 'b>(x: &'a &'b &'a ()) {}
|
5 | 5 | | ^^
|
6 | 6 | |
|
7 | 7 | = note: you can use the `'a` lifetime directly, in place of `'b`
|
8 | 8 | note: the lint level is defined here
|
9 |
| - --> $DIR/transitively-redundant-lifetimes.rs:2:9 |
| 9 | + --> $DIR/transitively-redundant-lifetimes.rs:1:9 |
10 | 10 | |
|
11 |
| -LL | #![deny(unused_lifetimes)] |
12 |
| - | ^^^^^^^^^^^^^^^^ |
| 11 | +LL | #![deny(redundant_lifetimes)] |
| 12 | + | ^^^^^^^^^^^^^^^^^^^ |
13 | 13 |
|
14 | 14 | error: unnecessary lifetime parameter `'b`
|
15 |
| - --> $DIR/transitively-redundant-lifetimes.rs:6:14 |
| 15 | + --> $DIR/transitively-redundant-lifetimes.rs:5:14 |
16 | 16 | |
|
17 | 17 | LL | fn b<'a: 'b, 'b: 'a>() {}
|
18 | 18 | | ^^
|
19 | 19 | |
|
20 | 20 | = note: you can use the `'a` lifetime directly, in place of `'b`
|
21 | 21 |
|
22 | 22 | error: unnecessary lifetime parameter `'a`
|
23 |
| - --> $DIR/transitively-redundant-lifetimes.rs:9:6 |
| 23 | + --> $DIR/transitively-redundant-lifetimes.rs:8:6 |
24 | 24 | |
|
25 | 25 | LL | fn c<'a>(_: Foo<&'a ()>) {}
|
26 | 26 | | ^^
|
27 | 27 | |
|
28 | 28 | = note: you can use the `'static` lifetime directly, in place of `'a`
|
29 | 29 |
|
30 | 30 | error: unnecessary lifetime parameter `'a`
|
31 |
| - --> $DIR/transitively-redundant-lifetimes.rs:19:6 |
| 31 | + --> $DIR/transitively-redundant-lifetimes.rs:18:6 |
32 | 32 | |
|
33 | 33 | LL | impl<'a: 'static> Tr<'a> for () {}
|
34 | 34 | | ^^
|
35 | 35 | |
|
36 | 36 | = note: you can use the `'static` lifetime directly, in place of `'a`
|
37 | 37 |
|
38 | 38 | error: unnecessary lifetime parameter `'b`
|
39 |
| - --> $DIR/transitively-redundant-lifetimes.rs:13:10 |
| 39 | + --> $DIR/transitively-redundant-lifetimes.rs:12:10 |
40 | 40 | |
|
41 | 41 | LL | fn d<'b: 'a>(&'b self) {}
|
42 | 42 | | ^^
|
|
0 commit comments