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.
59 lines
1.8 KiB
Text
59 lines
1.8 KiB
Text
error: I see you're using a LinkedList! Perhaps you meant some other data structure?
|
|
--> dlist.rs:13:16
|
|
|
|
|
13 | type Baz = LinkedList<u8>;
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D linkedlist` implied by `-D warnings`
|
|
= help: a VecDeque might work
|
|
|
|
error: I see you're using a LinkedList! Perhaps you meant some other data structure?
|
|
--> dlist.rs:14:12
|
|
|
|
|
14 | fn foo(LinkedList<u8>);
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D linkedlist` implied by `-D warnings`
|
|
= help: a VecDeque might work
|
|
|
|
error: I see you're using a LinkedList! Perhaps you meant some other data structure?
|
|
--> dlist.rs:15:24
|
|
|
|
|
15 | const BAR : Option<LinkedList<u8>>;
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D linkedlist` implied by `-D warnings`
|
|
= help: a VecDeque might work
|
|
|
|
error: I see you're using a LinkedList! Perhaps you meant some other data structure?
|
|
--> dlist.rs:26:15
|
|
|
|
|
26 | fn foo(_: LinkedList<u8>) {}
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D linkedlist` implied by `-D warnings`
|
|
= help: a VecDeque might work
|
|
|
|
error: I see you're using a LinkedList! Perhaps you meant some other data structure?
|
|
--> dlist.rs:29:39
|
|
|
|
|
29 | pub fn test(my_favourite_linked_list: LinkedList<u8>) {
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D linkedlist` implied by `-D warnings`
|
|
= help: a VecDeque might work
|
|
|
|
error: I see you're using a LinkedList! Perhaps you meant some other data structure?
|
|
--> dlist.rs:33:29
|
|
|
|
|
33 | pub fn test_ret() -> Option<LinkedList<u8>> {
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D linkedlist` implied by `-D warnings`
|
|
= help: a VecDeque might work
|
|
|
|
error: aborting due to previous error(s)
|
|
|
|
error: Could not compile `clippy_tests`.
|
|
|
|
To learn more, run the command again with --verbose.
|