|
1 | 1 | error: Constants have by default a `'static` lifetime
|
2 |
| - --> $DIR/redundant_static_lifetime.rs:4:17 |
| 2 | + --> $DIR/redundant_static_lifetimes.rs:4:17 |
3 | 3 | |
|
4 | 4 | LL | const VAR_ONE: &'static str = "Test constant #1"; // ERROR Consider removing 'static.
|
5 | 5 | | -^^^^^^^---- help: consider removing `'static`: `&str`
|
6 | 6 | |
|
7 |
| - = note: `-D clippy::redundant-static-lifetime` implied by `-D warnings` |
| 7 | + = note: `-D clippy::redundant-static-lifetimes` implied by `-D warnings` |
8 | 8 |
|
9 | 9 | error: Constants have by default a `'static` lifetime
|
10 |
| - --> $DIR/redundant_static_lifetime.rs:8:21 |
| 10 | + --> $DIR/redundant_static_lifetimes.rs:8:21 |
11 | 11 | |
|
12 | 12 | LL | const VAR_THREE: &[&'static str] = &["one", "two"]; // ERROR Consider removing 'static
|
13 | 13 | | -^^^^^^^---- help: consider removing `'static`: `&str`
|
14 | 14 |
|
15 | 15 | error: Constants have by default a `'static` lifetime
|
16 |
| - --> $DIR/redundant_static_lifetime.rs:10:32 |
| 16 | + --> $DIR/redundant_static_lifetimes.rs:10:32 |
17 | 17 | |
|
18 | 18 | LL | const VAR_FOUR: (&str, (&str, &'static str), &'static str) = ("on", ("th", "th"), "on"); // ERROR Consider removing 'static
|
19 | 19 | | -^^^^^^^---- help: consider removing `'static`: `&str`
|
20 | 20 |
|
21 | 21 | error: Constants have by default a `'static` lifetime
|
22 |
| - --> $DIR/redundant_static_lifetime.rs:10:47 |
| 22 | + --> $DIR/redundant_static_lifetimes.rs:10:47 |
23 | 23 | |
|
24 | 24 | LL | const VAR_FOUR: (&str, (&str, &'static str), &'static str) = ("on", ("th", "th"), "on"); // ERROR Consider removing 'static
|
25 | 25 | | -^^^^^^^---- help: consider removing `'static`: `&str`
|
26 | 26 |
|
27 | 27 | error: Constants have by default a `'static` lifetime
|
28 |
| - --> $DIR/redundant_static_lifetime.rs:12:18 |
| 28 | + --> $DIR/redundant_static_lifetimes.rs:12:18 |
29 | 29 | |
|
30 | 30 | LL | const VAR_FIVE: &'static [&[&'static str]] = &[&["test"], &["other one"]]; // ERROR Consider removing 'static
|
31 | 31 | | -^^^^^^^------------------ help: consider removing `'static`: `&[&[&'static str]]`
|
32 | 32 |
|
33 | 33 | error: Constants have by default a `'static` lifetime
|
34 |
| - --> $DIR/redundant_static_lifetime.rs:12:30 |
| 34 | + --> $DIR/redundant_static_lifetimes.rs:12:30 |
35 | 35 | |
|
36 | 36 | LL | const VAR_FIVE: &'static [&[&'static str]] = &[&["test"], &["other one"]]; // ERROR Consider removing 'static
|
37 | 37 | | -^^^^^^^---- help: consider removing `'static`: `&str`
|
38 | 38 |
|
39 | 39 | error: Constants have by default a `'static` lifetime
|
40 |
| - --> $DIR/redundant_static_lifetime.rs:14:17 |
| 40 | + --> $DIR/redundant_static_lifetimes.rs:14:17 |
41 | 41 | |
|
42 | 42 | LL | const VAR_SIX: &'static u8 = &5;
|
43 | 43 | | -^^^^^^^--- help: consider removing `'static`: `&u8`
|
44 | 44 |
|
45 | 45 | error: Constants have by default a `'static` lifetime
|
46 |
| - --> $DIR/redundant_static_lifetime.rs:16:29 |
| 46 | + --> $DIR/redundant_static_lifetimes.rs:16:29 |
47 | 47 | |
|
48 | 48 | LL | const VAR_SEVEN: &[&(&str, &'static [&'static str])] = &[&("one", &["other one"])];
|
49 | 49 | | -^^^^^^^--------------- help: consider removing `'static`: `&[&'static str]`
|
50 | 50 |
|
51 | 51 | error: Constants have by default a `'static` lifetime
|
52 |
| - --> $DIR/redundant_static_lifetime.rs:16:39 |
| 52 | + --> $DIR/redundant_static_lifetimes.rs:16:39 |
53 | 53 | |
|
54 | 54 | LL | const VAR_SEVEN: &[&(&str, &'static [&'static str])] = &[&("one", &["other one"])];
|
55 | 55 | | -^^^^^^^---- help: consider removing `'static`: `&str`
|
56 | 56 |
|
57 | 57 | error: Constants have by default a `'static` lifetime
|
58 |
| - --> $DIR/redundant_static_lifetime.rs:18:20 |
| 58 | + --> $DIR/redundant_static_lifetimes.rs:18:20 |
59 | 59 | |
|
60 | 60 | LL | const VAR_HEIGHT: &'static Foo = &Foo {};
|
61 | 61 | | -^^^^^^^---- help: consider removing `'static`: `&Foo`
|
62 | 62 |
|
63 | 63 | error: Constants have by default a `'static` lifetime
|
64 |
| - --> $DIR/redundant_static_lifetime.rs:20:19 |
| 64 | + --> $DIR/redundant_static_lifetimes.rs:20:19 |
65 | 65 | |
|
66 | 66 | LL | const VAR_SLICE: &'static [u8] = b"Test constant #1"; // ERROR Consider removing 'static.
|
67 | 67 | | -^^^^^^^----- help: consider removing `'static`: `&[u8]`
|
68 | 68 |
|
69 | 69 | error: Constants have by default a `'static` lifetime
|
70 |
| - --> $DIR/redundant_static_lifetime.rs:22:19 |
| 70 | + --> $DIR/redundant_static_lifetimes.rs:22:19 |
71 | 71 | |
|
72 | 72 | LL | const VAR_TUPLE: &'static (u8, u8) = &(1, 2); // ERROR Consider removing 'static.
|
73 | 73 | | -^^^^^^^--------- help: consider removing `'static`: `&(u8, u8)`
|
74 | 74 |
|
75 | 75 | error: Constants have by default a `'static` lifetime
|
76 |
| - --> $DIR/redundant_static_lifetime.rs:24:19 |
| 76 | + --> $DIR/redundant_static_lifetimes.rs:24:19 |
77 | 77 | |
|
78 | 78 | LL | const VAR_ARRAY: &'static [u8; 1] = b"T"; // ERROR Consider removing 'static.
|
79 | 79 | | -^^^^^^^-------- help: consider removing `'static`: `&[u8; 1]`
|
80 | 80 |
|
81 | 81 | error: Statics have by default a `'static` lifetime
|
82 |
| - --> $DIR/redundant_static_lifetime.rs:26:25 |
| 82 | + --> $DIR/redundant_static_lifetimes.rs:26:25 |
83 | 83 | |
|
84 | 84 | LL | static STATIC_VAR_ONE: &'static str = "Test static #1"; // ERROR Consider removing 'static.
|
85 | 85 | | -^^^^^^^---- help: consider removing `'static`: `&str`
|
86 | 86 |
|
87 | 87 | error: Statics have by default a `'static` lifetime
|
88 |
| - --> $DIR/redundant_static_lifetime.rs:30:29 |
| 88 | + --> $DIR/redundant_static_lifetimes.rs:30:29 |
89 | 89 | |
|
90 | 90 | LL | static STATIC_VAR_THREE: &[&'static str] = &["one", "two"]; // ERROR Consider removing 'static
|
91 | 91 | | -^^^^^^^---- help: consider removing `'static`: `&str`
|
92 | 92 |
|
93 | 93 | error: Statics have by default a `'static` lifetime
|
94 |
| - --> $DIR/redundant_static_lifetime.rs:32:40 |
| 94 | + --> $DIR/redundant_static_lifetimes.rs:32:40 |
95 | 95 | |
|
96 | 96 | LL | static STATIC_VAR_FOUR: (&str, (&str, &'static str), &'static str) = ("on", ("th", "th"), "on"); // ERROR Consider removing 'static
|
97 | 97 | | -^^^^^^^---- help: consider removing `'static`: `&str`
|
98 | 98 |
|
99 | 99 | error: Statics have by default a `'static` lifetime
|
100 |
| - --> $DIR/redundant_static_lifetime.rs:32:55 |
| 100 | + --> $DIR/redundant_static_lifetimes.rs:32:55 |
101 | 101 | |
|
102 | 102 | LL | static STATIC_VAR_FOUR: (&str, (&str, &'static str), &'static str) = ("on", ("th", "th"), "on"); // ERROR Consider removing 'static
|
103 | 103 | | -^^^^^^^---- help: consider removing `'static`: `&str`
|
104 | 104 |
|
105 | 105 | error: Statics have by default a `'static` lifetime
|
106 |
| - --> $DIR/redundant_static_lifetime.rs:34:26 |
| 106 | + --> $DIR/redundant_static_lifetimes.rs:34:26 |
107 | 107 | |
|
108 | 108 | LL | static STATIC_VAR_FIVE: &'static [&[&'static str]] = &[&["test"], &["other one"]]; // ERROR Consider removing 'static
|
109 | 109 | | -^^^^^^^------------------ help: consider removing `'static`: `&[&[&'static str]]`
|
110 | 110 |
|
111 | 111 | error: Statics have by default a `'static` lifetime
|
112 |
| - --> $DIR/redundant_static_lifetime.rs:34:38 |
| 112 | + --> $DIR/redundant_static_lifetimes.rs:34:38 |
113 | 113 | |
|
114 | 114 | LL | static STATIC_VAR_FIVE: &'static [&[&'static str]] = &[&["test"], &["other one"]]; // ERROR Consider removing 'static
|
115 | 115 | | -^^^^^^^---- help: consider removing `'static`: `&str`
|
116 | 116 |
|
117 | 117 | error: Statics have by default a `'static` lifetime
|
118 |
| - --> $DIR/redundant_static_lifetime.rs:36:25 |
| 118 | + --> $DIR/redundant_static_lifetimes.rs:36:25 |
119 | 119 | |
|
120 | 120 | LL | static STATIC_VAR_SIX: &'static u8 = &5;
|
121 | 121 | | -^^^^^^^--- help: consider removing `'static`: `&u8`
|
122 | 122 |
|
123 | 123 | error: Statics have by default a `'static` lifetime
|
124 |
| - --> $DIR/redundant_static_lifetime.rs:38:37 |
| 124 | + --> $DIR/redundant_static_lifetimes.rs:38:37 |
125 | 125 | |
|
126 | 126 | LL | static STATIC_VAR_SEVEN: &[&(&str, &'static [&'static str])] = &[&("one", &["other one"])];
|
127 | 127 | | -^^^^^^^--------------- help: consider removing `'static`: `&[&'static str]`
|
128 | 128 |
|
129 | 129 | error: Statics have by default a `'static` lifetime
|
130 |
| - --> $DIR/redundant_static_lifetime.rs:38:47 |
| 130 | + --> $DIR/redundant_static_lifetimes.rs:38:47 |
131 | 131 | |
|
132 | 132 | LL | static STATIC_VAR_SEVEN: &[&(&str, &'static [&'static str])] = &[&("one", &["other one"])];
|
133 | 133 | | -^^^^^^^---- help: consider removing `'static`: `&str`
|
134 | 134 |
|
135 | 135 | error: Statics have by default a `'static` lifetime
|
136 |
| - --> $DIR/redundant_static_lifetime.rs:40:28 |
| 136 | + --> $DIR/redundant_static_lifetimes.rs:40:28 |
137 | 137 | |
|
138 | 138 | LL | static STATIC_VAR_HEIGHT: &'static Foo = &Foo {};
|
139 | 139 | | -^^^^^^^---- help: consider removing `'static`: `&Foo`
|
140 | 140 |
|
141 | 141 | error: Statics have by default a `'static` lifetime
|
142 |
| - --> $DIR/redundant_static_lifetime.rs:42:27 |
| 142 | + --> $DIR/redundant_static_lifetimes.rs:42:27 |
143 | 143 | |
|
144 | 144 | LL | static STATIC_VAR_SLICE: &'static [u8] = b"Test static #3"; // ERROR Consider removing 'static.
|
145 | 145 | | -^^^^^^^----- help: consider removing `'static`: `&[u8]`
|
146 | 146 |
|
147 | 147 | error: Statics have by default a `'static` lifetime
|
148 |
| - --> $DIR/redundant_static_lifetime.rs:44:27 |
| 148 | + --> $DIR/redundant_static_lifetimes.rs:44:27 |
149 | 149 | |
|
150 | 150 | LL | static STATIC_VAR_TUPLE: &'static (u8, u8) = &(1, 2); // ERROR Consider removing 'static.
|
151 | 151 | | -^^^^^^^--------- help: consider removing `'static`: `&(u8, u8)`
|
152 | 152 |
|
153 | 153 | error: Statics have by default a `'static` lifetime
|
154 |
| - --> $DIR/redundant_static_lifetime.rs:46:27 |
| 154 | + --> $DIR/redundant_static_lifetimes.rs:46:27 |
155 | 155 | |
|
156 | 156 | LL | static STATIC_VAR_ARRAY: &'static [u8; 1] = b"T"; // ERROR Consider removing 'static.
|
157 | 157 | | -^^^^^^^-------- help: consider removing `'static`: `&[u8; 1]`
|
|
0 commit comments