File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ impl LateLintPass<'_> for SizeOfRef {
66
66
expr. span ,
67
67
"argument to `std::mem::size_of_val()` is a reference to a reference" ,
68
68
None ,
69
- "dereference the argument to `std::mem::size_of_val()` to get the size of the value instead of the generic size of any reference-type" ,
69
+ "dereference the argument to `std::mem::size_of_val()` to get the size of the value instead of the size of the reference-type" ,
70
70
) ;
71
71
}
72
72
}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ error: argument to `std::mem::size_of_val()` is a reference to a reference
4
4
LL | size_of_val(&&x);
5
5
| ^^^^^^^^^^^^^^^^
6
6
|
7
- = help: dereference the argument to `std::mem::size_of_val()` to get the size of the value instead of the generic size of any reference-type
7
+ = help: dereference the argument to `std::mem::size_of_val()` to get the size of the value instead of the size of the reference-type
8
8
= note: `-D clippy::size-of-ref` implied by `-D warnings`
9
9
10
10
error: argument to `std::mem::size_of_val()` is a reference to a reference
@@ -13,15 +13,15 @@ error: argument to `std::mem::size_of_val()` is a reference to a reference
13
13
LL | size_of_val(&y);
14
14
| ^^^^^^^^^^^^^^^
15
15
|
16
- = help: dereference the argument to `std::mem::size_of_val()` to get the size of the value instead of the generic size of any reference-type
16
+ = help: dereference the argument to `std::mem::size_of_val()` to get the size of the value instead of the size of the reference-type
17
17
18
18
error: argument to `std::mem::size_of_val()` is a reference to a reference
19
19
--> $DIR/size_of_ref.rs:25:9
20
20
|
21
21
LL | std::mem::size_of_val(&self) + (std::mem::size_of::<u8>() * self.data.capacity())
22
22
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23
23
|
24
- = help: dereference the argument to `std::mem::size_of_val()` to get the size of the value instead of the generic size of any reference-type
24
+ = help: dereference the argument to `std::mem::size_of_val()` to get the size of the value instead of the size of the reference-type
25
25
26
26
error: aborting due to 3 previous errors
27
27
You can’t perform that action at this time.
0 commit comments