|
1 |
| -warning: running cargo clippy on a crate that also imports the clippy plugin |
2 |
| - |
3 | 1 | error: Constants have by default a `'static` lifetime
|
4 |
| - --> $DIR/const_static_lifetime.rs:7:17 |
| 2 | + --> $DIR/const_static_lifetime.rs:4:17 |
5 | 3 | |
|
6 |
| -7 | const VAR_ONE: &'static str = "Test constant #1"; // ERROR Consider removing 'static. |
| 4 | +4 | const VAR_ONE: &'static str = "Test constant #1"; // ERROR Consider removing 'static. |
7 | 5 | | ^^^^^^^ help: consider removing `'static`: `&str`
|
8 | 6 | |
|
9 | 7 | = note: `-D const-static-lifetime` implied by `-D warnings`
|
10 | 8 |
|
11 | 9 | error: Constants have by default a `'static` lifetime
|
12 |
| - --> $DIR/const_static_lifetime.rs:11:21 |
13 |
| - | |
14 |
| -11 | const VAR_THREE: &[&'static str] = &["one", "two"]; // ERROR Consider removing 'static |
15 |
| - | ^^^^^^^ help: consider removing `'static`: `&str` |
| 10 | + --> $DIR/const_static_lifetime.rs:8:21 |
| 11 | + | |
| 12 | +8 | const VAR_THREE: &[&'static str] = &["one", "two"]; // ERROR Consider removing 'static |
| 13 | + | ^^^^^^^ help: consider removing `'static`: `&str` |
16 | 14 |
|
17 | 15 | error: Constants have by default a `'static` lifetime
|
18 |
| - --> $DIR/const_static_lifetime.rs:13:32 |
| 16 | + --> $DIR/const_static_lifetime.rs:10:32 |
19 | 17 | |
|
20 |
| -13 | const VAR_FOUR: (&str, (&str, &'static str), &'static str) = ("on", ("th", "th"), "on"); // ERROR Consider removing 'static |
| 18 | +10 | const VAR_FOUR: (&str, (&str, &'static str), &'static str) = ("on", ("th", "th"), "on"); // ERROR Consider removing 'static |
21 | 19 | | ^^^^^^^ help: consider removing `'static`: `&str`
|
22 | 20 |
|
23 | 21 | error: Constants have by default a `'static` lifetime
|
24 |
| - --> $DIR/const_static_lifetime.rs:13:47 |
| 22 | + --> $DIR/const_static_lifetime.rs:10:47 |
25 | 23 | |
|
26 |
| -13 | const VAR_FOUR: (&str, (&str, &'static str), &'static str) = ("on", ("th", "th"), "on"); // ERROR Consider removing 'static |
| 24 | +10 | const VAR_FOUR: (&str, (&str, &'static str), &'static str) = ("on", ("th", "th"), "on"); // ERROR Consider removing 'static |
27 | 25 | | ^^^^^^^ help: consider removing `'static`: `&str`
|
28 | 26 |
|
29 | 27 | error: Constants have by default a `'static` lifetime
|
30 |
| - --> $DIR/const_static_lifetime.rs:15:30 |
| 28 | + --> $DIR/const_static_lifetime.rs:12:30 |
31 | 29 | |
|
32 |
| -15 | const VAR_FIVE: &'static [&[&'static str]] = &[&["test"], &["other one"]]; // ERROR Consider removing 'static |
| 30 | +12 | const VAR_FIVE: &'static [&[&'static str]] = &[&["test"], &["other one"]]; // ERROR Consider removing 'static |
33 | 31 | | ^^^^^^^ help: consider removing `'static`: `&str`
|
34 | 32 |
|
35 | 33 | error: Constants have by default a `'static` lifetime
|
36 |
| - --> $DIR/const_static_lifetime.rs:17:17 |
| 34 | + --> $DIR/const_static_lifetime.rs:14:17 |
37 | 35 | |
|
38 |
| -17 | const VAR_SIX: &'static u8 = &5; |
| 36 | +14 | const VAR_SIX: &'static u8 = &5; |
39 | 37 | | ^^^^^^^ help: consider removing `'static`: `&u8`
|
40 | 38 |
|
41 | 39 | error: Constants have by default a `'static` lifetime
|
42 |
| - --> $DIR/const_static_lifetime.rs:19:39 |
| 40 | + --> $DIR/const_static_lifetime.rs:16:39 |
43 | 41 | |
|
44 |
| -19 | const VAR_SEVEN: &[&(&str, &'static [&'static str])] = &[&("one", &["other one"])]; |
| 42 | +16 | const VAR_SEVEN: &[&(&str, &'static [&'static str])] = &[&("one", &["other one"])]; |
45 | 43 | | ^^^^^^^ help: consider removing `'static`: `&str`
|
46 | 44 |
|
47 | 45 | error: Constants have by default a `'static` lifetime
|
48 |
| - --> $DIR/const_static_lifetime.rs:21:20 |
| 46 | + --> $DIR/const_static_lifetime.rs:18:20 |
49 | 47 | |
|
50 |
| -21 | const VAR_HEIGHT: &'static Foo = &Foo {}; |
| 48 | +18 | const VAR_HEIGHT: &'static Foo = &Foo {}; |
51 | 49 | | ^^^^^^^ help: consider removing `'static`: `&Foo`
|
52 | 50 |
|
0 commit comments