Skip to content

Commit

Permalink
Revert ui test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pmikolajczyk41 committed Jul 5, 2023
1 parent 7821609 commit 574f5f2
Show file tree
Hide file tree
Showing 10 changed files with 38 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ error[E0277]: the trait bound `NonCodecType: WrapperTypeDecode` is not satisfied
Arc<T>
Box<T>
Rc<T>
= note: required for `NonCodecType` to implement `scale::Decode`
= note: required for `NonCodecType` to implement `parity_scale_codec::Decode`
note: required by a bound in `DispatchInput`
--> src/codegen/dispatch/type_check.rs
|
Expand All @@ -25,7 +25,7 @@ error[E0277]: the trait bound `NonCodecType: WrapperTypeDecode` is not satisfied
Arc<T>
Box<T>
Rc<T>
= note: required for `NonCodecType` to implement `scale::Decode`
= note: required for `NonCodecType` to implement `parity_scale_codec::Decode`

error[E0277]: the trait bound `NonCodecType: WrapperTypeEncode` is not satisfied
--> tests/ui/contract/fail/constructor-input-non-codec.rs:1:1
Expand All @@ -45,7 +45,7 @@ error[E0277]: the trait bound `NonCodecType: WrapperTypeEncode` is not satisfied
Rc<T>
String
Vec<T>
scale::Ref<'a, T, U>
parity_scale_codec::Ref<'a, T, U>
= note: required for `NonCodecType` to implement `Encode`
note: required by a bound in `ExecutionInput::<ArgumentList<ArgumentListEnd, ArgumentListEnd>>::push_arg`
--> $WORKSPACE/crates/env/src/call/execution_input.rs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ error[E0277]: the trait bound `contract::Error: WrapperTypeDecode` is not satisf
Arc<T>
Box<T>
Rc<T>
= note: required for `contract::Error` to implement `scale::Decode`
= note: required for `contract::Error` to implement `parity_scale_codec::Decode`
= note: required for `Result<ContractRef, contract::Error>` to implement `ConstructorReturnType<ContractRef>`
note: required by a bound in `CreateBuilder::<E, ContractRef, CodeHash, GasLimit, Endowment, Args, Salt, Unset<ReturnType<()>>>::returns`
--> $WORKSPACE/crates/env/src/call/create_builder.rs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ error[E0277]: the trait bound `&Contract: WrapperTypeDecode` is not satisfied
Arc<T>
Box<T>
Rc<T>
= note: required for `&Contract` to implement `scale::Decode`
= note: required for `&Contract` to implement `parity_scale_codec::Decode`
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ error[E0277]: the trait bound `NonCodecType: WrapperTypeDecode` is not satisfied
Arc<T>
Box<T>
Rc<T>
= note: required for `NonCodecType` to implement `scale::Decode`
= note: required for `NonCodecType` to implement `parity_scale_codec::Decode`
note: required by a bound in `DispatchInput`
--> src/codegen/dispatch/type_check.rs
|
Expand All @@ -25,7 +25,7 @@ error[E0277]: the trait bound `NonCodecType: WrapperTypeDecode` is not satisfied
Arc<T>
Box<T>
Rc<T>
= note: required for `NonCodecType` to implement `scale::Decode`
= note: required for `NonCodecType` to implement `parity_scale_codec::Decode`

error[E0277]: the trait bound `NonCodecType: WrapperTypeEncode` is not satisfied
--> tests/ui/contract/fail/message-input-non-codec.rs:1:1
Expand All @@ -45,7 +45,7 @@ error[E0277]: the trait bound `NonCodecType: WrapperTypeEncode` is not satisfied
Rc<T>
String
Vec<T>
scale::Ref<'a, T, U>
parity_scale_codec::Ref<'a, T, U>
= note: required for `NonCodecType` to implement `Encode`
note: required by a bound in `ExecutionInput::<ArgumentList<ArgumentListEnd, ArgumentListEnd>>::push_arg`
--> $WORKSPACE/crates/env/src/call/execution_input.rs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ error[E0277]: the trait bound `NonCodecType: WrapperTypeEncode` is not satisfied
Rc<T>
String
Vec<T>
scale::Ref<'a, T, U>
parity_scale_codec::Ref<'a, T, U>
= note: required for `NonCodecType` to implement `Encode`
note: required by a bound in `DispatchOutput`
--> src/codegen/dispatch/type_check.rs
Expand All @@ -38,14 +38,14 @@ error[E0599]: the method `try_invoke` exists for struct `CallBuilder<DefaultEnvi
--> tests/ui/contract/fail/message-returns-non-codec.rs:16:9
|
4 | pub struct NonCodecType;
| ----------------------- doesn't satisfy `NonCodecType: scale::Decode`
| ----------------------- doesn't satisfy `NonCodecType: parity_scale_codec::Decode`
...
16 | pub fn message(&self) -> NonCodecType {
| ^^^ method cannot be called due to unsatisfied trait bounds
|
= note: the following trait bounds were not satisfied:
`NonCodecType: scale::Decode`
note: the trait `scale::Decode` must be implemented
`NonCodecType: parity_scale_codec::Decode`
note: the trait `parity_scale_codec::Decode` must be implemented
--> $CARGO/parity-scale-codec-3.6.3/src/codec.rs
|
| pub trait Decode: Sized {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
error[E0277]: the trait bound `Vec<NonPacked>: scale::Decode` is not satisfied
error[E0277]: the trait bound `Vec<NonPacked>: parity_scale_codec::Decode` is not satisfied
--> tests/ui/storage_item/fail/collections_only_packed_1.rs:11:8
|
11 | a: Vec<NonPacked>,
| ^^^ the trait `scale::Decode` is not implemented for `Vec<NonPacked>`
| ^^^ the trait `parity_scale_codec::Decode` is not implemented for `Vec<NonPacked>`
|
= help: the trait `scale::Decode` is implemented for `Vec<T>`
= help: the trait `parity_scale_codec::Decode` is implemented for `Vec<T>`
= note: required for `Vec<NonPacked>` to implement `Packed`
= note: required for `Vec<NonPacked>` to implement `StorableHint<()>`
= note: required for `Vec<NonPacked>` to implement `AutoStorableHint<ManualKey<453539032>>`
Expand All @@ -23,13 +23,13 @@ error[E0277]: the trait bound `[NonPacked]: Encode` is not satisfied
= note: required for `Vec<NonPacked>` to implement `StorableHint<()>`
= note: required for `Vec<NonPacked>` to implement `AutoStorableHint<ManualKey<453539032>>`

error[E0277]: the trait bound `Vec<NonPacked>: scale::Decode` is not satisfied
error[E0277]: the trait bound `Vec<NonPacked>: parity_scale_codec::Decode` is not satisfied
--> tests/ui/storage_item/fail/collections_only_packed_1.rs:10:8
|
10 | struct Contract {
| ^^^^^^^^ the trait `scale::Decode` is not implemented for `Vec<NonPacked>`
| ^^^^^^^^ the trait `parity_scale_codec::Decode` is not implemented for `Vec<NonPacked>`
|
= help: the trait `scale::Decode` is implemented for `Vec<T>`
= help: the trait `parity_scale_codec::Decode` is implemented for `Vec<T>`
= note: required for `Vec<NonPacked>` to implement `Packed`
= note: required for `Vec<NonPacked>` to implement `StorableHint<()>`
= note: required for `Vec<NonPacked>` to implement `AutoStorableHint<ManualKey<453539032>>`
Expand Down Expand Up @@ -68,13 +68,13 @@ note: required by a bound in `Storable`
| pub trait Storable: Sized {
| ^^^^^ required by this bound in `Storable`

error[E0277]: the trait bound `Vec<NonPacked>: scale::Decode` is not satisfied
error[E0277]: the trait bound `Vec<NonPacked>: parity_scale_codec::Decode` is not satisfied
--> tests/ui/storage_item/fail/collections_only_packed_1.rs:9:1
|
9 | #[ink::storage_item]
| ^^^^^^^^^^^^^^^^^^^^ the trait `scale::Decode` is not implemented for `Vec<NonPacked>`
| ^^^^^^^^^^^^^^^^^^^^ the trait `parity_scale_codec::Decode` is not implemented for `Vec<NonPacked>`
|
= help: the trait `scale::Decode` is implemented for `Vec<T>`
= help: the trait `parity_scale_codec::Decode` is implemented for `Vec<T>`
= note: required for `Vec<NonPacked>` to implement `Packed`
= note: required for `Vec<NonPacked>` to implement `StorableHint<()>`
= note: required for `Vec<NonPacked>` to implement `AutoStorableHint<ManualKey<453539032>>`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
error[E0277]: the trait bound `BTreeMap<u128, NonPacked>: scale::Decode` is not satisfied
error[E0277]: the trait bound `BTreeMap<u128, NonPacked>: parity_scale_codec::Decode` is not satisfied
--> tests/ui/storage_item/fail/collections_only_packed_2.rs:11:8
|
11 | a: BTreeMap<u128, NonPacked>,
| ^^^^^^^^ the trait `scale::Decode` is not implemented for `BTreeMap<u128, NonPacked>`
| ^^^^^^^^ the trait `parity_scale_codec::Decode` is not implemented for `BTreeMap<u128, NonPacked>`
|
= help: the trait `scale::Decode` is implemented for `BTreeMap<K, V>`
= help: the trait `parity_scale_codec::Decode` is implemented for `BTreeMap<K, V>`
= note: required for `BTreeMap<u128, NonPacked>` to implement `Packed`
= note: required for `BTreeMap<u128, NonPacked>` to implement `StorableHint<()>`
= note: required for `BTreeMap<u128, NonPacked>` to implement `AutoStorableHint<ManualKey<453539032>>`
Expand All @@ -20,13 +20,13 @@ error[E0277]: the trait bound `BTreeMap<u128, NonPacked>: Encode` is not satisfi
= note: required for `BTreeMap<u128, NonPacked>` to implement `StorableHint<()>`
= note: required for `BTreeMap<u128, NonPacked>` to implement `AutoStorableHint<ManualKey<453539032>>`

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

error[E0277]: the trait bound `BTreeMap<u128, NonPacked>: scale::Decode` is not satisfied
error[E0277]: the trait bound `BTreeMap<u128, NonPacked>: parity_scale_codec::Decode` is not satisfied
--> tests/ui/storage_item/fail/collections_only_packed_2.rs:9:1
|
9 | #[ink::storage_item]
| ^^^^^^^^^^^^^^^^^^^^ the trait `scale::Decode` is not implemented for `BTreeMap<u128, NonPacked>`
| ^^^^^^^^^^^^^^^^^^^^ the trait `parity_scale_codec::Decode` is not implemented for `BTreeMap<u128, NonPacked>`
|
= help: the trait `scale::Decode` is implemented for `BTreeMap<K, V>`
= help: the trait `parity_scale_codec::Decode` is implemented for `BTreeMap<K, V>`
= note: required for `BTreeMap<u128, NonPacked>` to implement `Packed`
= note: required for `BTreeMap<u128, NonPacked>` to implement `StorableHint<()>`
= note: required for `BTreeMap<u128, NonPacked>` to implement `AutoStorableHint<ManualKey<453539032>>`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ error[E0277]: the trait bound `NonPacked: WrapperTypeDecode` is not satisfied
Arc<T>
Box<T>
Rc<T>
= note: required for `NonPacked` to implement `scale::Decode`
= note: required for `NonPacked` to implement `parity_scale_codec::Decode`
= note: required for `NonPacked` to implement `Packed`
note: required by a bound in `consume_packed`
--> tests/ui/storage_item/fail/packed_is_not_derived_automatically.rs:12:22
Expand All @@ -31,7 +31,7 @@ error[E0277]: the trait bound `NonPacked: WrapperTypeEncode` is not satisfied
Rc<T>
String
Vec<T>
scale::Ref<'a, T, U>
parity_scale_codec::Ref<'a, T, U>
= note: required for `NonPacked` to implement `Encode`
= note: required for `NonPacked` to implement `Packed`
note: required by a bound in `consume_packed`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ error[E0277]: the trait bound `NonCodec: WrapperTypeDecode` is not satisfied
Arc<T>
Box<T>
Rc<T>
= note: required for `NonCodec` to implement `scale::Decode`
= note: required for `NonCodec` to implement `parity_scale_codec::Decode`
note: required by a bound in `DispatchInput`
--> src/codegen/dispatch/type_check.rs
|
Expand All @@ -33,7 +33,7 @@ error[E0277]: the trait bound `NonCodec: WrapperTypeEncode` is not satisfied
Rc<T>
String
Vec<T>
scale::Ref<'a, T, U>
parity_scale_codec::Ref<'a, T, U>
= note: required for `NonCodec` to implement `Encode`
note: required by a bound in `ExecutionInput::<ArgumentList<ArgumentListEnd, ArgumentListEnd>>::push_arg`
--> $WORKSPACE/crates/env/src/call/execution_input.rs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ error[E0277]: the trait bound `NonCodec: WrapperTypeEncode` is not satisfied
Rc<T>
String
Vec<T>
scale::Ref<'a, T, U>
parity_scale_codec::Ref<'a, T, U>
= note: required for `NonCodec` to implement `Encode`
note: required by a bound in `DispatchOutput`
--> src/codegen/dispatch/type_check.rs
Expand All @@ -25,16 +25,16 @@ error[E0599]: the method `try_invoke` exists for struct `CallBuilder<E, Set<Call
--> tests/ui/trait_def/fail/message_output_non_codec.rs:5:5
|
1 | pub struct NonCodec;
| ------------------- doesn't satisfy `NonCodec: scale::Decode`
| ------------------- doesn't satisfy `NonCodec: parity_scale_codec::Decode`
...
5 | #[ink(message)]
| ^
| |
| method cannot be called due to unsatisfied trait bounds
|
= note: the following trait bounds were not satisfied:
`NonCodec: scale::Decode`
note: the trait `scale::Decode` must be implemented
`NonCodec: parity_scale_codec::Decode`
note: the trait `parity_scale_codec::Decode` must be implemented
--> $CARGO/parity-scale-codec-3.6.3/src/codec.rs
|
| pub trait Decode: Sized {
Expand Down

0 comments on commit 574f5f2

Please sign in to comment.