mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-30 06:53:27 +00:00
6b6253016f
rustc now (https://github.com/rust-lang/rust/issues/33525) does not report an error count anymore, because it was not correct in many cases.
93 lines
2.4 KiB
Text
93 lines
2.4 KiB
Text
error: immediately dereferencing a reference
|
|
--> reference.rs:19:13
|
|
|
|
|
19 | let b = *&a;
|
|
| ^^^ help: try this `a`
|
|
|
|
|
= note: `-D deref-addrof` implied by `-D warnings`
|
|
|
|
error: immediately dereferencing a reference
|
|
--> reference.rs:21:13
|
|
|
|
|
21 | let b = *&get_number();
|
|
| ^^^^^^^^^^^^^^ help: try this `get_number()`
|
|
|
|
|
= note: `-D deref-addrof` implied by `-D warnings`
|
|
|
|
error: immediately dereferencing a reference
|
|
--> reference.rs:26:13
|
|
|
|
|
26 | let b = *&bytes[1..2][0];
|
|
| ^^^^^^^^^^^^^^^^ help: try this `bytes[1..2][0]`
|
|
|
|
|
= note: `-D deref-addrof` implied by `-D warnings`
|
|
|
|
error: immediately dereferencing a reference
|
|
--> reference.rs:30:13
|
|
|
|
|
30 | let b = *&(a);
|
|
| ^^^^^ help: try this `(a)`
|
|
|
|
|
= note: `-D deref-addrof` implied by `-D warnings`
|
|
|
|
error: immediately dereferencing a reference
|
|
--> reference.rs:32:13
|
|
|
|
|
32 | let b = *(&a);
|
|
| ^^^^^ help: try this `a`
|
|
|
|
|
= note: `-D deref-addrof` implied by `-D warnings`
|
|
|
|
error: immediately dereferencing a reference
|
|
--> reference.rs:34:13
|
|
|
|
|
34 | let b = *((&a));
|
|
| ^^^^^^^ help: try this `a`
|
|
|
|
|
= note: `-D deref-addrof` implied by `-D warnings`
|
|
|
|
error: immediately dereferencing a reference
|
|
--> reference.rs:36:13
|
|
|
|
|
36 | let b = *&&a;
|
|
| ^^^^ help: try this `&a`
|
|
|
|
|
= note: `-D deref-addrof` implied by `-D warnings`
|
|
|
|
error: immediately dereferencing a reference
|
|
--> reference.rs:38:14
|
|
|
|
|
38 | let b = **&aref;
|
|
| ^^^^^^ help: try this `aref`
|
|
|
|
|
= note: `-D deref-addrof` implied by `-D warnings`
|
|
|
|
error: immediately dereferencing a reference
|
|
--> reference.rs:42:14
|
|
|
|
|
42 | let b = **&&a;
|
|
| ^^^^ help: try this `&a`
|
|
|
|
|
= note: `-D deref-addrof` implied by `-D warnings`
|
|
|
|
error: immediately dereferencing a reference
|
|
--> reference.rs:46:17
|
|
|
|
|
46 | let y = *&mut x;
|
|
| ^^^^^^^ help: try this `x`
|
|
|
|
|
= note: `-D deref-addrof` implied by `-D warnings`
|
|
|
|
error: immediately dereferencing a reference
|
|
--> reference.rs:53:18
|
|
|
|
|
53 | let y = **&mut &mut x;
|
|
| ^^^^^^^^^^^^ help: try this `&mut x`
|
|
|
|
|
= note: `-D deref-addrof` implied by `-D warnings`
|
|
|
|
error: aborting due to previous error(s)
|
|
|
|
error: Could not compile `clippy_tests`.
|
|
|
|
To learn more, run the command again with --verbose.
|