Fix inconsistent test names

This commit is contained in:
Yoshitomo Nakanishi 2021-03-19 18:21:33 +09:00
parent 494bc8a30c
commit bd1201a263
4 changed files with 23 additions and 23 deletions

View File

@ -1,5 +1,5 @@
error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure? error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure?
--> $DIR/dlist.rs:8:10 --> $DIR/linkedlist.rs:8:10
| |
LL | const C: LinkedList<i32> = LinkedList::new(); LL | const C: LinkedList<i32> = LinkedList::new();
| ^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^
@ -8,7 +8,7 @@ LL | const C: LinkedList<i32> = LinkedList::new();
= help: a `VecDeque` might work = help: a `VecDeque` might work
error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure? error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure?
--> $DIR/dlist.rs:9:11 --> $DIR/linkedlist.rs:9:11
| |
LL | static S: LinkedList<i32> = LinkedList::new(); LL | static S: LinkedList<i32> = LinkedList::new();
| ^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^
@ -16,7 +16,7 @@ LL | static S: LinkedList<i32> = LinkedList::new();
= help: a `VecDeque` might work = help: a `VecDeque` might work
error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure? error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure?
--> $DIR/dlist.rs:12:16 --> $DIR/linkedlist.rs:12:16
| |
LL | type Baz = LinkedList<u8>; LL | type Baz = LinkedList<u8>;
| ^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^
@ -24,7 +24,7 @@ LL | type Baz = LinkedList<u8>;
= help: a `VecDeque` might work = help: a `VecDeque` might work
error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure? error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure?
--> $DIR/dlist.rs:13:15 --> $DIR/linkedlist.rs:13:15
| |
LL | fn foo(_: LinkedList<u8>); LL | fn foo(_: LinkedList<u8>);
| ^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^
@ -32,7 +32,7 @@ LL | fn foo(_: LinkedList<u8>);
= help: a `VecDeque` might work = help: a `VecDeque` might work
error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure? error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure?
--> $DIR/dlist.rs:14:23 --> $DIR/linkedlist.rs:14:23
| |
LL | const BAR: Option<LinkedList<u8>>; LL | const BAR: Option<LinkedList<u8>>;
| ^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^
@ -40,7 +40,7 @@ LL | const BAR: Option<LinkedList<u8>>;
= help: a `VecDeque` might work = help: a `VecDeque` might work
error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure? error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure?
--> $DIR/dlist.rs:25:15 --> $DIR/linkedlist.rs:25:15
| |
LL | fn foo(_: LinkedList<u8>) {} LL | fn foo(_: LinkedList<u8>) {}
| ^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^
@ -48,7 +48,7 @@ LL | fn foo(_: LinkedList<u8>) {}
= help: a `VecDeque` might work = help: a `VecDeque` might work
error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure? error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure?
--> $DIR/dlist.rs:28:39 --> $DIR/linkedlist.rs:28:39
| |
LL | pub fn test(my_favourite_linked_list: LinkedList<u8>) { LL | pub fn test(my_favourite_linked_list: LinkedList<u8>) {
| ^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^
@ -56,7 +56,7 @@ LL | pub fn test(my_favourite_linked_list: LinkedList<u8>) {
= help: a `VecDeque` might work = help: a `VecDeque` might work
error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure? error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure?
--> $DIR/dlist.rs:32:29 --> $DIR/linkedlist.rs:32:29
| |
LL | pub fn test_ret() -> Option<LinkedList<u8>> { LL | pub fn test_ret() -> Option<LinkedList<u8>> {
| ^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^

View File

@ -1,5 +1,5 @@
error: very complex type used. Consider factoring parts into `type` definitions error: very complex type used. Consider factoring parts into `type` definitions
--> $DIR/complex_types.rs:7:12 --> $DIR/type_complexity.rs:7:12
| |
LL | const CST: (u32, (u32, (u32, (u32, u32)))) = (0, (0, (0, (0, 0)))); LL | const CST: (u32, (u32, (u32, (u32, u32)))) = (0, (0, (0, (0, 0))));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@ -7,85 +7,85 @@ LL | const CST: (u32, (u32, (u32, (u32, u32)))) = (0, (0, (0, (0, 0))));
= note: `-D clippy::type-complexity` implied by `-D warnings` = note: `-D clippy::type-complexity` implied by `-D warnings`
error: very complex type used. Consider factoring parts into `type` definitions error: very complex type used. Consider factoring parts into `type` definitions
--> $DIR/complex_types.rs:8:12 --> $DIR/type_complexity.rs:8:12
| |
LL | static ST: (u32, (u32, (u32, (u32, u32)))) = (0, (0, (0, (0, 0)))); LL | static ST: (u32, (u32, (u32, (u32, u32)))) = (0, (0, (0, (0, 0))));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: very complex type used. Consider factoring parts into `type` definitions error: very complex type used. Consider factoring parts into `type` definitions
--> $DIR/complex_types.rs:11:8 --> $DIR/type_complexity.rs:11:8
| |
LL | f: Vec<Vec<Box<(u32, u32, u32, u32)>>>, LL | f: Vec<Vec<Box<(u32, u32, u32, u32)>>>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: very complex type used. Consider factoring parts into `type` definitions error: very complex type used. Consider factoring parts into `type` definitions
--> $DIR/complex_types.rs:14:11 --> $DIR/type_complexity.rs:14:11
| |
LL | struct Ts(Vec<Vec<Box<(u32, u32, u32, u32)>>>); LL | struct Ts(Vec<Vec<Box<(u32, u32, u32, u32)>>>);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: very complex type used. Consider factoring parts into `type` definitions error: very complex type used. Consider factoring parts into `type` definitions
--> $DIR/complex_types.rs:17:11 --> $DIR/type_complexity.rs:17:11
| |
LL | Tuple(Vec<Vec<Box<(u32, u32, u32, u32)>>>), LL | Tuple(Vec<Vec<Box<(u32, u32, u32, u32)>>>),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: very complex type used. Consider factoring parts into `type` definitions error: very complex type used. Consider factoring parts into `type` definitions
--> $DIR/complex_types.rs:18:17 --> $DIR/type_complexity.rs:18:17
| |
LL | Struct { f: Vec<Vec<Box<(u32, u32, u32, u32)>>> }, LL | Struct { f: Vec<Vec<Box<(u32, u32, u32, u32)>>> },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: very complex type used. Consider factoring parts into `type` definitions error: very complex type used. Consider factoring parts into `type` definitions
--> $DIR/complex_types.rs:22:14 --> $DIR/type_complexity.rs:22:14
| |
LL | const A: (u32, (u32, (u32, (u32, u32)))) = (0, (0, (0, (0, 0)))); LL | const A: (u32, (u32, (u32, (u32, u32)))) = (0, (0, (0, (0, 0))));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: very complex type used. Consider factoring parts into `type` definitions error: very complex type used. Consider factoring parts into `type` definitions
--> $DIR/complex_types.rs:23:30 --> $DIR/type_complexity.rs:23:30
| |
LL | fn impl_method(&self, p: Vec<Vec<Box<(u32, u32, u32, u32)>>>) {} LL | fn impl_method(&self, p: Vec<Vec<Box<(u32, u32, u32, u32)>>>) {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: very complex type used. Consider factoring parts into `type` definitions error: very complex type used. Consider factoring parts into `type` definitions
--> $DIR/complex_types.rs:27:14 --> $DIR/type_complexity.rs:27:14
| |
LL | const A: Vec<Vec<Box<(u32, u32, u32, u32)>>>; LL | const A: Vec<Vec<Box<(u32, u32, u32, u32)>>>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: very complex type used. Consider factoring parts into `type` definitions error: very complex type used. Consider factoring parts into `type` definitions
--> $DIR/complex_types.rs:28:14 --> $DIR/type_complexity.rs:28:14
| |
LL | type B = Vec<Vec<Box<(u32, u32, u32, u32)>>>; LL | type B = Vec<Vec<Box<(u32, u32, u32, u32)>>>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: very complex type used. Consider factoring parts into `type` definitions error: very complex type used. Consider factoring parts into `type` definitions
--> $DIR/complex_types.rs:29:25 --> $DIR/type_complexity.rs:29:25
| |
LL | fn method(&self, p: Vec<Vec<Box<(u32, u32, u32, u32)>>>); LL | fn method(&self, p: Vec<Vec<Box<(u32, u32, u32, u32)>>>);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: very complex type used. Consider factoring parts into `type` definitions error: very complex type used. Consider factoring parts into `type` definitions
--> $DIR/complex_types.rs:30:29 --> $DIR/type_complexity.rs:30:29
| |
LL | fn def_method(&self, p: Vec<Vec<Box<(u32, u32, u32, u32)>>>) {} LL | fn def_method(&self, p: Vec<Vec<Box<(u32, u32, u32, u32)>>>) {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: very complex type used. Consider factoring parts into `type` definitions error: very complex type used. Consider factoring parts into `type` definitions
--> $DIR/complex_types.rs:33:15 --> $DIR/type_complexity.rs:33:15
| |
LL | fn test1() -> Vec<Vec<Box<(u32, u32, u32, u32)>>> { LL | fn test1() -> Vec<Vec<Box<(u32, u32, u32, u32)>>> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: very complex type used. Consider factoring parts into `type` definitions error: very complex type used. Consider factoring parts into `type` definitions
--> $DIR/complex_types.rs:37:14 --> $DIR/type_complexity.rs:37:14
| |
LL | fn test2(_x: Vec<Vec<Box<(u32, u32, u32, u32)>>>) {} LL | fn test2(_x: Vec<Vec<Box<(u32, u32, u32, u32)>>>) {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: very complex type used. Consider factoring parts into `type` definitions error: very complex type used. Consider factoring parts into `type` definitions
--> $DIR/complex_types.rs:40:13 --> $DIR/type_complexity.rs:40:13
| |
LL | let _y: Vec<Vec<Box<(u32, u32, u32, u32)>>> = vec![]; LL | let _y: Vec<Vec<Box<(u32, u32, u32, u32)>>> = vec![];
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^