Skip to content

Commit

Permalink
Update test fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
cmichi committed Nov 14, 2024
1 parent f5cf445 commit 60f2657
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 144 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ note: required because it appears within the type `Contract`
| ^^^^^^^^
note: required by an implicit `Sized` bound in `Result`
--> $RUST/core/src/result.rs
|
| pub enum Result<T, E> {
| ^ required by the implicit `Sized` requirement on this type parameter 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
Expand All @@ -152,6 +155,9 @@ note: required because it appears within the type `Contract`
| ^^^^^^^^
note: required by an implicit `Sized` bound in `Result`
--> $RUST/core/src/result.rs
|
| pub enum Result<T, E> {
| ^ required by the implicit `Sized` requirement on this type parameter 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 `Vec<NonPacked>: Packed` is not satisfied
Expand Down
144 changes: 0 additions & 144 deletions crates/ink/tests/ui/storage_item/fail/collections_only_packed_2.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -41,150 +41,6 @@ note: required by a bound in `ink_storage::ink_storage_traits::StorableHint::Typ
| type Type: Storable;
| ^^^^^^^^^^^^^^^^^^^^ required by this bound in `StorableHint::Type`

error[E0277]: the trait bound `BTreeMap<u128, NonPacked>: Encode` is not satisfied
--> tests/ui/storage_item/fail/collections_only_packed_2.rs:10:8
|
10 | struct Contract {
| ^^^^^^^^ the trait `Encode` is not implemented for `BTreeMap<u128, NonPacked>`, which is required by `Contract: Sized`
|
= 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<453539032>>`
note: required because it appears within the type `Contract`
--> tests/ui/storage_item/fail/collections_only_packed_2.rs:10:8
|
10 | struct Contract {
| ^^^^^^^^
note: required by a bound in `ink_storage::ink_storage_traits::StorableHint::Type`
--> $WORKSPACE/crates/storage/traits/src/storage.rs
|
| type Type: Storable;
| ^^^^^^^^^^^^^^^^^^^^ required by this bound in `StorableHint::Type`

error[E0277]: the trait bound `BTreeMap<u128, NonPacked>: ink::parity_scale_codec::Decode` is not satisfied
--> tests/ui/storage_item/fail/collections_only_packed_2.rs:10:8
|
10 | struct Contract {
| ^^^^^^^^ the trait `ink::parity_scale_codec::Decode` is not implemented for `BTreeMap<u128, NonPacked>`, which is required by `Contract: Sized`
|
= help: the trait `ink::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>>`
note: required because it appears within the type `Contract`
--> tests/ui/storage_item/fail/collections_only_packed_2.rs:10:8
|
10 | struct Contract {
| ^^^^^^^^
note: required by a bound in `Storable`
--> $WORKSPACE/crates/storage/traits/src/storage.rs
|
| pub trait Storable: Sized {
| ^^^^^ required by this bound in `Storable`

error[E0277]: the trait bound `BTreeMap<u128, NonPacked>: Encode` is not satisfied
--> tests/ui/storage_item/fail/collections_only_packed_2.rs:10:8
|
10 | struct Contract {
| ^^^^^^^^ the trait `Encode` is not implemented for `BTreeMap<u128, NonPacked>`, which is required by `Contract: Sized`
|
= 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<453539032>>`
note: required because it appears within the type `Contract`
--> tests/ui/storage_item/fail/collections_only_packed_2.rs:10:8
|
10 | struct Contract {
| ^^^^^^^^
note: required by a bound in `Storable`
--> $WORKSPACE/crates/storage/traits/src/storage.rs
|
| pub trait Storable: Sized {
| ^^^^^ required by this bound in `Storable`

error[E0277]: the trait bound `BTreeMap<u128, NonPacked>: ink::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 `ink::parity_scale_codec::Decode` is not implemented for `BTreeMap<u128, NonPacked>`, which is required by `Contract: Sized`
|
= help: the trait `ink::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>>`
note: required because it appears within the type `Contract`
--> tests/ui/storage_item/fail/collections_only_packed_2.rs:10:8
|
10 | struct Contract {
| ^^^^^^^^
note: required by an implicit `Sized` bound in `Result`
--> $RUST/core/src/result.rs
= 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::storage_item]
| ^^^^^^^^^^^^^^^^^^^^ the trait `Encode` is not implemented for `BTreeMap<u128, NonPacked>`, which is required by `Contract: Sized`
|
= 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<453539032>>`
note: required because it appears within the type `Contract`
--> tests/ui/storage_item/fail/collections_only_packed_2.rs:10:8
|
10 | struct Contract {
| ^^^^^^^^
note: required by an implicit `Sized` bound in `Result`
--> $RUST/core/src/result.rs
= 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>: Packed` is not satisfied
--> tests/ui/storage_item/fail/collections_only_packed_2.rs:11:5
|
11 | a: BTreeMap<u128, NonPacked>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `ink::parity_scale_codec::Decode` is not implemented for `BTreeMap<u128, NonPacked>`, which is required by `BTreeMap<u128, NonPacked>: AutoStorableHint<ManualKey<453539032>>`
|
= help: the trait `ink::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>>`

error[E0277]: the trait bound `BTreeMap<u128, NonPacked>: Packed` is not satisfied
--> tests/ui/storage_item/fail/collections_only_packed_2.rs:11:5
|
11 | a: BTreeMap<u128, NonPacked>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Encode` is not implemented for `BTreeMap<u128, NonPacked>`, which is required by `BTreeMap<u128, NonPacked>: AutoStorableHint<ManualKey<453539032>>`
|
= 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<453539032>>`

error[E0277]: the trait bound `BTreeMap<u128, NonPacked>: Packed` is not satisfied
--> tests/ui/storage_item/fail/collections_only_packed_2.rs:9:1
|
9 | #[ink::storage_item]
| ^^^^^^^^^^^^^^^^^^^^ the trait `ink::parity_scale_codec::Decode` is not implemented for `BTreeMap<u128, NonPacked>`, which is required by `BTreeMap<u128, NonPacked>: AutoStorableHint<ManualKey<453539032>>`
|
= help: the trait `ink::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>>`
= 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>: Packed` is not satisfied
--> tests/ui/storage_item/fail/collections_only_packed_2.rs:9:1
|
9 | #[ink::storage_item]
| ^^^^^^^^^^^^^^^^^^^^ the trait `Encode` is not implemented for `BTreeMap<u128, NonPacked>`, which is required by `BTreeMap<u128, NonPacked>: AutoStorableHint<ManualKey<453539032>>`
|
= 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<453539032>>`
= note: this error originates in the derive macro `::ink::storage::traits::Storable` (in Nightly builds, run with -Z macro-backtrace for more info)

Expand Down

0 comments on commit 60f2657

Please sign in to comment.