mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 21:01:05 +00:00
Remove old UI test (#1289)
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: Liam Aharon <liam.aharon@hotmail.com>
This commit is contained in:
committed by
GitHub
parent
c5060a5d5a
commit
7768b77d53
@@ -27,6 +27,9 @@ fn ui() {
|
||||
// As trybuild is using `cargo check`, we don't need the real WASM binaries.
|
||||
std::env::set_var("SKIP_WASM_BUILD", "1");
|
||||
|
||||
// Deny all warnings since we emit warnings as part of a Runtime's UI.
|
||||
std::env::set_var("RUSTFLAGS", "--deny warnings");
|
||||
|
||||
let t = trybuild::TestCases::new();
|
||||
t.compile_fail("tests/construct_runtime_ui/*.rs");
|
||||
}
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
#[frame_support::pallet]
|
||||
mod pallet {
|
||||
use frame_support::pallet_prelude::{BuildGenesisConfig, Hooks};
|
||||
use frame_system::pallet_prelude::BlockNumberFor;
|
||||
|
||||
#[pallet::config]
|
||||
pub trait Config: frame_system::Config {}
|
||||
|
||||
#[pallet::pallet]
|
||||
pub struct Pallet<T>(core::marker::PhantomData<T>);
|
||||
|
||||
#[pallet::hooks]
|
||||
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {}
|
||||
|
||||
#[pallet::call]
|
||||
impl<T: Config> Pallet<T> {}
|
||||
|
||||
#[pallet::genesis_config]
|
||||
pub struct GenesisConfig;
|
||||
|
||||
#[pallet::genesis_build]
|
||||
impl BuildGenesisConfig for GenesisConfig {}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
error[E0277]: the trait bound `pallet::GenesisConfig: std::default::Default` is not satisfied
|
||||
--> tests/pallet_ui/genesis_default_not_satisfied.rs:22:30
|
||||
|
|
||||
22 | impl BuildGenesisConfig for GenesisConfig {}
|
||||
| ^^^^^^^^^^^^^ the trait `std::default::Default` is not implemented for `pallet::GenesisConfig`
|
||||
|
|
||||
note: required by a bound in `BuildGenesisConfig`
|
||||
--> $WORKSPACE/substrate/frame/support/src/traits/hooks.rs
|
||||
|
|
||||
| pub trait BuildGenesisConfig: Default + sp_runtime::traits::MaybeSerializeDeserialize {
|
||||
| ^^^^^^^ required by this bound in `BuildGenesisConfig`
|
||||
help: consider annotating `pallet::GenesisConfig` with `#[derive(Default)]`
|
||||
|
|
||||
19 + #[derive(Default)]
|
||||
20 | pub struct GenesisConfig;
|
||||
|
|
||||
Reference in New Issue
Block a user