Skip to content

Commit 574f5f2

Browse files
Revert ui test changes
1 parent 7821609 commit 574f5f2

10 files changed

+38
-38
lines changed

crates/ink/tests/ui/contract/fail/constructor-input-non-codec.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ error[E0277]: the trait bound `NonCodecType: WrapperTypeDecode` is not satisfied
88
Arc<T>
99
Box<T>
1010
Rc<T>
11-
= note: required for `NonCodecType` to implement `scale::Decode`
11+
= note: required for `NonCodecType` to implement `parity_scale_codec::Decode`
1212
note: required by a bound in `DispatchInput`
1313
--> src/codegen/dispatch/type_check.rs
1414
|
@@ -25,7 +25,7 @@ error[E0277]: the trait bound `NonCodecType: WrapperTypeDecode` is not satisfied
2525
Arc<T>
2626
Box<T>
2727
Rc<T>
28-
= note: required for `NonCodecType` to implement `scale::Decode`
28+
= note: required for `NonCodecType` to implement `parity_scale_codec::Decode`
2929

3030
error[E0277]: the trait bound `NonCodecType: WrapperTypeEncode` is not satisfied
3131
--> tests/ui/contract/fail/constructor-input-non-codec.rs:1:1
@@ -45,7 +45,7 @@ error[E0277]: the trait bound `NonCodecType: WrapperTypeEncode` is not satisfied
4545
Rc<T>
4646
String
4747
Vec<T>
48-
scale::Ref<'a, T, U>
48+
parity_scale_codec::Ref<'a, T, U>
4949
= note: required for `NonCodecType` to implement `Encode`
5050
note: required by a bound in `ExecutionInput::<ArgumentList<ArgumentListEnd, ArgumentListEnd>>::push_arg`
5151
--> $WORKSPACE/crates/env/src/call/execution_input.rs

crates/ink/tests/ui/contract/fail/constructor-return-result-non-codec-error.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ error[E0277]: the trait bound `contract::Error: WrapperTypeDecode` is not satisf
2121
Arc<T>
2222
Box<T>
2323
Rc<T>
24-
= note: required for `contract::Error` to implement `scale::Decode`
24+
= note: required for `contract::Error` to implement `parity_scale_codec::Decode`
2525
= note: required for `Result<ContractRef, contract::Error>` to implement `ConstructorReturnType<ContractRef>`
2626
note: required by a bound in `CreateBuilder::<E, ContractRef, CodeHash, GasLimit, Endowment, Args, Salt, Unset<ReturnType<()>>>::returns`
2727
--> $WORKSPACE/crates/env/src/call/create_builder.rs

crates/ink/tests/ui/contract/fail/constructor-self-receiver-03.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ error[E0277]: the trait bound `&Contract: WrapperTypeDecode` is not satisfied
3232
Arc<T>
3333
Box<T>
3434
Rc<T>
35-
= note: required for `&Contract` to implement `scale::Decode`
35+
= note: required for `&Contract` to implement `parity_scale_codec::Decode`

crates/ink/tests/ui/contract/fail/message-input-non-codec.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ error[E0277]: the trait bound `NonCodecType: WrapperTypeDecode` is not satisfied
88
Arc<T>
99
Box<T>
1010
Rc<T>
11-
= note: required for `NonCodecType` to implement `scale::Decode`
11+
= note: required for `NonCodecType` to implement `parity_scale_codec::Decode`
1212
note: required by a bound in `DispatchInput`
1313
--> src/codegen/dispatch/type_check.rs
1414
|
@@ -25,7 +25,7 @@ error[E0277]: the trait bound `NonCodecType: WrapperTypeDecode` is not satisfied
2525
Arc<T>
2626
Box<T>
2727
Rc<T>
28-
= note: required for `NonCodecType` to implement `scale::Decode`
28+
= note: required for `NonCodecType` to implement `parity_scale_codec::Decode`
2929

3030
error[E0277]: the trait bound `NonCodecType: WrapperTypeEncode` is not satisfied
3131
--> tests/ui/contract/fail/message-input-non-codec.rs:1:1
@@ -45,7 +45,7 @@ error[E0277]: the trait bound `NonCodecType: WrapperTypeEncode` is not satisfied
4545
Rc<T>
4646
String
4747
Vec<T>
48-
scale::Ref<'a, T, U>
48+
parity_scale_codec::Ref<'a, T, U>
4949
= note: required for `NonCodecType` to implement `Encode`
5050
note: required by a bound in `ExecutionInput::<ArgumentList<ArgumentListEnd, ArgumentListEnd>>::push_arg`
5151
--> $WORKSPACE/crates/env/src/call/execution_input.rs

crates/ink/tests/ui/contract/fail/message-returns-non-codec.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ error[E0277]: the trait bound `NonCodecType: WrapperTypeEncode` is not satisfied
1313
Rc<T>
1414
String
1515
Vec<T>
16-
scale::Ref<'a, T, U>
16+
parity_scale_codec::Ref<'a, T, U>
1717
= note: required for `NonCodecType` to implement `Encode`
1818
note: required by a bound in `DispatchOutput`
1919
--> src/codegen/dispatch/type_check.rs
@@ -38,14 +38,14 @@ error[E0599]: the method `try_invoke` exists for struct `CallBuilder<DefaultEnvi
3838
--> tests/ui/contract/fail/message-returns-non-codec.rs:16:9
3939
|
4040
4 | pub struct NonCodecType;
41-
| ----------------------- doesn't satisfy `NonCodecType: scale::Decode`
41+
| ----------------------- doesn't satisfy `NonCodecType: parity_scale_codec::Decode`
4242
...
4343
16 | pub fn message(&self) -> NonCodecType {
4444
| ^^^ method cannot be called due to unsatisfied trait bounds
4545
|
4646
= note: the following trait bounds were not satisfied:
47-
`NonCodecType: scale::Decode`
48-
note: the trait `scale::Decode` must be implemented
47+
`NonCodecType: parity_scale_codec::Decode`
48+
note: the trait `parity_scale_codec::Decode` must be implemented
4949
--> $CARGO/parity-scale-codec-3.6.3/src/codec.rs
5050
|
5151
| pub trait Decode: Sized {

crates/ink/tests/ui/storage_item/fail/collections_only_packed_1.stderr

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
error[E0277]: the trait bound `Vec<NonPacked>: scale::Decode` is not satisfied
1+
error[E0277]: the trait bound `Vec<NonPacked>: parity_scale_codec::Decode` is not satisfied
22
--> tests/ui/storage_item/fail/collections_only_packed_1.rs:11:8
33
|
44
11 | a: Vec<NonPacked>,
5-
| ^^^ the trait `scale::Decode` is not implemented for `Vec<NonPacked>`
5+
| ^^^ the trait `parity_scale_codec::Decode` is not implemented for `Vec<NonPacked>`
66
|
7-
= help: the trait `scale::Decode` is implemented for `Vec<T>`
7+
= help: the trait `parity_scale_codec::Decode` is implemented for `Vec<T>`
88
= note: required for `Vec<NonPacked>` to implement `Packed`
99
= note: required for `Vec<NonPacked>` to implement `StorableHint<()>`
1010
= note: required for `Vec<NonPacked>` to implement `AutoStorableHint<ManualKey<453539032>>`
@@ -23,13 +23,13 @@ error[E0277]: the trait bound `[NonPacked]: Encode` is not satisfied
2323
= note: required for `Vec<NonPacked>` to implement `StorableHint<()>`
2424
= note: required for `Vec<NonPacked>` to implement `AutoStorableHint<ManualKey<453539032>>`
2525

26-
error[E0277]: the trait bound `Vec<NonPacked>: scale::Decode` is not satisfied
26+
error[E0277]: the trait bound `Vec<NonPacked>: parity_scale_codec::Decode` is not satisfied
2727
--> tests/ui/storage_item/fail/collections_only_packed_1.rs:10:8
2828
|
2929
10 | struct Contract {
30-
| ^^^^^^^^ the trait `scale::Decode` is not implemented for `Vec<NonPacked>`
30+
| ^^^^^^^^ the trait `parity_scale_codec::Decode` is not implemented for `Vec<NonPacked>`
3131
|
32-
= help: the trait `scale::Decode` is implemented for `Vec<T>`
32+
= help: the trait `parity_scale_codec::Decode` is implemented for `Vec<T>`
3333
= note: required for `Vec<NonPacked>` to implement `Packed`
3434
= note: required for `Vec<NonPacked>` to implement `StorableHint<()>`
3535
= note: required for `Vec<NonPacked>` to implement `AutoStorableHint<ManualKey<453539032>>`
@@ -68,13 +68,13 @@ note: required by a bound in `Storable`
6868
| pub trait Storable: Sized {
6969
| ^^^^^ required by this bound in `Storable`
7070

71-
error[E0277]: the trait bound `Vec<NonPacked>: scale::Decode` is not satisfied
71+
error[E0277]: the trait bound `Vec<NonPacked>: parity_scale_codec::Decode` is not satisfied
7272
--> tests/ui/storage_item/fail/collections_only_packed_1.rs:9:1
7373
|
7474
9 | #[ink::storage_item]
75-
| ^^^^^^^^^^^^^^^^^^^^ the trait `scale::Decode` is not implemented for `Vec<NonPacked>`
75+
| ^^^^^^^^^^^^^^^^^^^^ the trait `parity_scale_codec::Decode` is not implemented for `Vec<NonPacked>`
7676
|
77-
= help: the trait `scale::Decode` is implemented for `Vec<T>`
77+
= help: the trait `parity_scale_codec::Decode` is implemented for `Vec<T>`
7878
= note: required for `Vec<NonPacked>` to implement `Packed`
7979
= note: required for `Vec<NonPacked>` to implement `StorableHint<()>`
8080
= note: required for `Vec<NonPacked>` to implement `AutoStorableHint<ManualKey<453539032>>`

crates/ink/tests/ui/storage_item/fail/collections_only_packed_2.stderr

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
error[E0277]: the trait bound `BTreeMap<u128, NonPacked>: scale::Decode` is not satisfied
1+
error[E0277]: the trait bound `BTreeMap<u128, NonPacked>: parity_scale_codec::Decode` is not satisfied
22
--> tests/ui/storage_item/fail/collections_only_packed_2.rs:11:8
33
|
44
11 | a: BTreeMap<u128, NonPacked>,
5-
| ^^^^^^^^ the trait `scale::Decode` is not implemented for `BTreeMap<u128, NonPacked>`
5+
| ^^^^^^^^ the trait `parity_scale_codec::Decode` is not implemented for `BTreeMap<u128, NonPacked>`
66
|
7-
= help: the trait `scale::Decode` is implemented for `BTreeMap<K, V>`
7+
= help: the trait `parity_scale_codec::Decode` is implemented for `BTreeMap<K, V>`
88
= note: required for `BTreeMap<u128, NonPacked>` to implement `Packed`
99
= note: required for `BTreeMap<u128, NonPacked>` to implement `StorableHint<()>`
1010
= note: required for `BTreeMap<u128, NonPacked>` to implement `AutoStorableHint<ManualKey<453539032>>`
@@ -20,13 +20,13 @@ error[E0277]: the trait bound `BTreeMap<u128, NonPacked>: Encode` is not satisfi
2020
= note: required for `BTreeMap<u128, NonPacked>` to implement `StorableHint<()>`
2121
= note: required for `BTreeMap<u128, NonPacked>` to implement `AutoStorableHint<ManualKey<453539032>>`
2222

23-
error[E0277]: the trait bound `BTreeMap<u128, NonPacked>: scale::Decode` is not satisfied
23+
error[E0277]: the trait bound `BTreeMap<u128, NonPacked>: parity_scale_codec::Decode` is not satisfied
2424
--> tests/ui/storage_item/fail/collections_only_packed_2.rs:10:8
2525
|
2626
10 | struct Contract {
27-
| ^^^^^^^^ the trait `scale::Decode` is not implemented for `BTreeMap<u128, NonPacked>`
27+
| ^^^^^^^^ the trait `parity_scale_codec::Decode` is not implemented for `BTreeMap<u128, NonPacked>`
2828
|
29-
= help: the trait `scale::Decode` is implemented for `BTreeMap<K, V>`
29+
= help: the trait `parity_scale_codec::Decode` is implemented for `BTreeMap<K, V>`
3030
= note: required for `BTreeMap<u128, NonPacked>` to implement `Packed`
3131
= note: required for `BTreeMap<u128, NonPacked>` to implement `StorableHint<()>`
3232
= note: required for `BTreeMap<u128, NonPacked>` to implement `AutoStorableHint<ManualKey<453539032>>`
@@ -62,13 +62,13 @@ note: required by a bound in `Storable`
6262
| pub trait Storable: Sized {
6363
| ^^^^^ required by this bound in `Storable`
6464

65-
error[E0277]: the trait bound `BTreeMap<u128, NonPacked>: scale::Decode` is not satisfied
65+
error[E0277]: the trait bound `BTreeMap<u128, NonPacked>: parity_scale_codec::Decode` is not satisfied
6666
--> tests/ui/storage_item/fail/collections_only_packed_2.rs:9:1
6767
|
6868
9 | #[ink::storage_item]
69-
| ^^^^^^^^^^^^^^^^^^^^ the trait `scale::Decode` is not implemented for `BTreeMap<u128, NonPacked>`
69+
| ^^^^^^^^^^^^^^^^^^^^ the trait `parity_scale_codec::Decode` is not implemented for `BTreeMap<u128, NonPacked>`
7070
|
71-
= help: the trait `scale::Decode` is implemented for `BTreeMap<K, V>`
71+
= help: the trait `parity_scale_codec::Decode` is implemented for `BTreeMap<K, V>`
7272
= note: required for `BTreeMap<u128, NonPacked>` to implement `Packed`
7373
= note: required for `BTreeMap<u128, NonPacked>` to implement `StorableHint<()>`
7474
= note: required for `BTreeMap<u128, NonPacked>` to implement `AutoStorableHint<ManualKey<453539032>>`

crates/ink/tests/ui/storage_item/fail/packed_is_not_derived_automatically.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ error[E0277]: the trait bound `NonPacked: WrapperTypeDecode` is not satisfied
88
Arc<T>
99
Box<T>
1010
Rc<T>
11-
= note: required for `NonPacked` to implement `scale::Decode`
11+
= note: required for `NonPacked` to implement `parity_scale_codec::Decode`
1212
= note: required for `NonPacked` to implement `Packed`
1313
note: required by a bound in `consume_packed`
1414
--> tests/ui/storage_item/fail/packed_is_not_derived_automatically.rs:12:22
@@ -31,7 +31,7 @@ error[E0277]: the trait bound `NonPacked: WrapperTypeEncode` is not satisfied
3131
Rc<T>
3232
String
3333
Vec<T>
34-
scale::Ref<'a, T, U>
34+
parity_scale_codec::Ref<'a, T, U>
3535
= note: required for `NonPacked` to implement `Encode`
3636
= note: required for `NonPacked` to implement `Packed`
3737
note: required by a bound in `consume_packed`

crates/ink/tests/ui/trait_def/fail/message_input_non_codec.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ error[E0277]: the trait bound `NonCodec: WrapperTypeDecode` is not satisfied
88
Arc<T>
99
Box<T>
1010
Rc<T>
11-
= note: required for `NonCodec` to implement `scale::Decode`
11+
= note: required for `NonCodec` to implement `parity_scale_codec::Decode`
1212
note: required by a bound in `DispatchInput`
1313
--> src/codegen/dispatch/type_check.rs
1414
|
@@ -33,7 +33,7 @@ error[E0277]: the trait bound `NonCodec: WrapperTypeEncode` is not satisfied
3333
Rc<T>
3434
String
3535
Vec<T>
36-
scale::Ref<'a, T, U>
36+
parity_scale_codec::Ref<'a, T, U>
3737
= note: required for `NonCodec` to implement `Encode`
3838
note: required by a bound in `ExecutionInput::<ArgumentList<ArgumentListEnd, ArgumentListEnd>>::push_arg`
3939
--> $WORKSPACE/crates/env/src/call/execution_input.rs

crates/ink/tests/ui/trait_def/fail/message_output_non_codec.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ error[E0277]: the trait bound `NonCodec: WrapperTypeEncode` is not satisfied
1313
Rc<T>
1414
String
1515
Vec<T>
16-
scale::Ref<'a, T, U>
16+
parity_scale_codec::Ref<'a, T, U>
1717
= note: required for `NonCodec` to implement `Encode`
1818
note: required by a bound in `DispatchOutput`
1919
--> src/codegen/dispatch/type_check.rs
@@ -25,16 +25,16 @@ error[E0599]: the method `try_invoke` exists for struct `CallBuilder<E, Set<Call
2525
--> tests/ui/trait_def/fail/message_output_non_codec.rs:5:5
2626
|
2727
1 | pub struct NonCodec;
28-
| ------------------- doesn't satisfy `NonCodec: scale::Decode`
28+
| ------------------- doesn't satisfy `NonCodec: parity_scale_codec::Decode`
2929
...
3030
5 | #[ink(message)]
3131
| ^
3232
| |
3333
| method cannot be called due to unsatisfied trait bounds
3434
|
3535
= note: the following trait bounds were not satisfied:
36-
`NonCodec: scale::Decode`
37-
note: the trait `scale::Decode` must be implemented
36+
`NonCodec: parity_scale_codec::Decode`
37+
note: the trait `parity_scale_codec::Decode` must be implemented
3838
--> $CARGO/parity-scale-codec-3.6.3/src/codec.rs
3939
|
4040
| pub trait Decode: Sized {

0 commit comments

Comments
 (0)