Skip to content

Commit 2446c2c

Browse files
bkchrTriplEight
authored andcommitted
Prepare UI tests for Rust 1.51 & new CI image (paritytech#8474)
* Prepare UI tests for Rust 1.51 & new CI image * another stderr to be fixed Co-authored-by: Denis P <[email protected]>
1 parent ba11a5f commit 2446c2c

3 files changed

Lines changed: 21 additions & 7 deletions

File tree

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
error: `System` pallet declaration is missing. Please add this line: `System: frame_system::{Pallet, Call, Storage, Config, Event<T>},`
22
--> $DIR/missing_system_module.rs:8:2
33
|
4-
8 | {
5-
| _____^
4+
8 | / {
65
9 | | }
76
| |_____^

frame/support/test/tests/derive_no_bound_ui/eq.stderr

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,9 @@ error[E0277]: can't compare `Foo<T>` with `Foo<T>`
44
6 | struct Foo<T: Config> {
55
| ^^^ no implementation for `Foo<T> == Foo<T>`
66
|
7+
::: $RUST/core/src/cmp.rs
8+
|
9+
| pub trait Eq: PartialEq<Self> {
10+
| --------------- required by this bound in `Eq`
11+
|
712
= help: the trait `PartialEq` is not implemented for `Foo<T>`
Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1-
error[E0107]: wrong number of type arguments: expected 1, found 0
2-
--> $DIR/hooks_invalid_item.rs:12:18
3-
|
4-
12 | impl<T: Config> Hooks for Pallet<T> {}
5-
| ^^^^^ expected 1 type argument
1+
error[E0107]: missing generics for trait `Hooks`
2+
--> $DIR/hooks_invalid_item.rs:12:18
3+
|
4+
12 | impl<T: Config> Hooks for Pallet<T> {}
5+
| ^^^^^ expected 1 type argument
6+
|
7+
note: trait defined here, with 1 type parameter: `BlockNumber`
8+
--> $DIR/hooks.rs:206:11
9+
|
10+
206 | pub trait Hooks<BlockNumber> {
11+
| ^^^^^ -----------
12+
help: use angle brackets to add missing type argument
13+
|
14+
12 | impl<T: Config> Hooks<BlockNumber> for Pallet<T> {}
15+
| ^^^^^^^^^^^^^

0 commit comments

Comments
 (0)