You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* implement const_fn Key::new constructor
* add ContractRootKey trait to ink_lang crate
* use qualified path
* re-export ContractRootKey trait
* automatically implement ContractRootKey for ink! contracts
* implement #[derive(SpreadAllocate)] macro & tests
* re-export #[derive(SpreadAllocate)] macro from ink_storage::traits
* automatically implement SpreadAllocate for the ink! storage struct
* extend execute_constructor to work with fallible ink! constructors
Note that this commit does not yet allow to write fallible ink! constructors.
* add initialize_contract utility method
* re-export initialize_contract utility method
* adjust ink! codegen for recent changes with execute_constructor
* fix clippy warning
* fix hunspell dictionary
* add missing docs to codegen types
* fix UI test
* remove automatic SpreadAllocate implementation
This is due to the fact that trivial_bounds feature is not yet stable.
Otherwise this automatically generated implementation would be totally fine.
We can re-add this feature once Rust adds trivial trait bounds.
* Satisfy OCD in test
* Remove mention of `enum`s from `derive_struct()`
* Remove outdated comment about Clippy lint
* RustFmt
Co-authored-by: Hernando Castano <[email protected]>
Copy file name to clipboardExpand all lines: crates/lang/tests/ui/contract/fail/message-returns-non-codec.stderr
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,9 @@ error[E0277]: the trait bound `NonCodecType: WrapperTypeEncode` is not satisfied
6
6
|
7
7
= note: required because of the requirements on the impl of `Encode` for `NonCodecType`
8
8
note: required by a bound in `DispatchOutput`
9
-
--> src/codegen/dispatch/type_check.rs:69:8
9
+
--> src/codegen/dispatch/type_check.rs
10
10
|
11
-
69 | T: scale::Encode + 'static;
11
+
| T: scale::Encode + 'static;
12
12
| ^^^^^^^^^^^^^ required by this bound in `DispatchOutput`
13
13
14
14
error[E0277]: the trait bound `NonCodecType: WrapperTypeEncode` is not satisfied
@@ -21,9 +21,9 @@ error[E0277]: the trait bound `NonCodecType: WrapperTypeEncode` is not satisfied
21
21
|
22
22
= note: required because of the requirements on the impl of `Encode` for `NonCodecType`
23
23
note: required by a bound in `finalize_message`
24
-
--> src/codegen/dispatch/execution.rs:169:8
24
+
--> src/codegen/dispatch/execution.rs
25
25
|
26
-
169 | R: scale::Encode + 'static,
26
+
| R: scale::Encode + 'static,
27
27
| ^^^^^^^^^^^^^ required by this bound in `finalize_message`
28
28
29
29
error[E0599]: the method `fire` exists for struct `ink_env::call::CallBuilder<DefaultEnvironment, Set<ink_env::AccountId>, Unset<u64>, Unset<u128>, Set<ExecutionInput<ArgumentList<ArgumentListEnd, ArgumentListEnd>>>, Set<ReturnType<NonCodecType>>>`, but its trait bounds were not satisfied
0 commit comments