mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 11:07:56 +00:00
Update ui tests for rust 1.68
This commit is contained in:
+6
-3
@@ -8,9 +8,12 @@ error[E0412]: cannot find type `RuntimeCall` in this scope
|
||||
--> tests/construct_runtime_ui/both_use_and_excluded_parts.rs:18:64
|
||||
|
|
||||
18 | pub type UncheckedExtrinsic = generic::UncheckedExtrinsic<u32, RuntimeCall, Signature, ()>;
|
||||
| - ^^^^^^^^^^^ not found in this scope
|
||||
| |
|
||||
| help: you might be missing a type parameter: `<RuntimeCall>`
|
||||
| ^^^^^^^^^^^ not found in this scope
|
||||
|
|
||||
help: you might be missing a type parameter
|
||||
|
|
||||
18 | pub type UncheckedExtrinsic<RuntimeCall> = generic::UncheckedExtrinsic<u32, RuntimeCall, Signature, ()>;
|
||||
| +++++++++++++
|
||||
|
||||
error[E0412]: cannot find type `Runtime` in this scope
|
||||
--> tests/construct_runtime_ui/both_use_and_excluded_parts.rs:20:25
|
||||
|
||||
+6
-3
@@ -8,9 +8,12 @@ error[E0412]: cannot find type `RuntimeCall` in this scope
|
||||
--> tests/construct_runtime_ui/exclude_undefined_part.rs:23:64
|
||||
|
|
||||
23 | pub type UncheckedExtrinsic = generic::UncheckedExtrinsic<u32, RuntimeCall, Signature, ()>;
|
||||
| - ^^^^^^^^^^^ not found in this scope
|
||||
| |
|
||||
| help: you might be missing a type parameter: `<RuntimeCall>`
|
||||
| ^^^^^^^^^^^ not found in this scope
|
||||
|
|
||||
help: you might be missing a type parameter
|
||||
|
|
||||
23 | pub type UncheckedExtrinsic<RuntimeCall> = generic::UncheckedExtrinsic<u32, RuntimeCall, Signature, ()>;
|
||||
| +++++++++++++
|
||||
|
||||
error[E0412]: cannot find type `Runtime` in this scope
|
||||
--> tests/construct_runtime_ui/exclude_undefined_part.rs:25:25
|
||||
|
||||
@@ -29,18 +29,3 @@ help: consider importing this struct
|
||||
|
|
||||
1 | use frame_system::GenesisConfig;
|
||||
|
|
||||
|
||||
error[E0283]: type annotations needed
|
||||
--> tests/construct_runtime_ui/no_std_genesis_config.rs:40:1
|
||||
|
|
||||
40 | / construct_runtime! {
|
||||
41 | | pub struct Runtime where
|
||||
42 | | Block = Block,
|
||||
43 | | NodeBlock = Block,
|
||||
... |
|
||||
48 | | }
|
||||
49 | | }
|
||||
| |_^ cannot infer type
|
||||
|
|
||||
= note: cannot satisfy `_: std::default::Default`
|
||||
= note: this error originates in the derive macro `Default` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
+2
-2
@@ -18,7 +18,7 @@ error: cannot find macro `decl_storage` in this scope
|
||||
6 | decl_storage! {
|
||||
| ^^^^^^^^^^^^
|
||||
|
|
||||
= note: consider importing this macro:
|
||||
= help: consider importing this macro:
|
||||
frame_support::decl_storage
|
||||
|
||||
error: cannot find macro `decl_module` in this scope
|
||||
@@ -27,5 +27,5 @@ error: cannot find macro `decl_module` in this scope
|
||||
10 | decl_module! {
|
||||
| ^^^^^^^^^^^
|
||||
|
|
||||
= note: consider importing this macro:
|
||||
= help: consider importing this macro:
|
||||
frame_support::decl_module
|
||||
|
||||
-15
@@ -32,18 +32,3 @@ help: consider importing this struct
|
||||
|
|
||||
1 | use frame_system::GenesisConfig;
|
||||
|
|
||||
|
||||
error[E0283]: type annotations needed
|
||||
--> tests/construct_runtime_ui/undefined_genesis_config_part.rs:49:1
|
||||
|
|
||||
49 | / construct_runtime! {
|
||||
50 | | pub struct Runtime where
|
||||
51 | | Block = Block,
|
||||
52 | | NodeBlock = Block,
|
||||
... |
|
||||
57 | | }
|
||||
58 | | }
|
||||
| |_^ cannot infer type
|
||||
|
|
||||
= note: cannot satisfy `_: std::default::Default`
|
||||
= note: this error originates in the derive macro `Default` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
+10
-10
@@ -15,7 +15,7 @@ error: `Pallet` does not have #[pallet::inherent] defined, perhaps you should re
|
||||
|
|
||||
= note: this error originates in the macro `pallet::__substrate_inherent_check::is_inherent_part_defined` which comes from the expansion of the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0599]: no function or associated item named `create_inherent` found for struct `pallet::Pallet` in the current scope
|
||||
error[E0599]: no function or associated item named `create_inherent` found for struct `Pallet` in the current scope
|
||||
--> tests/construct_runtime_ui/undefined_inherent_part.rs:49:1
|
||||
|
|
||||
11 | pub struct Pallet<T>(_);
|
||||
@@ -28,14 +28,14 @@ error[E0599]: no function or associated item named `create_inherent` found for s
|
||||
... |
|
||||
57 | | }
|
||||
58 | | }
|
||||
| |_^ function or associated item not found in `pallet::Pallet<Runtime>`
|
||||
| |_^ function or associated item not found in `Pallet<Runtime>`
|
||||
|
|
||||
= help: items from traits can only be used if the trait is implemented and in scope
|
||||
= note: the following trait defines an item `create_inherent`, perhaps you need to implement it:
|
||||
candidate #1: `ProvideInherent`
|
||||
= note: this error originates in the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0599]: no function or associated item named `is_inherent` found for struct `pallet::Pallet` in the current scope
|
||||
error[E0599]: no function or associated item named `is_inherent` found for struct `Pallet` in the current scope
|
||||
--> tests/construct_runtime_ui/undefined_inherent_part.rs:49:1
|
||||
|
|
||||
11 | pub struct Pallet<T>(_);
|
||||
@@ -48,14 +48,14 @@ error[E0599]: no function or associated item named `is_inherent` found for struc
|
||||
... |
|
||||
57 | | }
|
||||
58 | | }
|
||||
| |_^ function or associated item not found in `pallet::Pallet<Runtime>`
|
||||
| |_^ function or associated item not found in `Pallet<Runtime>`
|
||||
|
|
||||
= help: items from traits can only be used if the trait is implemented and in scope
|
||||
= note: the following trait defines an item `is_inherent`, perhaps you need to implement it:
|
||||
candidate #1: `ProvideInherent`
|
||||
= note: this error originates in the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0599]: no function or associated item named `check_inherent` found for struct `pallet::Pallet` in the current scope
|
||||
error[E0599]: no function or associated item named `check_inherent` found for struct `Pallet` in the current scope
|
||||
--> tests/construct_runtime_ui/undefined_inherent_part.rs:49:1
|
||||
|
|
||||
11 | pub struct Pallet<T>(_);
|
||||
@@ -68,14 +68,14 @@ error[E0599]: no function or associated item named `check_inherent` found for st
|
||||
... |
|
||||
57 | | }
|
||||
58 | | }
|
||||
| |_^ function or associated item not found in `pallet::Pallet<Runtime>`
|
||||
| |_^ function or associated item not found in `Pallet<Runtime>`
|
||||
|
|
||||
= help: items from traits can only be used if the trait is implemented and in scope
|
||||
= note: the following trait defines an item `check_inherent`, perhaps you need to implement it:
|
||||
candidate #1: `ProvideInherent`
|
||||
= note: this error originates in the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0599]: no associated item named `INHERENT_IDENTIFIER` found for struct `pallet::Pallet` in the current scope
|
||||
error[E0599]: no associated item named `INHERENT_IDENTIFIER` found for struct `Pallet` in the current scope
|
||||
--> tests/construct_runtime_ui/undefined_inherent_part.rs:49:1
|
||||
|
|
||||
11 | pub struct Pallet<T>(_);
|
||||
@@ -88,14 +88,14 @@ error[E0599]: no associated item named `INHERENT_IDENTIFIER` found for struct `p
|
||||
... |
|
||||
57 | | }
|
||||
58 | | }
|
||||
| |_^ associated item not found in `pallet::Pallet<Runtime>`
|
||||
| |_^ associated item not found in `Pallet<Runtime>`
|
||||
|
|
||||
= help: items from traits can only be used if the trait is implemented and in scope
|
||||
= note: the following trait defines an item `INHERENT_IDENTIFIER`, perhaps you need to implement it:
|
||||
candidate #1: `ProvideInherent`
|
||||
= note: this error originates in the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0599]: no function or associated item named `is_inherent_required` found for struct `pallet::Pallet` in the current scope
|
||||
error[E0599]: no function or associated item named `is_inherent_required` found for struct `Pallet` in the current scope
|
||||
--> tests/construct_runtime_ui/undefined_inherent_part.rs:49:1
|
||||
|
|
||||
11 | pub struct Pallet<T>(_);
|
||||
@@ -108,7 +108,7 @@ error[E0599]: no function or associated item named `is_inherent_required` found
|
||||
... |
|
||||
57 | | }
|
||||
58 | | }
|
||||
| |_^ function or associated item not found in `pallet::Pallet<Runtime>`
|
||||
| |_^ function or associated item not found in `Pallet<Runtime>`
|
||||
|
|
||||
= help: items from traits can only be used if the trait is implemented and in scope
|
||||
= note: the following trait defines an item `is_inherent_required`, perhaps you need to implement it:
|
||||
|
||||
@@ -32,21 +32,3 @@ help: consider importing this type alias
|
||||
|
|
||||
1 | use frame_system::Origin;
|
||||
|
|
||||
|
||||
error[E0282]: type annotations needed
|
||||
--> tests/construct_runtime_ui/undefined_origin_part.rs:49:1
|
||||
|
|
||||
49 | / construct_runtime! {
|
||||
50 | | pub struct Runtime where
|
||||
51 | | Block = Block,
|
||||
52 | | NodeBlock = Block,
|
||||
... |
|
||||
57 | | }
|
||||
58 | | }
|
||||
| |_^ cannot infer type of the type parameter `AccountId` declared on the enum `RawOrigin`
|
||||
|
|
||||
= note: this error originates in the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
help: consider specifying the generic argument
|
||||
|
|
||||
58 | }::<AccountId>
|
||||
| +++++++++++++
|
||||
|
||||
+4
-4
@@ -29,7 +29,7 @@ error[E0599]: no variant or associated item named `Pallet` found for enum `Runti
|
||||
58 | | }
|
||||
| |_- variant or associated item `Pallet` not found for this enum
|
||||
|
||||
error[E0599]: no function or associated item named `pre_dispatch` found for struct `pallet::Pallet` in the current scope
|
||||
error[E0599]: no function or associated item named `pre_dispatch` found for struct `Pallet` in the current scope
|
||||
--> tests/construct_runtime_ui/undefined_validate_unsigned_part.rs:49:1
|
||||
|
|
||||
11 | pub struct Pallet<T>(_);
|
||||
@@ -42,7 +42,7 @@ error[E0599]: no function or associated item named `pre_dispatch` found for stru
|
||||
... |
|
||||
57 | | }
|
||||
58 | | }
|
||||
| |_^ function or associated item not found in `pallet::Pallet<Runtime>`
|
||||
| |_^ function or associated item not found in `Pallet<Runtime>`
|
||||
|
|
||||
= help: items from traits can only be used if the trait is implemented and in scope
|
||||
= note: the following traits define an item `pre_dispatch`, perhaps you need to implement one of them:
|
||||
@@ -50,7 +50,7 @@ error[E0599]: no function or associated item named `pre_dispatch` found for stru
|
||||
candidate #2: `ValidateUnsigned`
|
||||
= note: this error originates in the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0599]: no function or associated item named `validate_unsigned` found for struct `pallet::Pallet` in the current scope
|
||||
error[E0599]: no function or associated item named `validate_unsigned` found for struct `Pallet` in the current scope
|
||||
--> tests/construct_runtime_ui/undefined_validate_unsigned_part.rs:49:1
|
||||
|
|
||||
11 | pub struct Pallet<T>(_);
|
||||
@@ -63,7 +63,7 @@ error[E0599]: no function or associated item named `validate_unsigned` found for
|
||||
... |
|
||||
57 | | }
|
||||
58 | | }
|
||||
| |_^ function or associated item not found in `pallet::Pallet<Runtime>`
|
||||
| |_^ function or associated item not found in `Pallet<Runtime>`
|
||||
|
|
||||
= help: items from traits can only be used if the trait is implemented and in scope
|
||||
= note: the following traits define an item `validate_unsigned`, perhaps you need to implement one of them:
|
||||
|
||||
@@ -8,9 +8,12 @@ error[E0412]: cannot find type `RuntimeCall` in this scope
|
||||
--> tests/construct_runtime_ui/use_undefined_part.rs:23:64
|
||||
|
|
||||
23 | pub type UncheckedExtrinsic = generic::UncheckedExtrinsic<u32, RuntimeCall, Signature, ()>;
|
||||
| - ^^^^^^^^^^^ not found in this scope
|
||||
| |
|
||||
| help: you might be missing a type parameter: `<RuntimeCall>`
|
||||
| ^^^^^^^^^^^ not found in this scope
|
||||
|
|
||||
help: you might be missing a type parameter
|
||||
|
|
||||
23 | pub type UncheckedExtrinsic<RuntimeCall> = generic::UncheckedExtrinsic<u32, RuntimeCall, Signature, ()>;
|
||||
| +++++++++++++
|
||||
|
||||
error[E0412]: cannot find type `Runtime` in this scope
|
||||
--> tests/construct_runtime_ui/use_undefined_part.rs:25:25
|
||||
|
||||
Reference in New Issue
Block a user