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