Unverified Commit fab717fb authored by Michael Müller's avatar Michael Müller Committed by GitHub
Browse files

Fix UI tests for latest nightly (#1382)

parent 078d1f51
Pipeline #212320 failed with stages
in 10 minutes and 32 seconds
......@@ -8,7 +8,8 @@ error[E0277]: the trait bound `NonCodecType: WrapperTypeDecode` is not satisfied
Arc<T>
Box<T>
Rc<T>
= note: required because of the requirements on the impl of `parity_scale_codec::Decode` for `NonCodecType`
sp_core::Bytes
= note: required for `NonCodecType` to implement `parity_scale_codec::Decode`
note: required by a bound in `DispatchInput`
--> src/codegen/dispatch/type_check.rs
|
......@@ -27,15 +28,19 @@ error[E0277]: the trait bound `NonCodecType: WrapperTypeDecode` is not satisfied
Arc<T>
Box<T>
Rc<T>
= note: required because of the requirements on the impl of `parity_scale_codec::Decode` for `NonCodecType`
sp_core::Bytes
= 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:13:9
--> tests/ui/contract/fail/constructor-input-non-codec.rs:3:1
|
3 | #[ink::contract]
| ^^^^^^^^^^^^^^^^ the trait `WrapperTypeEncode` is not implemented for `NonCodecType`
...
13 | / pub fn constructor(_input: NonCodecType) -> Self {
14 | | Self {}
15 | | }
| |_________^ the trait `WrapperTypeEncode` is not implemented for `NonCodecType`
| |_________- required by a bound introduced by this call
|
= help: the following other types implement trait `WrapperTypeEncode`:
&T
......@@ -46,8 +51,8 @@ error[E0277]: the trait bound `NonCodecType: WrapperTypeEncode` is not satisfied
Rc<T>
String
Vec<T>
parity_scale_codec::Ref<'a, T, U>
= note: required because of the requirements on the impl of `Encode` for `NonCodecType`
and 2 others
= 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
|
......
......@@ -34,4 +34,5 @@ error[E0277]: the trait bound `&'static Contract: WrapperTypeDecode` is not sati
Arc<T>
Box<T>
Rc<T>
= note: required because of the requirements on the impl of `parity_scale_codec::Decode` for `&'static Contract`
sp_core::Bytes
= note: required for `&'static Contract` to implement `parity_scale_codec::Decode`
......@@ -29,4 +29,4 @@ error[E0599]: no function or associated item named `message_2` found for struct
| ^^^^^^^^^
| |
| function or associated item not found in `Contract`
| help: there is an associated function with a similar name: `message_1`
| help: there is a method with a similar name: `message_1`
......@@ -8,7 +8,8 @@ error[E0277]: the trait bound `NonCodecType: WrapperTypeDecode` is not satisfied
Arc<T>
Box<T>
Rc<T>
= note: required because of the requirements on the impl of `parity_scale_codec::Decode` for `NonCodecType`
sp_core::Bytes
= note: required for `NonCodecType` to implement `parity_scale_codec::Decode`
note: required by a bound in `DispatchInput`
--> src/codegen/dispatch/type_check.rs
|
......@@ -25,13 +26,17 @@ error[E0277]: the trait bound `NonCodecType: WrapperTypeDecode` is not satisfied
Arc<T>
Box<T>
Rc<T>
= note: required because of the requirements on the impl of `parity_scale_codec::Decode` for `NonCodecType`
sp_core::Bytes
= 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:18:9
--> tests/ui/contract/fail/message-input-non-codec.rs:3:1
|
3 | #[ink::contract]
| ^^^^^^^^^^^^^^^^ the trait `WrapperTypeEncode` is not implemented for `NonCodecType`
...
18 | pub fn message(&self, _input: NonCodecType) {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `WrapperTypeEncode` is not implemented for `NonCodecType`
| ---------------------------------------------- required by a bound introduced by this call
|
= help: the following other types implement trait `WrapperTypeEncode`:
&T
......@@ -42,8 +47,8 @@ error[E0277]: the trait bound `NonCodecType: WrapperTypeEncode` is not satisfied
Rc<T>
String
Vec<T>
parity_scale_codec::Ref<'a, T, U>
= note: required because of the requirements on the impl of `Encode` for `NonCodecType`
and 2 others
= 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
|
......
......@@ -13,8 +13,8 @@ error[E0277]: the trait bound `NonCodecType: WrapperTypeEncode` is not satisfied
Rc<T>
String
Vec<T>
parity_scale_codec::Ref<'a, T, U>
= note: required because of the requirements on the impl of `Encode` for `NonCodecType`
and 2 others
= note: required for `NonCodecType` to implement `Encode`
note: required by a bound in `DispatchOutput`
--> src/codegen/dispatch/type_check.rs
|
......@@ -38,8 +38,8 @@ error[E0277]: the trait bound `NonCodecType: WrapperTypeEncode` is not satisfied
Rc<T>
String
Vec<T>
parity_scale_codec::Ref<'a, T, U>
= note: required because of the requirements on the impl of `Encode` for `NonCodecType`
and 2 others
= note: required for `NonCodecType` to implement `Encode`
note: required by a bound in `return_value`
--> $WORKSPACE/crates/env/src/api.rs
|
......
......@@ -8,7 +8,8 @@ error[E0277]: the trait bound `NonCodec: WrapperTypeDecode` is not satisfied
Arc<T>
Box<T>
Rc<T>
= note: required because of the requirements on the impl of `parity_scale_codec::Decode` for `NonCodec`
sp_core::Bytes
= note: required for `NonCodec` to implement `parity_scale_codec::Decode`
note: required by a bound in `DispatchInput`
--> src/codegen/dispatch/type_check.rs
|
......@@ -16,11 +17,14 @@ note: required by a bound in `DispatchInput`
| ^^^^^^^^^^^^^ required by this bound in `DispatchInput`
error[E0277]: the trait bound `NonCodec: WrapperTypeEncode` is not satisfied
--> tests/ui/trait_def/fail/message_input_non_codec.rs:7:5
--> tests/ui/trait_def/fail/message_input_non_codec.rs:5:1
|
5 | #[ink::trait_definition]
| ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `WrapperTypeEncode` is not implemented for `NonCodec`
6 | pub trait TraitDefinition {
7 | / #[ink(message)]
8 | | fn message(&self, input: NonCodec);
| |_______________________________________^ the trait `WrapperTypeEncode` is not implemented for `NonCodec`
| |_______________________________________- required by a bound introduced by this call
|
= help: the following other types implement trait `WrapperTypeEncode`:
&T
......@@ -31,8 +35,8 @@ error[E0277]: the trait bound `NonCodec: WrapperTypeEncode` is not satisfied
Rc<T>
String
Vec<T>
parity_scale_codec::Ref<'a, T, U>
= note: required because of the requirements on the impl of `Encode` for `NonCodec`
and 2 others
= 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
|
......
......@@ -13,8 +13,8 @@ error[E0277]: the trait bound `NonCodec: WrapperTypeEncode` is not satisfied
Rc<T>
String
Vec<T>
parity_scale_codec::Ref<'a, T, U>
= note: required because of the requirements on the impl of `Encode` for `NonCodec`
and 2 others
= note: required for `NonCodec` to implement `Encode`
note: required by a bound in `DispatchOutput`
--> src/codegen/dispatch/type_check.rs
|
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment