Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Trying to fix UI tests
  • Loading branch information
ascjones committed Sep 9, 2022
commit 63b7a6bd20128422b4987376464fbaaec4707e7b
Original file line number Diff line number Diff line change
Expand Up @@ -71,40 +71,48 @@ note: required by a bound in `Storable`
= note: this error originates in the derive macro `::ink_storage::traits::Storable` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `Vec<NonPacked>: Decode` is not satisfied
--> tests/ui/storage_item/fail/collections_only_packed_1.rs:9:1
|
9 | #[ink_lang::storage_item]
| ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Decode` is not implemented for `Vec<NonPacked>`
|
= help: the trait `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<2085512762>>`
--> tests/ui/storage_item/fail/collections_only_packed_1.rs:9:1
|
9 | #[ink_lang::storage_item]
| ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Decode` is not implemented for `Vec<NonPacked>`
|
= help: the trait `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<2085512762>>`
note: required because it appears within the type `Contract`
--> tests/ui/storage_item/fail/collections_only_packed_1.rs:10:8
|
10 | struct Contract {
| ^^^^^^^^
--> tests/ui/storage_item/fail/collections_only_packed_1.rs:10:8
|
10 | struct Contract {
| ^^^^^^^^
note: required by a bound in `Result`
= note: this error originates in the derive macro `::ink_storage::traits::Storable` (in Nightly builds, run with -Z macro-backtrace for more info)
--> $RUST/core/src/result.rs
|
| pub enum Result<T, E> {
| ^ required by this bound in `Result`
= note: this error originates in the derive macro `::ink_storage::traits::Storable` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `[NonPacked]: Encode` is not satisfied
--> tests/ui/storage_item/fail/collections_only_packed_1.rs:9:1
|
9 | #[ink_lang::storage_item]
| ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Encode` is not implemented for `[NonPacked]`
|
= help: the following other types implement trait `Encode`:
[T; N]
[T]
= note: required for `Vec<NonPacked>` to implement `Encode`
= 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<2085512762>>`
--> tests/ui/storage_item/fail/collections_only_packed_1.rs:9:1
|
9 | #[ink_lang::storage_item]
| ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Encode` is not implemented for `[NonPacked]`
|
= help: the following other types implement trait `Encode`:
[T; N]
[T]
= note: required for `Vec<NonPacked>` to implement `Encode`
= 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<2085512762>>`
note: required because it appears within the type `Contract`
--> tests/ui/storage_item/fail/collections_only_packed_1.rs:10:8
|
10 | struct Contract {
| ^^^^^^^^
--> tests/ui/storage_item/fail/collections_only_packed_1.rs:10:8
|
10 | struct Contract {
| ^^^^^^^^
note: required by a bound in `Result`
= note: this error originates in the derive macro `::ink_storage::traits::Storable` (in Nightly builds, run with -Z macro-backtrace for more info)
--> $RUST/core/src/result.rs
|
| pub enum Result<T, E> {
| ^ required by this bound in `Result`
= note: this error originates in the derive macro `::ink_storage::traits::Storable` (in Nightly builds, run with -Z macro-backtrace for more info)
Original file line number Diff line number Diff line change
Expand Up @@ -65,37 +65,45 @@ note: required by a bound in `Storable`
= note: this error originates in the derive macro `::ink_storage::traits::Storable` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `BTreeMap<u128, NonPacked>: Decode` is not satisfied
--> tests/ui/storage_item/fail/collections_only_packed_2.rs:9:1
|
9 | #[ink_lang::storage_item]
| ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Decode` is not implemented for `BTreeMap<u128, NonPacked>`
|
= help: the trait `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<2085512762>>`
--> tests/ui/storage_item/fail/collections_only_packed_2.rs:9:1
|
9 | #[ink_lang::storage_item]
| ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Decode` is not implemented for `BTreeMap<u128, NonPacked>`
|
= help: the trait `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<2085512762>>`
note: required because it appears within the type `Contract`
--> tests/ui/storage_item/fail/collections_only_packed_2.rs:10:8
|
10 | struct Contract {
| ^^^^^^^^
--> tests/ui/storage_item/fail/collections_only_packed_2.rs:10:8
|
10 | struct Contract {
| ^^^^^^^^
note: required by a bound in `Result`
= note: this error originates in the derive macro `::ink_storage::traits::Storable` (in Nightly builds, run with -Z macro-backtrace for more info)
--> $RUST/core/src/result.rs
|
| pub enum Result<T, E> {
| ^ required by this bound in `Result`
= note: this error originates in the derive macro `::ink_storage::traits::Storable` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `BTreeMap<u128, NonPacked>: Encode` is not satisfied
--> tests/ui/storage_item/fail/collections_only_packed_2.rs:9:1
|
9 | #[ink_lang::storage_item]
| ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Encode` is not implemented for `BTreeMap<u128, NonPacked>`
|
= help: the trait `Encode` 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<2085512762>>`
--> tests/ui/storage_item/fail/collections_only_packed_2.rs:9:1
|
9 | #[ink_lang::storage_item]
| ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Encode` is not implemented for `BTreeMap<u128, NonPacked>`
|
= help: the trait `Encode` 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<2085512762>>`
note: required because it appears within the type `Contract`
--> tests/ui/storage_item/fail/collections_only_packed_2.rs:10:8
|
10 | struct Contract {
| ^^^^^^^^
--> tests/ui/storage_item/fail/collections_only_packed_2.rs:10:8
|
10 | struct Contract {
| ^^^^^^^^
note: required by a bound in `Result`
= note: this error originates in the derive macro `::ink_storage::traits::Storable` (in Nightly builds, run with -Z macro-backtrace for more info)
--> $RUST/core/src/result.rs
|
| pub enum Result<T, E> {
| ^ required by this bound in `Result`
= note: this error originates in the derive macro `::ink_storage::traits::Storable` (in Nightly builds, run with -Z macro-backtrace for more info)