|
1 | 1 | error: this function could have a `#[must_use]` attribute |
2 | | - --> $DIR/must_use_candidates.rs:12:1 |
| 2 | + --> $DIR/must_use_candidates.rs:11:1 |
3 | 3 | | |
4 | 4 | LL | pub fn pure(i: u8) -> u8 { |
5 | 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn pure(i: u8) -> u8` |
6 | 6 | | |
7 | 7 | = note: `-D clippy::must-use-candidate` implied by `-D warnings` |
8 | 8 |
|
9 | 9 | error: this method could have a `#[must_use]` attribute |
10 | | - --> $DIR/must_use_candidates.rs:17:5 |
| 10 | + --> $DIR/must_use_candidates.rs:16:5 |
11 | 11 | | |
12 | 12 | LL | pub fn inherent_pure(&self) -> u8 { |
13 | 13 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn inherent_pure(&self) -> u8` |
14 | 14 |
|
15 | 15 | error: this function could have a `#[must_use]` attribute |
16 | | - --> $DIR/must_use_candidates.rs:48:1 |
| 16 | + --> $DIR/must_use_candidates.rs:47:1 |
17 | 17 | | |
18 | 18 | LL | pub fn with_marker(_d: std::marker::PhantomData<&mut u32>) -> bool { |
19 | 19 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn with_marker(_d: std::marker::PhantomData<&mut u32>) -> bool` |
20 | 20 |
|
21 | 21 | error: this function could have a `#[must_use]` attribute |
22 | | - --> $DIR/must_use_candidates.rs:60:1 |
| 22 | + --> $DIR/must_use_candidates.rs:59:1 |
23 | 23 | | |
24 | 24 | LL | pub fn rcd(_x: Rc<u32>) -> bool { |
25 | 25 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn rcd(_x: Rc<u32>) -> bool` |
26 | 26 |
|
27 | 27 | error: this function could have a `#[must_use]` attribute |
28 | | - --> $DIR/must_use_candidates.rs:68:1 |
| 28 | + --> $DIR/must_use_candidates.rs:67:1 |
29 | 29 | | |
30 | 30 | LL | pub fn arcd(_x: Arc<u32>) -> bool { |
31 | 31 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn arcd(_x: Arc<u32>) -> bool` |
|
0 commit comments