Skip to content

Commit 82ea52f

Browse files
committed
fix TryBuild tests
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
1 parent aeabc5a commit 82ea52f

File tree

2 files changed

+62
-62
lines changed

2 files changed

+62
-62
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,105 +1,105 @@
11
error[E0277]: the trait bound `Bar: WrapperTypeDecode` is not satisfied
2-
--> $DIR/storage_ensure_span_are_ok_on_wrong_gen.rs:9:12
2+
--> tests/pallet_ui/storage_ensure_span_are_ok_on_wrong_gen.rs:10:12
33
|
4-
9 | #[pallet::pallet]
5-
| ^^^^^^ the trait `WrapperTypeDecode` is not implemented for `Bar`
4+
10 | #[pallet::without_storage_info]
5+
| ^^^^^^^^^^^^^^^^^^^^ the trait `WrapperTypeDecode` is not implemented for `Bar`
66
|
77
= note: required because of the requirements on the impl of `Decode` for `Bar`
88
= note: required because of the requirements on the impl of `FullCodec` for `Bar`
99
= note: required because of the requirements on the impl of `PartialStorageInfoTrait` for `frame_support::pallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>`
1010
note: required by `partial_storage_info`
11-
--> $DIR/storage.rs:88:2
11+
--> $WORKSPACE/frame/support/src/traits/storage.rs
1212
|
13-
88 | fn partial_storage_info() -> Vec<StorageInfo>;
13+
| fn partial_storage_info() -> Vec<StorageInfo>;
1414
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1515

1616
error[E0277]: the trait bound `Bar: EncodeLike` is not satisfied
17-
--> $DIR/storage_ensure_span_are_ok_on_wrong_gen.rs:9:12
17+
--> tests/pallet_ui/storage_ensure_span_are_ok_on_wrong_gen.rs:10:12
1818
|
19-
9 | #[pallet::pallet]
20-
| ^^^^^^ the trait `EncodeLike` is not implemented for `Bar`
19+
10 | #[pallet::without_storage_info]
20+
| ^^^^^^^^^^^^^^^^^^^^ the trait `EncodeLike` is not implemented for `Bar`
2121
|
2222
= note: required because of the requirements on the impl of `FullEncode` for `Bar`
2323
= note: required because of the requirements on the impl of `FullCodec` for `Bar`
2424
= note: required because of the requirements on the impl of `PartialStorageInfoTrait` for `frame_support::pallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>`
2525
note: required by `partial_storage_info`
26-
--> $DIR/storage.rs:88:2
26+
--> $WORKSPACE/frame/support/src/traits/storage.rs
2727
|
28-
88 | fn partial_storage_info() -> Vec<StorageInfo>;
28+
| fn partial_storage_info() -> Vec<StorageInfo>;
2929
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3030

3131
error[E0277]: the trait bound `Bar: WrapperTypeEncode` is not satisfied
32-
--> $DIR/storage_ensure_span_are_ok_on_wrong_gen.rs:9:12
32+
--> tests/pallet_ui/storage_ensure_span_are_ok_on_wrong_gen.rs:10:12
3333
|
34-
9 | #[pallet::pallet]
35-
| ^^^^^^ the trait `WrapperTypeEncode` is not implemented for `Bar`
34+
10 | #[pallet::without_storage_info]
35+
| ^^^^^^^^^^^^^^^^^^^^ the trait `WrapperTypeEncode` is not implemented for `Bar`
3636
|
3737
= note: required because of the requirements on the impl of `Encode` for `Bar`
3838
= note: required because of the requirements on the impl of `FullEncode` for `Bar`
3939
= note: required because of the requirements on the impl of `FullCodec` for `Bar`
4040
= note: required because of the requirements on the impl of `PartialStorageInfoTrait` for `frame_support::pallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>`
4141
note: required by `partial_storage_info`
42-
--> $DIR/storage.rs:88:2
42+
--> $WORKSPACE/frame/support/src/traits/storage.rs
4343
|
44-
88 | fn partial_storage_info() -> Vec<StorageInfo>;
44+
| fn partial_storage_info() -> Vec<StorageInfo>;
4545
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4646

4747
error[E0277]: the trait bound `Bar: TypeInfo` is not satisfied
48-
--> $DIR/storage_ensure_span_are_ok_on_wrong_gen.rs:20:12
48+
--> tests/pallet_ui/storage_ensure_span_are_ok_on_wrong_gen.rs:21:12
4949
|
50-
20 | #[pallet::storage]
50+
21 | #[pallet::storage]
5151
| ^^^^^^^ the trait `TypeInfo` is not implemented for `Bar`
5252
|
5353
= note: required because of the requirements on the impl of `StaticTypeInfo` for `Bar`
5454
= note: required because of the requirements on the impl of `StorageEntryMetadataBuilder` for `frame_support::pallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>`
5555
note: required by `build_metadata`
56-
--> $DIR/mod.rs:113:2
56+
--> $WORKSPACE/frame/support/src/storage/types/mod.rs
5757
|
58-
113 | fn build_metadata(doc: Vec<&'static str>, entries: &mut Vec<StorageEntryMetadata>);
58+
| fn build_metadata(doc: Vec<&'static str>, entries: &mut Vec<StorageEntryMetadata>);
5959
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6060

6161
error[E0277]: the trait bound `Bar: WrapperTypeDecode` is not satisfied
62-
--> $DIR/storage_ensure_span_are_ok_on_wrong_gen.rs:20:12
62+
--> tests/pallet_ui/storage_ensure_span_are_ok_on_wrong_gen.rs:21:12
6363
|
64-
20 | #[pallet::storage]
64+
21 | #[pallet::storage]
6565
| ^^^^^^^ the trait `WrapperTypeDecode` is not implemented for `Bar`
6666
|
6767
= note: required because of the requirements on the impl of `Decode` for `Bar`
6868
= note: required because of the requirements on the impl of `FullCodec` for `Bar`
6969
= note: required because of the requirements on the impl of `StorageEntryMetadataBuilder` for `frame_support::pallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>`
7070
note: required by `build_metadata`
71-
--> $DIR/mod.rs:113:2
71+
--> $WORKSPACE/frame/support/src/storage/types/mod.rs
7272
|
73-
113 | fn build_metadata(doc: Vec<&'static str>, entries: &mut Vec<StorageEntryMetadata>);
73+
| fn build_metadata(doc: Vec<&'static str>, entries: &mut Vec<StorageEntryMetadata>);
7474
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7575

7676
error[E0277]: the trait bound `Bar: EncodeLike` is not satisfied
77-
--> $DIR/storage_ensure_span_are_ok_on_wrong_gen.rs:20:12
77+
--> tests/pallet_ui/storage_ensure_span_are_ok_on_wrong_gen.rs:21:12
7878
|
79-
20 | #[pallet::storage]
79+
21 | #[pallet::storage]
8080
| ^^^^^^^ the trait `EncodeLike` is not implemented for `Bar`
8181
|
8282
= note: required because of the requirements on the impl of `FullEncode` for `Bar`
8383
= note: required because of the requirements on the impl of `FullCodec` for `Bar`
8484
= note: required because of the requirements on the impl of `StorageEntryMetadataBuilder` for `frame_support::pallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>`
8585
note: required by `build_metadata`
86-
--> $DIR/mod.rs:113:2
86+
--> $WORKSPACE/frame/support/src/storage/types/mod.rs
8787
|
88-
113 | fn build_metadata(doc: Vec<&'static str>, entries: &mut Vec<StorageEntryMetadata>);
88+
| fn build_metadata(doc: Vec<&'static str>, entries: &mut Vec<StorageEntryMetadata>);
8989
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9090

9191
error[E0277]: the trait bound `Bar: WrapperTypeEncode` is not satisfied
92-
--> $DIR/storage_ensure_span_are_ok_on_wrong_gen.rs:20:12
92+
--> tests/pallet_ui/storage_ensure_span_are_ok_on_wrong_gen.rs:21:12
9393
|
94-
20 | #[pallet::storage]
94+
21 | #[pallet::storage]
9595
| ^^^^^^^ the trait `WrapperTypeEncode` is not implemented for `Bar`
9696
|
9797
= note: required because of the requirements on the impl of `Encode` for `Bar`
9898
= note: required because of the requirements on the impl of `FullEncode` for `Bar`
9999
= note: required because of the requirements on the impl of `FullCodec` for `Bar`
100100
= note: required because of the requirements on the impl of `StorageEntryMetadataBuilder` for `frame_support::pallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>`
101101
note: required by `build_metadata`
102-
--> $DIR/mod.rs:113:2
102+
--> $WORKSPACE/frame/support/src/storage/types/mod.rs
103103
|
104-
113 | fn build_metadata(doc: Vec<&'static str>, entries: &mut Vec<StorageEntryMetadata>);
104+
| fn build_metadata(doc: Vec<&'static str>, entries: &mut Vec<StorageEntryMetadata>);
105105
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Original file line numberDiff line numberDiff line change
@@ -1,105 +1,105 @@
11
error[E0277]: the trait bound `Bar: WrapperTypeDecode` is not satisfied
2-
--> $DIR/storage_ensure_span_are_ok_on_wrong_gen_unnamed.rs:9:12
2+
--> tests/pallet_ui/storage_ensure_span_are_ok_on_wrong_gen_unnamed.rs:10:12
33
|
4-
9 | #[pallet::pallet]
5-
| ^^^^^^ the trait `WrapperTypeDecode` is not implemented for `Bar`
4+
10 | #[pallet::without_storage_info]
5+
| ^^^^^^^^^^^^^^^^^^^^ the trait `WrapperTypeDecode` is not implemented for `Bar`
66
|
77
= note: required because of the requirements on the impl of `Decode` for `Bar`
88
= note: required because of the requirements on the impl of `FullCodec` for `Bar`
99
= note: required because of the requirements on the impl of `PartialStorageInfoTrait` for `frame_support::pallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>`
1010
note: required by `partial_storage_info`
11-
--> $DIR/storage.rs:88:2
11+
--> $WORKSPACE/frame/support/src/traits/storage.rs
1212
|
13-
88 | fn partial_storage_info() -> Vec<StorageInfo>;
13+
| fn partial_storage_info() -> Vec<StorageInfo>;
1414
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1515

1616
error[E0277]: the trait bound `Bar: EncodeLike` is not satisfied
17-
--> $DIR/storage_ensure_span_are_ok_on_wrong_gen_unnamed.rs:9:12
17+
--> tests/pallet_ui/storage_ensure_span_are_ok_on_wrong_gen_unnamed.rs:10:12
1818
|
19-
9 | #[pallet::pallet]
20-
| ^^^^^^ the trait `EncodeLike` is not implemented for `Bar`
19+
10 | #[pallet::without_storage_info]
20+
| ^^^^^^^^^^^^^^^^^^^^ the trait `EncodeLike` is not implemented for `Bar`
2121
|
2222
= note: required because of the requirements on the impl of `FullEncode` for `Bar`
2323
= note: required because of the requirements on the impl of `FullCodec` for `Bar`
2424
= note: required because of the requirements on the impl of `PartialStorageInfoTrait` for `frame_support::pallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>`
2525
note: required by `partial_storage_info`
26-
--> $DIR/storage.rs:88:2
26+
--> $WORKSPACE/frame/support/src/traits/storage.rs
2727
|
28-
88 | fn partial_storage_info() -> Vec<StorageInfo>;
28+
| fn partial_storage_info() -> Vec<StorageInfo>;
2929
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3030

3131
error[E0277]: the trait bound `Bar: WrapperTypeEncode` is not satisfied
32-
--> $DIR/storage_ensure_span_are_ok_on_wrong_gen_unnamed.rs:9:12
32+
--> tests/pallet_ui/storage_ensure_span_are_ok_on_wrong_gen_unnamed.rs:10:12
3333
|
34-
9 | #[pallet::pallet]
35-
| ^^^^^^ the trait `WrapperTypeEncode` is not implemented for `Bar`
34+
10 | #[pallet::without_storage_info]
35+
| ^^^^^^^^^^^^^^^^^^^^ the trait `WrapperTypeEncode` is not implemented for `Bar`
3636
|
3737
= note: required because of the requirements on the impl of `Encode` for `Bar`
3838
= note: required because of the requirements on the impl of `FullEncode` for `Bar`
3939
= note: required because of the requirements on the impl of `FullCodec` for `Bar`
4040
= note: required because of the requirements on the impl of `PartialStorageInfoTrait` for `frame_support::pallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>`
4141
note: required by `partial_storage_info`
42-
--> $DIR/storage.rs:88:2
42+
--> $WORKSPACE/frame/support/src/traits/storage.rs
4343
|
44-
88 | fn partial_storage_info() -> Vec<StorageInfo>;
44+
| fn partial_storage_info() -> Vec<StorageInfo>;
4545
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4646

4747
error[E0277]: the trait bound `Bar: TypeInfo` is not satisfied
48-
--> $DIR/storage_ensure_span_are_ok_on_wrong_gen_unnamed.rs:20:12
48+
--> tests/pallet_ui/storage_ensure_span_are_ok_on_wrong_gen_unnamed.rs:21:12
4949
|
50-
20 | #[pallet::storage]
50+
21 | #[pallet::storage]
5151
| ^^^^^^^ the trait `TypeInfo` is not implemented for `Bar`
5252
|
5353
= note: required because of the requirements on the impl of `StaticTypeInfo` for `Bar`
5454
= note: required because of the requirements on the impl of `StorageEntryMetadataBuilder` for `frame_support::pallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>`
5555
note: required by `build_metadata`
56-
--> $DIR/mod.rs:113:2
56+
--> $WORKSPACE/frame/support/src/storage/types/mod.rs
5757
|
58-
113 | fn build_metadata(doc: Vec<&'static str>, entries: &mut Vec<StorageEntryMetadata>);
58+
| fn build_metadata(doc: Vec<&'static str>, entries: &mut Vec<StorageEntryMetadata>);
5959
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6060

6161
error[E0277]: the trait bound `Bar: WrapperTypeDecode` is not satisfied
62-
--> $DIR/storage_ensure_span_are_ok_on_wrong_gen_unnamed.rs:20:12
62+
--> tests/pallet_ui/storage_ensure_span_are_ok_on_wrong_gen_unnamed.rs:21:12
6363
|
64-
20 | #[pallet::storage]
64+
21 | #[pallet::storage]
6565
| ^^^^^^^ the trait `WrapperTypeDecode` is not implemented for `Bar`
6666
|
6767
= note: required because of the requirements on the impl of `Decode` for `Bar`
6868
= note: required because of the requirements on the impl of `FullCodec` for `Bar`
6969
= note: required because of the requirements on the impl of `StorageEntryMetadataBuilder` for `frame_support::pallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>`
7070
note: required by `build_metadata`
71-
--> $DIR/mod.rs:113:2
71+
--> $WORKSPACE/frame/support/src/storage/types/mod.rs
7272
|
73-
113 | fn build_metadata(doc: Vec<&'static str>, entries: &mut Vec<StorageEntryMetadata>);
73+
| fn build_metadata(doc: Vec<&'static str>, entries: &mut Vec<StorageEntryMetadata>);
7474
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7575

7676
error[E0277]: the trait bound `Bar: EncodeLike` is not satisfied
77-
--> $DIR/storage_ensure_span_are_ok_on_wrong_gen_unnamed.rs:20:12
77+
--> tests/pallet_ui/storage_ensure_span_are_ok_on_wrong_gen_unnamed.rs:21:12
7878
|
79-
20 | #[pallet::storage]
79+
21 | #[pallet::storage]
8080
| ^^^^^^^ the trait `EncodeLike` is not implemented for `Bar`
8181
|
8282
= note: required because of the requirements on the impl of `FullEncode` for `Bar`
8383
= note: required because of the requirements on the impl of `FullCodec` for `Bar`
8484
= note: required because of the requirements on the impl of `StorageEntryMetadataBuilder` for `frame_support::pallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>`
8585
note: required by `build_metadata`
86-
--> $DIR/mod.rs:113:2
86+
--> $WORKSPACE/frame/support/src/storage/types/mod.rs
8787
|
88-
113 | fn build_metadata(doc: Vec<&'static str>, entries: &mut Vec<StorageEntryMetadata>);
88+
| fn build_metadata(doc: Vec<&'static str>, entries: &mut Vec<StorageEntryMetadata>);
8989
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9090

9191
error[E0277]: the trait bound `Bar: WrapperTypeEncode` is not satisfied
92-
--> $DIR/storage_ensure_span_are_ok_on_wrong_gen_unnamed.rs:20:12
92+
--> tests/pallet_ui/storage_ensure_span_are_ok_on_wrong_gen_unnamed.rs:21:12
9393
|
94-
20 | #[pallet::storage]
94+
21 | #[pallet::storage]
9595
| ^^^^^^^ the trait `WrapperTypeEncode` is not implemented for `Bar`
9696
|
9797
= note: required because of the requirements on the impl of `Encode` for `Bar`
9898
= note: required because of the requirements on the impl of `FullEncode` for `Bar`
9999
= note: required because of the requirements on the impl of `FullCodec` for `Bar`
100100
= note: required because of the requirements on the impl of `StorageEntryMetadataBuilder` for `frame_support::pallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>`
101101
note: required by `build_metadata`
102-
--> $DIR/mod.rs:113:2
102+
--> $WORKSPACE/frame/support/src/storage/types/mod.rs
103103
|
104-
113 | fn build_metadata(doc: Vec<&'static str>, entries: &mut Vec<StorageEntryMetadata>);
104+
| fn build_metadata(doc: Vec<&'static str>, entries: &mut Vec<StorageEntryMetadata>);
105105
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)