|
1 | 1 | error: initializer for `thread_local` value can be made `const`
|
2 |
| - --> tests/ui/thread_local_initializer_can_be_made_const.rs:8:41 |
| 2 | + --> tests/ui/missing_const_for_thread_local.rs:8:41 |
3 | 3 | |
|
4 | 4 | LL | static BUF_1: RefCell<String> = RefCell::new(String::new());
|
5 | 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `const { RefCell::new(String::new()) }`
|
6 | 6 | |
|
7 |
| - = note: `-D clippy::thread-local-initializer-can-be-made-const` implied by `-D warnings` |
8 |
| - = help: to override `-D warnings` add `#[allow(clippy::thread_local_initializer_can_be_made_const)]` |
| 7 | + = note: `-D clippy::missing-const-for-thread-local` implied by `-D warnings` |
| 8 | + = help: to override `-D warnings` add `#[allow(clippy::missing_const_for_thread_local)]` |
9 | 9 |
|
10 | 10 | error: initializer for `thread_local` value can be made `const`
|
11 |
| - --> tests/ui/thread_local_initializer_can_be_made_const.rs:18:29 |
| 11 | + --> tests/ui/missing_const_for_thread_local.rs:18:29 |
12 | 12 | |
|
13 | 13 | LL | static SIMPLE:i32 = 1;
|
14 | 14 | | ^ help: replace with: `const { 1 }`
|
15 | 15 |
|
16 | 16 | error: initializer for `thread_local` value can be made `const`
|
17 |
| - --> tests/ui/thread_local_initializer_can_be_made_const.rs:24:59 |
| 17 | + --> tests/ui/missing_const_for_thread_local.rs:24:59 |
18 | 18 | |
|
19 | 19 | LL | static BUF_3_CAN_BE_MADE_CONST: RefCell<String> = RefCell::new(String::new());
|
20 | 20 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `const { RefCell::new(String::new()) }`
|
21 | 21 |
|
22 | 22 | error: initializer for `thread_local` value can be made `const`
|
23 |
| - --> tests/ui/thread_local_initializer_can_be_made_const.rs:26:59 |
| 23 | + --> tests/ui/missing_const_for_thread_local.rs:26:59 |
24 | 24 | |
|
25 | 25 | LL | static BUF_4_CAN_BE_MADE_CONST: RefCell<String> = RefCell::new(String::new());
|
26 | 26 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `const { RefCell::new(String::new()) }`
|
27 | 27 |
|
28 | 28 | error: initializer for `thread_local` value can be made `const`
|
29 |
| - --> tests/ui/thread_local_initializer_can_be_made_const.rs:32:31 |
| 29 | + --> tests/ui/missing_const_for_thread_local.rs:32:31 |
30 | 30 | |
|
31 | 31 | LL | static PEEL_ME: i32 = { 1 };
|
32 | 32 | | ^^^^^ help: replace with: `const { 1 }`
|
33 | 33 |
|
34 | 34 | error: initializer for `thread_local` value can be made `const`
|
35 |
| - --> tests/ui/thread_local_initializer_can_be_made_const.rs:34:36 |
| 35 | + --> tests/ui/missing_const_for_thread_local.rs:34:36 |
36 | 36 | |
|
37 | 37 | LL | static PEEL_ME_MANY: i32 = { let x = 1; x * x };
|
38 | 38 | | ^^^^^^^^^^^^^^^^^^^^ help: replace with: `const { { let x = 1; x * x } }`
|
|
0 commit comments