[INFO] fetching crate pallet-preimage 42.0.0... [INFO] building pallet-preimage-42.0.0 against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] extracting crate pallet-preimage 42.0.0 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate pallet-preimage 42.0.0 [INFO] finished tweaking crates.io crate pallet-preimage 42.0.0 [INFO] tweaked toml for crates.io crate pallet-preimage 42.0.0 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate pallet-preimage 42.0.0 on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate pallet-preimage 42.0.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c7f8c77e00d258e2615859d0c0c69070d11eb602072e25f9280ae1ede7418447 [INFO] running `Command { std: "docker" "start" "-a" "c7f8c77e00d258e2615859d0c0c69070d11eb602072e25f9280ae1ede7418447", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c7f8c77e00d258e2615859d0c0c69070d11eb602072e25f9280ae1ede7418447", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c7f8c77e00d258e2615859d0c0c69070d11eb602072e25f9280ae1ede7418447", kill_on_drop: false }` [INFO] [stdout] c7f8c77e00d258e2615859d0c0c69070d11eb602072e25f9280ae1ede7418447 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 93d6316f601dc6c897509687771fb5f6812677adabdec76f5b2905422130fdc8 [INFO] running `Command { std: "docker" "start" "-a" "93d6316f601dc6c897509687771fb5f6812677adabdec76f5b2905422130fdc8", kill_on_drop: false }` [INFO] [stderr] Compiling pallet-preimage v42.0.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.36s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: trie-db v0.30.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "93d6316f601dc6c897509687771fb5f6812677adabdec76f5b2905422130fdc8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "93d6316f601dc6c897509687771fb5f6812677adabdec76f5b2905422130fdc8", kill_on_drop: false }` [INFO] [stdout] 93d6316f601dc6c897509687771fb5f6812677adabdec76f5b2905422130fdc8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a69930396bb6a8d287ae012068fe668d5fa347c3537f38e0d16935e553e48df1 [INFO] running `Command { std: "docker" "start" "-a" "a69930396bb6a8d287ae012068fe668d5fa347c3537f38e0d16935e553e48df1", kill_on_drop: false }` [INFO] [stderr] Compiling pallet-preimage v42.0.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `pallet_balances` [INFO] [stdout] --> src/mock.rs:51:15 [INFO] [stdout] | [INFO] [stdout] 51 | #[derive_impl(pallet_balances::config_preludes::TestDefaultConfig)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `pallet_balances` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `pallet_balances` [INFO] [stdout] --> src/mock.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | Balances: pallet_balances, [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `pallet_balances` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/mock.rs:34:47 [INFO] [stdout] | [INFO] [stdout] 34 | type Block = frame_system::mocking::MockBlock; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 34 | type Block = frame_system::mocking::MockBlock; [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/mock.rs:46:31 [INFO] [stdout] | [INFO] [stdout] 46 | impl frame_system::Config for Test { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RuntimeEvent` in this scope [INFO] [stdout] --> src/mock.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive_impl(frame_system::config_preludes::TestDefaultConfig)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `frame_system::config_preludes::TestDefaultConfig` which comes from the expansion of the macro `frame_support::macro_magic::forward_tokens_verbatim` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: you might have meant to use the associated type [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/frame-system-42.0.0/src/lib.rs:358:9 [INFO] [stdout] | [INFO] [stdout] 358| type Self::RuntimeEvent = (); [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RuntimeOrigin` in this scope [INFO] [stdout] --> src/mock.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive_impl(frame_system::config_preludes::TestDefaultConfig)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `frame_system::config_preludes::TestDefaultConfig` which comes from the expansion of the macro `frame_support::macro_magic::forward_tokens_verbatim` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: you might have meant to use the associated type [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/frame-system-42.0.0/src/lib.rs:360:9 [INFO] [stdout] | [INFO] [stdout] 360| type Self::RuntimeOrigin = (); [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RuntimeCall` in this scope [INFO] [stdout] --> src/mock.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive_impl(frame_system::config_preludes::TestDefaultConfig)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/frame-system-42.0.0/src/lib.rs:2595:2 [INFO] [stdout] | [INFO] [stdout] 2595 | pub type RuntimeCallFor = ::RuntimeCall; [INFO] [stdout] | -------------------------- similarly named type alias `RuntimeCallFor` defined here [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `frame_system::config_preludes::TestDefaultConfig` which comes from the expansion of the macro `frame_support::macro_magic::forward_tokens_verbatim` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: you might have meant to use the associated type [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/frame-system-42.0.0/src/lib.rs:362:9 [INFO] [stdout] | [INFO] [stdout] 362 | type Self::RuntimeCall = (); [INFO] [stdout] | ++++++ [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/frame-system-42.0.0/src/lib.rs:362:20 [INFO] [stdout] | [INFO] [stdout] 362 | type RuntimeCallFor = (); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PalletInfo` in this scope [INFO] [stdout] --> src/mock.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive_impl(frame_system::config_preludes::TestDefaultConfig)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `frame_system::config_preludes::TestDefaultConfig` which comes from the expansion of the macro `frame_support::macro_magic::forward_tokens_verbatim` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: you might have meant to use the associated type [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/frame-system-42.0.0/src/lib.rs:364:9 [INFO] [stdout] | [INFO] [stdout] 364| type Self::PalletInfo = (); [INFO] [stdout] | ++++++ [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 20 + use frame_support::traits::PalletInfo; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RuntimeTask` in this scope [INFO] [stdout] --> src/mock.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive_impl(frame_system::config_preludes::TestDefaultConfig)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `frame_system::config_preludes::TestDefaultConfig` which comes from the expansion of the macro `frame_support::macro_magic::forward_tokens_verbatim` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: you might have meant to use the associated type [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/frame-system-42.0.0/src/lib.rs:366:9 [INFO] [stdout] | [INFO] [stdout] 366| type Self::RuntimeTask = (); [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RuntimeHoldReason` in this scope [INFO] [stdout] --> src/mock.rs:62:32 [INFO] [stdout] | [INFO] [stdout] 62 | pub const PreimageHoldReason: RuntimeHoldReason = RuntimeHoldReason::Preimage(pallet_preimage::HoldReason::Preimage); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/mock.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | impl Config for Test { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RuntimeEvent` in this scope [INFO] [stdout] --> src/mock.rs:74:22 [INFO] [stdout] | [INFO] [stdout] 74 | type RuntimeEvent = RuntimeEvent; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to use the associated type [INFO] [stdout] | [INFO] [stdout] 74 | type RuntimeEvent = Self::RuntimeEvent; [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Balances` in this scope [INFO] [stdout] --> src/mock.rs:75:18 [INFO] [stdout] | [INFO] [stdout] 75 | type Currency = Balances; [INFO] [stdout] | ^^^^^^^^ help: a type alias with a similar name exists: `BalanceOf` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:111:1 [INFO] [stdout] | [INFO] [stdout] 111 | / pub type BalanceOf = [INFO] [stdout] 112 | | <::Currency as Currency<::AccountId>>::Balance; [INFO] [stdout] | |___________________________________________________________________________________________- similarly named type alias `BalanceOf` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Balances` in this scope [INFO] [stdout] --> src/mock.rs:77:46 [INFO] [stdout] | [INFO] [stdout] 77 | type Consideration = HoldConsideration; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:111:1 [INFO] [stdout] | [INFO] [stdout] 111 | / pub type BalanceOf = [INFO] [stdout] 112 | | <::Currency as Currency<::AccountId>>::Balance; [INFO] [stdout] | |___________________________________________________________________________________________- similarly named type alias `BalanceOf` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 77 - type Consideration = HoldConsideration; [INFO] [stdout] 77 + type Consideration = HoldConsideration; [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 72 | impl Config for Test { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/mock.rs:81:44 [INFO] [stdout] | [INFO] [stdout] 81 | let mut t = frame_system::GenesisConfig::::default().build_storage().unwrap(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 80 | pub fn new_test_ext() -> sp_io::TestExternalities { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/mock.rs:82:50 [INFO] [stdout] | [INFO] [stdout] 82 | let balances = pallet_balances::GenesisConfig:: { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 80 | pub fn new_test_ext() -> sp_io::TestExternalities { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:34:20 [INFO] [stdout] | [INFO] [stdout] 34 | Bounded, ::Hashing>, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 33 | pub fn make_bounded_values() -> ( [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:35:20 [INFO] [stdout] | [INFO] [stdout] 35 | Bounded, ::Hashing>, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 33 | pub fn make_bounded_values() -> ( [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:36:20 [INFO] [stdout] | [INFO] [stdout] 36 | Bounded, ::Hashing>, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 33 | pub fn make_bounded_values() -> ( [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:39:35 [INFO] [stdout] | [INFO] [stdout] 39 | let inline = Bounded::, ::Hashing>::Inline(data); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 33 | pub fn make_bounded_values() -> ( [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:42:14 [INFO] [stdout] | [INFO] [stdout] 42 | let hash = ::Hashing::hash(&data[..]).into(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:45:23 [INFO] [stdout] | [INFO] [stdout] 45 | Bounded::, ::Hashing>::unrequested(hash, len); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 33 | pub fn make_bounded_values() -> ( [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:48:14 [INFO] [stdout] | [INFO] [stdout] 48 | let hash = ::Hashing::hash(&data[..]).into(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:49:35 [INFO] [stdout] | [INFO] [stdout] 49 | let legacy = Bounded::, ::Hashing>::Legacy { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 33 | pub fn make_bounded_values() -> ( [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 70 | Error::::AlreadyNoted, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 58 | fn user_note_preimage_works() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | Error::::NotAuthorized [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 95 | fn user_unnote_preimage_works() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 104 | Error::::NotNoted [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 95 | fn user_unnote_preimage_works() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | Error::::NotNoted [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 95 | fn user_unnote_preimage_works() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 126 | Error::::NotNoted [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 120 | fn manager_unnote_preimage_works() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:141:12 [INFO] [stdout] | [INFO] [stdout] 141 | Error::::NotAuthorized [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 136 | fn manager_unnote_user_preimage_works() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:145:12 [INFO] [stdout] | [INFO] [stdout] 145 | Error::::NotNoted [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 136 | fn manager_unnote_user_preimage_works() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:180:23 [INFO] [stdout] | [INFO] [stdout] 180 | RequestStatusFor::::iter().collect::>(), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 175 | fn request_note_order_makes_no_difference() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:181:18 [INFO] [stdout] | [INFO] [stdout] 181 | PreimageFor::::iter().collect::>(), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 175 | fn request_note_order_makes_no_difference() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:189:23 [INFO] [stdout] | [INFO] [stdout] 189 | RequestStatusFor::::iter().collect::>(), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 175 | fn request_note_order_makes_no_difference() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:190:18 [INFO] [stdout] | [INFO] [stdout] 190 | PreimageFor::::iter().collect::>(), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 175 | fn request_note_order_makes_no_difference() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:216:23 [INFO] [stdout] | [INFO] [stdout] 216 | RequestStatusFor::::iter().collect::>(), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 211 | fn request_user_note_order_makes_no_difference() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:217:18 [INFO] [stdout] | [INFO] [stdout] 217 | PreimageFor::::iter().collect::>(), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 211 | fn request_user_note_order_makes_no_difference() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:225:23 [INFO] [stdout] | [INFO] [stdout] 225 | RequestStatusFor::::iter().collect::>(), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 211 | fn request_user_note_order_makes_no_difference() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:226:18 [INFO] [stdout] | [INFO] [stdout] 226 | PreimageFor::::iter().collect::>(), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 211 | fn request_user_note_order_makes_no_difference() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:240:12 [INFO] [stdout] | [INFO] [stdout] 240 | Error::::NotRequested [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 233 | fn unrequest_preimage_works() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:249:12 [INFO] [stdout] | [INFO] [stdout] 249 | Error::::NotRequested [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 233 | fn unrequest_preimage_works() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:277:28 [INFO] [stdout] | [INFO] [stdout] 277 | assert_eq!(PreimageFor::::iter().count(), 8); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 270 | fn noted_preimage_use_correct_map() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:280:33 [INFO] [stdout] | [INFO] [stdout] 280 | assert_eq!(RequestStatusFor::::iter().count(), 8); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 270 | fn noted_preimage_use_correct_map() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:289:28 [INFO] [stdout] | [INFO] [stdout] 289 | assert_eq!(PreimageFor::::iter().count(), 1); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 270 | fn noted_preimage_use_correct_map() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:294:28 [INFO] [stdout] | [INFO] [stdout] 294 | assert_eq!(PreimageFor::::iter().count(), 0); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 270 | fn noted_preimage_use_correct_map() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:297:33 [INFO] [stdout] | [INFO] [stdout] 297 | assert_eq!(RequestStatusFor::::iter().count(), 0); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 270 | fn noted_preimage_use_correct_map() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:313:21 [INFO] [stdout] | [INFO] [stdout] 313 | assert_eq!(hash, ::Hashing::hash(&encoded).into()); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:320:12 [INFO] [stdout] | [INFO] [stdout] 320 | assert!(::have(&bound)); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 320 - assert!(::have(&bound)); [INFO] [stdout] 320 + assert!(::have(&bound)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:337:23 [INFO] [stdout] | [INFO] [stdout] 337 | RequestStatusFor::::get(&hash).unwrap(), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 303 | fn query_and_store_preimage_workflow() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:344:23 [INFO] [stdout] | [INFO] [stdout] 344 | RequestStatusFor::::get(&hash).unwrap(), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 303 | fn query_and_store_preimage_workflow() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:350:23 [INFO] [stdout] | [INFO] [stdout] 350 | RequestStatusFor::::get(&hash).unwrap(), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 303 | fn query_and_store_preimage_workflow() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:355:12 [INFO] [stdout] | [INFO] [stdout] 355 | assert!(::have(&bound)); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 355 - assert!(::have(&bound)); [INFO] [stdout] 355 + assert!(::have(&bound)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:359:13 [INFO] [stdout] | [INFO] [stdout] 359 | assert!(!::have(&bound)); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 359 - assert!(!::have(&bound)); [INFO] [stdout] 359 + assert!(!::have(&bound)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:374:15 [INFO] [stdout] | [INFO] [stdout] 374 | let hash = ::Hashing::hash(&data[..]).into(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:377:4 [INFO] [stdout] | [INFO] [stdout] 377 | ::request(&hash); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 377 - ::request(&hash); [INFO] [stdout] 377 + ::request(&hash); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:380:12 [INFO] [stdout] | [INFO] [stdout] 380 | assert!(::is_requested(&hash)); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 380 - assert!(::is_requested(&hash)); [INFO] [stdout] 380 + assert!(::is_requested(&hash)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:381:12 [INFO] [stdout] | [INFO] [stdout] 381 | assert!(::len(&hash).is_none()); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 381 - assert!(::len(&hash).is_none()); [INFO] [stdout] 381 + assert!(::len(&hash).is_none()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:382:17 [INFO] [stdout] | [INFO] [stdout] 382 | assert_noop!(::fetch(&hash, None), DispatchError::Unavailable); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 382 - assert_noop!(::fetch(&hash, None), DispatchError::Unavailable); [INFO] [stdout] 382 + assert_noop!(::fetch(&hash, None), DispatchError::Unavailable); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:385:4 [INFO] [stdout] | [INFO] [stdout] 385 | ::request(&hash); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 385 - ::request(&hash); [INFO] [stdout] 385 + ::request(&hash); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:387:12 [INFO] [stdout] | [INFO] [stdout] 387 | assert!(::is_requested(&hash)); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 387 - assert!(::is_requested(&hash)); [INFO] [stdout] 387 + assert!(::is_requested(&hash)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:388:12 [INFO] [stdout] | [INFO] [stdout] 388 | assert!(::len(&hash).is_none()); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 388 - assert!(::len(&hash).is_none()); [INFO] [stdout] 388 + assert!(::len(&hash).is_none()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:389:17 [INFO] [stdout] | [INFO] [stdout] 389 | assert_noop!(::fetch(&hash, None), DispatchError::Unavailable); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 389 - assert_noop!(::fetch(&hash, None), DispatchError::Unavailable); [INFO] [stdout] 389 + assert_noop!(::fetch(&hash, None), DispatchError::Unavailable); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:391:33 [INFO] [stdout] | [INFO] [stdout] 391 | assert_eq!(RequestStatusFor::::iter().count(), 1); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 370 | fn query_preimage_request_works() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:394:4 [INFO] [stdout] | [INFO] [stdout] 394 | ::unrequest(&hash); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 394 - ::unrequest(&hash); [INFO] [stdout] 394 + ::unrequest(&hash); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:396:12 [INFO] [stdout] | [INFO] [stdout] 396 | assert!(::is_requested(&hash)); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 396 - assert!(::is_requested(&hash)); [INFO] [stdout] 396 + assert!(::is_requested(&hash)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:398:4 [INFO] [stdout] | [INFO] [stdout] 398 | ::unrequest(&hash); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 398 - ::unrequest(&hash); [INFO] [stdout] 398 + ::unrequest(&hash); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:400:13 [INFO] [stdout] | [INFO] [stdout] 400 | assert!(!::is_requested(&hash)); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 400 - assert!(!::is_requested(&hash)); [INFO] [stdout] 400 + assert!(!::is_requested(&hash)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:402:33 [INFO] [stdout] | [INFO] [stdout] 402 | assert_eq!(RequestStatusFor::::iter().count(), 0); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 370 | fn query_preimage_request_works() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:414:25 [INFO] [stdout] | [INFO] [stdout] 414 | assert_storage_noop!(::hold(&inline)); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 414 - assert_storage_noop!(::hold(&inline)); [INFO] [stdout] 414 + assert_storage_noop!(::hold(&inline)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:416:4 [INFO] [stdout] | [INFO] [stdout] 416 | ::hold(&lookup); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 416 - ::hold(&lookup); [INFO] [stdout] 416 + ::hold(&lookup); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:417:12 [INFO] [stdout] | [INFO] [stdout] 417 | assert!(::is_requested(&lookup.hash())); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 417 - assert!(::is_requested(&lookup.hash())); [INFO] [stdout] 417 + assert!(::is_requested(&lookup.hash())); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:419:4 [INFO] [stdout] | [INFO] [stdout] 419 | ::hold(&legacy); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 419 - ::hold(&legacy); [INFO] [stdout] 419 + ::hold(&legacy); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:420:12 [INFO] [stdout] | [INFO] [stdout] 420 | assert!(::is_requested(&legacy.hash())); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 420 - assert!(::is_requested(&legacy.hash())); [INFO] [stdout] 420 + assert!(::is_requested(&legacy.hash())); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:423:33 [INFO] [stdout] | [INFO] [stdout] 423 | assert_eq!(RequestStatusFor::::iter().count(), 2); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 408 | fn query_preimage_hold_and_drop_work() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:426:4 [INFO] [stdout] | [INFO] [stdout] 426 | ::drop(&lookup); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 426 - ::drop(&lookup); [INFO] [stdout] 426 + ::drop(&lookup); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:427:13 [INFO] [stdout] | [INFO] [stdout] 427 | assert!(!::is_requested(&lookup.hash())); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 427 - assert!(!::is_requested(&lookup.hash())); [INFO] [stdout] 427 + assert!(!::is_requested(&lookup.hash())); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:428:4 [INFO] [stdout] | [INFO] [stdout] 428 | ::drop(&legacy); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 428 - ::drop(&legacy); [INFO] [stdout] 428 + ::drop(&legacy); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:429:13 [INFO] [stdout] | [INFO] [stdout] 429 | assert!(!::is_requested(&legacy.hash())); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 429 - assert!(!::is_requested(&legacy.hash())); [INFO] [stdout] 429 + assert!(!::is_requested(&legacy.hash())); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:432:33 [INFO] [stdout] | [INFO] [stdout] 432 | assert_eq!(RequestStatusFor::::iter().count(), 0); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 408 | fn query_preimage_hold_and_drop_work() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:445:16 [INFO] [stdout] | [INFO] [stdout] 445 | let bound = ::bound(data.clone()).unwrap(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 445 - let bound = ::bound(data.clone()).unwrap(); [INFO] [stdout] 445 + let bound = ::bound(data.clone()).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:447:15 [INFO] [stdout] | [INFO] [stdout] 447 | assert_ok!(::peek(&bound)); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 447 - assert_ok!(::peek(&bound)); [INFO] [stdout] 447 + assert_ok!(::peek(&bound)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:449:4 [INFO] [stdout] | [INFO] [stdout] 449 | ::unnote(&bound.hash()); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 449 - ::unnote(&bound.hash()); [INFO] [stdout] 449 + ::unnote(&bound.hash()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:451:16 [INFO] [stdout] | [INFO] [stdout] 451 | assert_err!(::peek(&bound), DispatchError::Unavailable); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 451 - assert_err!(::peek(&bound), DispatchError::Unavailable); [INFO] [stdout] 451 + assert_err!(::peek(&bound), DispatchError::Unavailable); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:453:15 [INFO] [stdout] | [INFO] [stdout] 453 | assert_ok!(::note(Cow::Borrowed(&data))); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 453 - assert_ok!(::note(Cow::Borrowed(&data))); [INFO] [stdout] 453 + assert_ok!(::note(Cow::Borrowed(&data))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:454:16 [INFO] [stdout] | [INFO] [stdout] 454 | assert_err!(::peek(&bound), DispatchError::Unavailable); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 454 - assert_err!(::peek(&bound), DispatchError::Unavailable); [INFO] [stdout] 454 + assert_err!(::peek(&bound), DispatchError::Unavailable); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:457:15 [INFO] [stdout] | [INFO] [stdout] 457 | assert_ok!(::note(encoded.clone())); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 457 - assert_ok!(::note(encoded.clone())); [INFO] [stdout] 457 + assert_ok!(::note(encoded.clone())); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:459:15 [INFO] [stdout] | [INFO] [stdout] 459 | assert_ok!(::note(encoded)); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 459 - assert_ok!(::note(encoded)); [INFO] [stdout] 459 + assert_ok!(::note(encoded)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:460:15 [INFO] [stdout] | [INFO] [stdout] 460 | assert_ok!(::peek(&bound)); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 460 - assert_ok!(::peek(&bound)); [INFO] [stdout] 460 + assert_ok!(::peek(&bound)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:463:4 [INFO] [stdout] | [INFO] [stdout] 463 | ::unnote(&bound.hash()); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 463 - ::unnote(&bound.hash()); [INFO] [stdout] 463 + ::unnote(&bound.hash()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:464:20 [INFO] [stdout] | [INFO] [stdout] 464 | let data_hash = ::Hashing::hash(&data); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:465:4 [INFO] [stdout] | [INFO] [stdout] 465 | ::unnote(&data_hash.into()); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 465 - ::unnote(&data_hash.into()); [INFO] [stdout] 465 + ::unnote(&data_hash.into()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:475:14 [INFO] [stdout] | [INFO] [stdout] 475 | let len = ::MAX_LENGTH; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 475 - let len = ::MAX_LENGTH; [INFO] [stdout] 475 + let len = ::MAX_LENGTH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:477:15 [INFO] [stdout] | [INFO] [stdout] 477 | assert_ok!(::note(data.into())); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 477 - assert_ok!(::note(data.into())); [INFO] [stdout] 477 + assert_ok!(::note(data.into())); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:481:16 [INFO] [stdout] | [INFO] [stdout] 481 | assert_err!(::note(data.into()), DispatchError::Exhausted); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 481 - assert_err!(::note(data.into()), DispatchError::Exhausted); [INFO] [stdout] 481 + assert_err!(::note(data.into()), DispatchError::Exhausted); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:490:14 [INFO] [stdout] | [INFO] [stdout] 490 | let len = ::MAX_LENGTH; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 490 - let len = ::MAX_LENGTH; [INFO] [stdout] 490 + let len = ::MAX_LENGTH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:492:16 [INFO] [stdout] | [INFO] [stdout] 492 | assert_err!(::bound(data.clone()), DispatchError::Exhausted); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 492 - assert_err!(::bound(data.clone()), DispatchError::Exhausted); [INFO] [stdout] 492 + assert_err!(::bound(data.clone()), DispatchError::Exhausted); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Preimage` in this scope [INFO] [stdout] --> src/tests.rs:496:15 [INFO] [stdout] | [INFO] [stdout] 496 | assert_ok!(::bound(data.clone())); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 496 - assert_ok!(::bound(data.clone())); [INFO] [stdout] 496 + assert_ok!(::bound(data.clone())); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:508:47 [INFO] [stdout] | [INFO] [stdout] 508 | (0..100).map(|j| insert_old_unrequested::(j, alice)).collect::>(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 501 | fn ensure_updated_works() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:518:34 [INFO] [stdout] | [INFO] [stdout] 518 | assert_eq!(RequestStatusFor::::iter().count(), i); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 501 | fn ensure_updated_works() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Test` in this scope [INFO] [stdout] --> src/tests.rs:519:27 [INFO] [stdout] | [INFO] [stdout] 519 | assert_eq!(StatusFor::::iter().count(), 100 - i); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 501 | fn ensure_updated_works() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ConstU64` [INFO] [stdout] --> src/mock.rs:25:40 [INFO] [stdout] | [INFO] [stdout] 25 | traits::{fungible::HoldConsideration, ConstU64}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fungible::InspectHold` [INFO] [stdout] --> src/tests.rs:27:11 [INFO] [stdout] | [INFO] [stdout] 27 | traits::{fungible::InspectHold, Bounded, BoundedInline}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeHoldReason` [INFO] [stdout] --> src/mock.rs:62:52 [INFO] [stdout] | [INFO] [stdout] 62 | pub const PreimageHoldReason: RuntimeHoldReason = RuntimeHoldReason::Preimage(pallet_preimage::HoldReason::Preimage); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of undeclared type `RuntimeHoldReason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:60:14 [INFO] [stdout] | [INFO] [stdout] 60 | assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 60 - assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] 60 + assert_ok!(crate::HoldReason::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:60:38 [INFO] [stdout] | [INFO] [stdout] 60 | assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Balances` [INFO] [stdout] --> src/tests.rs:61:14 [INFO] [stdout] | [INFO] [stdout] 61 | assert_eq!(Balances::balance_on_hold(&PreimageHoldReason::get(), &2), 3); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Balances` [INFO] [stdout] | help: a type alias with a similar name exists: `BalanceOf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Balances` [INFO] [stdout] --> src/tests.rs:62:14 [INFO] [stdout] | [INFO] [stdout] 62 | assert_eq!(Balances::free_balance(2), 97); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Balances` [INFO] [stdout] | help: a type alias with a similar name exists: `BalanceOf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:65:11 [INFO] [stdout] | [INFO] [stdout] 65 | assert!(Preimage::have_preimage(&h)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 65 - assert!(Preimage::have_preimage(&h)); [INFO] [stdout] 65 + assert!(crate::HoldReason::have_preimage(&h)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 66 | assert_eq!(Preimage::get_preimage(&h), Some(vec![1])); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 66 - assert_eq!(Preimage::get_preimage(&h), Some(vec![1])); [INFO] [stdout] 66 + assert_eq!(crate::HoldReason::get_preimage(&h), Some(vec![1])); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:69:4 [INFO] [stdout] | [INFO] [stdout] 69 | Preimage::note_preimage(RuntimeOrigin::signed(2), vec![1]), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 69 - Preimage::note_preimage(RuntimeOrigin::signed(2), vec![1]), [INFO] [stdout] 69 + crate::HoldReason::note_preimage(RuntimeOrigin::signed(2), vec![1]), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:69:28 [INFO] [stdout] | [INFO] [stdout] 69 | Preimage::note_preimage(RuntimeOrigin::signed(2), vec![1]), [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | Preimage::note_preimage(RuntimeOrigin::signed(0), vec![2]), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 73 - Preimage::note_preimage(RuntimeOrigin::signed(0), vec![2]), [INFO] [stdout] 73 + crate::HoldReason::note_preimage(RuntimeOrigin::signed(0), vec![2]), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:73:28 [INFO] [stdout] | [INFO] [stdout] 73 | Preimage::note_preimage(RuntimeOrigin::signed(0), vec![2]), [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:82:14 [INFO] [stdout] | [INFO] [stdout] 82 | assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(1), vec![1])); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 82 - assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(1), vec![1])); [INFO] [stdout] 82 + assert_ok!(crate::HoldReason::note_preimage(RuntimeOrigin::signed(1), vec![1])); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:82:38 [INFO] [stdout] | [INFO] [stdout] 82 | assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(1), vec![1])); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Balances` [INFO] [stdout] --> src/tests.rs:83:14 [INFO] [stdout] | [INFO] [stdout] 83 | assert_eq!(Balances::reserved_balance(1), 0); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Balances` [INFO] [stdout] | help: a type alias with a similar name exists: `BalanceOf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Balances` [INFO] [stdout] --> src/tests.rs:84:14 [INFO] [stdout] | [INFO] [stdout] 84 | assert_eq!(Balances::free_balance(1), 100); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Balances` [INFO] [stdout] | help: a type alias with a similar name exists: `BalanceOf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:87:11 [INFO] [stdout] | [INFO] [stdout] 87 | assert!(Preimage::have_preimage(&h)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 87 - assert!(Preimage::have_preimage(&h)); [INFO] [stdout] 87 + assert!(crate::HoldReason::have_preimage(&h)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:88:14 [INFO] [stdout] | [INFO] [stdout] 88 | assert_eq!(Preimage::get_preimage(&h), Some(vec![1])); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 88 - assert_eq!(Preimage::get_preimage(&h), Some(vec![1])); [INFO] [stdout] 88 + assert_eq!(crate::HoldReason::get_preimage(&h), Some(vec![1])); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:90:14 [INFO] [stdout] | [INFO] [stdout] 90 | assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(1), vec![1])); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 90 - assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(1), vec![1])); [INFO] [stdout] 90 + assert_ok!(crate::HoldReason::note_preimage(RuntimeOrigin::signed(1), vec![1])); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:90:38 [INFO] [stdout] | [INFO] [stdout] 90 | assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(1), vec![1])); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:97:14 [INFO] [stdout] | [INFO] [stdout] 97 | assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 97 - assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] 97 + assert_ok!(crate::HoldReason::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:97:38 [INFO] [stdout] | [INFO] [stdout] 97 | assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:99:4 [INFO] [stdout] | [INFO] [stdout] 99 | Preimage::unnote_preimage(RuntimeOrigin::signed(3), hashed([1])), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 99 - Preimage::unnote_preimage(RuntimeOrigin::signed(3), hashed([1])), [INFO] [stdout] 99 + crate::HoldReason::unnote_preimage(RuntimeOrigin::signed(3), hashed([1])), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:99:30 [INFO] [stdout] | [INFO] [stdout] 99 | Preimage::unnote_preimage(RuntimeOrigin::signed(3), hashed([1])), [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:103:4 [INFO] [stdout] | [INFO] [stdout] 103 | Preimage::unnote_preimage(RuntimeOrigin::signed(2), hashed([2])), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 103 - Preimage::unnote_preimage(RuntimeOrigin::signed(2), hashed([2])), [INFO] [stdout] 103 + crate::HoldReason::unnote_preimage(RuntimeOrigin::signed(2), hashed([2])), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:103:30 [INFO] [stdout] | [INFO] [stdout] 103 | Preimage::unnote_preimage(RuntimeOrigin::signed(2), hashed([2])), [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:107:14 [INFO] [stdout] | [INFO] [stdout] 107 | assert_ok!(Preimage::unnote_preimage(RuntimeOrigin::signed(2), hashed([1]))); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 107 - assert_ok!(Preimage::unnote_preimage(RuntimeOrigin::signed(2), hashed([1]))); [INFO] [stdout] 107 + assert_ok!(crate::HoldReason::unnote_preimage(RuntimeOrigin::signed(2), hashed([1]))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:107:40 [INFO] [stdout] | [INFO] [stdout] 107 | assert_ok!(Preimage::unnote_preimage(RuntimeOrigin::signed(2), hashed([1]))); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:109:4 [INFO] [stdout] | [INFO] [stdout] 109 | Preimage::unnote_preimage(RuntimeOrigin::signed(2), hashed([1])), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 109 - Preimage::unnote_preimage(RuntimeOrigin::signed(2), hashed([1])), [INFO] [stdout] 109 + crate::HoldReason::unnote_preimage(RuntimeOrigin::signed(2), hashed([1])), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:109:30 [INFO] [stdout] | [INFO] [stdout] 109 | Preimage::unnote_preimage(RuntimeOrigin::signed(2), hashed([1])), [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | assert!(!Preimage::have_preimage(&h)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 114 - assert!(!Preimage::have_preimage(&h)); [INFO] [stdout] 114 + assert!(!crate::HoldReason::have_preimage(&h)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:115:14 [INFO] [stdout] | [INFO] [stdout] 115 | assert_eq!(Preimage::get_preimage(&h), None); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 115 - assert_eq!(Preimage::get_preimage(&h), None); [INFO] [stdout] 115 + assert_eq!(crate::HoldReason::get_preimage(&h), None); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:122:14 [INFO] [stdout] | [INFO] [stdout] 122 | assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(1), vec![1])); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 122 - assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(1), vec![1])); [INFO] [stdout] 122 + assert_ok!(crate::HoldReason::note_preimage(RuntimeOrigin::signed(1), vec![1])); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:122:38 [INFO] [stdout] | [INFO] [stdout] 122 | assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(1), vec![1])); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:123:14 [INFO] [stdout] | [INFO] [stdout] 123 | assert_ok!(Preimage::unnote_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 123 - assert_ok!(Preimage::unnote_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] 123 + assert_ok!(crate::HoldReason::unnote_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:123:40 [INFO] [stdout] | [INFO] [stdout] 123 | assert_ok!(Preimage::unnote_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:125:4 [INFO] [stdout] | [INFO] [stdout] 125 | Preimage::unnote_preimage(RuntimeOrigin::signed(1), hashed([1])), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 125 - Preimage::unnote_preimage(RuntimeOrigin::signed(1), hashed([1])), [INFO] [stdout] 125 + crate::HoldReason::unnote_preimage(RuntimeOrigin::signed(1), hashed([1])), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:125:30 [INFO] [stdout] | [INFO] [stdout] 125 | Preimage::unnote_preimage(RuntimeOrigin::signed(1), hashed([1])), [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:130:12 [INFO] [stdout] | [INFO] [stdout] 130 | assert!(!Preimage::have_preimage(&h)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 130 - assert!(!Preimage::have_preimage(&h)); [INFO] [stdout] 130 + assert!(!crate::HoldReason::have_preimage(&h)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:131:14 [INFO] [stdout] | [INFO] [stdout] 131 | assert_eq!(Preimage::get_preimage(&h), None); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 131 - assert_eq!(Preimage::get_preimage(&h), None); [INFO] [stdout] 131 + assert_eq!(crate::HoldReason::get_preimage(&h), None); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:138:14 [INFO] [stdout] | [INFO] [stdout] 138 | assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 138 - assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] 138 + assert_ok!(crate::HoldReason::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:138:38 [INFO] [stdout] | [INFO] [stdout] 138 | assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:140:4 [INFO] [stdout] | [INFO] [stdout] 140 | Preimage::unnote_preimage(RuntimeOrigin::signed(3), hashed([1])), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 140 - Preimage::unnote_preimage(RuntimeOrigin::signed(3), hashed([1])), [INFO] [stdout] 140 + crate::HoldReason::unnote_preimage(RuntimeOrigin::signed(3), hashed([1])), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:140:30 [INFO] [stdout] | [INFO] [stdout] 140 | Preimage::unnote_preimage(RuntimeOrigin::signed(3), hashed([1])), [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:144:4 [INFO] [stdout] | [INFO] [stdout] 144 | Preimage::unnote_preimage(RuntimeOrigin::signed(2), hashed([2])), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 144 - Preimage::unnote_preimage(RuntimeOrigin::signed(2), hashed([2])), [INFO] [stdout] 144 + crate::HoldReason::unnote_preimage(RuntimeOrigin::signed(2), hashed([2])), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:144:30 [INFO] [stdout] | [INFO] [stdout] 144 | Preimage::unnote_preimage(RuntimeOrigin::signed(2), hashed([2])), [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:148:14 [INFO] [stdout] | [INFO] [stdout] 148 | assert_ok!(Preimage::unnote_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 148 - assert_ok!(Preimage::unnote_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] 148 + assert_ok!(crate::HoldReason::unnote_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:148:40 [INFO] [stdout] | [INFO] [stdout] 148 | assert_ok!(Preimage::unnote_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:151:12 [INFO] [stdout] | [INFO] [stdout] 151 | assert!(!Preimage::have_preimage(&h)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 151 - assert!(!Preimage::have_preimage(&h)); [INFO] [stdout] 151 + assert!(!crate::HoldReason::have_preimage(&h)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:152:14 [INFO] [stdout] | [INFO] [stdout] 152 | assert_eq!(Preimage::get_preimage(&h), None); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 152 - assert_eq!(Preimage::get_preimage(&h), None); [INFO] [stdout] 152 + assert_eq!(crate::HoldReason::get_preimage(&h), None); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:159:14 [INFO] [stdout] | [INFO] [stdout] 159 | assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(1), vec![1])); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 159 - assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(1), vec![1])); [INFO] [stdout] 159 + assert_ok!(crate::HoldReason::note_preimage(RuntimeOrigin::signed(1), vec![1])); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:159:38 [INFO] [stdout] | [INFO] [stdout] 159 | assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(1), vec![1])); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:160:14 [INFO] [stdout] | [INFO] [stdout] 160 | assert_ok!(Preimage::request_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 160 - assert_ok!(Preimage::request_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] 160 + assert_ok!(crate::HoldReason::request_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:160:41 [INFO] [stdout] | [INFO] [stdout] 160 | assert_ok!(Preimage::request_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:161:14 [INFO] [stdout] | [INFO] [stdout] 161 | assert_ok!(Preimage::unnote_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 161 - assert_ok!(Preimage::unnote_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] 161 + assert_ok!(crate::HoldReason::unnote_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:161:40 [INFO] [stdout] | [INFO] [stdout] 161 | assert_ok!(Preimage::unnote_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:165:11 [INFO] [stdout] | [INFO] [stdout] 165 | assert!(Preimage::have_preimage(&h)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 165 - assert!(Preimage::have_preimage(&h)); [INFO] [stdout] 165 + assert!(crate::HoldReason::have_preimage(&h)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:166:14 [INFO] [stdout] | [INFO] [stdout] 166 | assert_eq!(Preimage::get_preimage(&h), Some(vec![1])); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 166 - assert_eq!(Preimage::get_preimage(&h), Some(vec![1])); [INFO] [stdout] 166 + assert_eq!(crate::HoldReason::get_preimage(&h), Some(vec![1])); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:169:14 [INFO] [stdout] | [INFO] [stdout] 169 | assert_ok!(Preimage::unrequest_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 169 - assert_ok!(Preimage::unrequest_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] 169 + assert_ok!(crate::HoldReason::unrequest_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:169:43 [INFO] [stdout] | [INFO] [stdout] 169 | assert_ok!(Preimage::unrequest_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:170:12 [INFO] [stdout] | [INFO] [stdout] 170 | assert!(!Preimage::have_preimage(&hashed([1]))); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 170 - assert!(!Preimage::have_preimage(&hashed([1]))); [INFO] [stdout] 170 + assert!(!crate::HoldReason::have_preimage(&hashed([1]))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:177:14 [INFO] [stdout] | [INFO] [stdout] 177 | assert_ok!(Preimage::request_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 177 - assert_ok!(Preimage::request_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] 177 + assert_ok!(crate::HoldReason::request_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:177:41 [INFO] [stdout] | [INFO] [stdout] 177 | assert_ok!(Preimage::request_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:178:14 [INFO] [stdout] | [INFO] [stdout] 178 | assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 178 - assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] 178 + assert_ok!(crate::HoldReason::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:178:38 [INFO] [stdout] | [INFO] [stdout] 178 | assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:185:14 [INFO] [stdout] | [INFO] [stdout] 185 | assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 185 - assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] 185 + assert_ok!(crate::HoldReason::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:185:38 [INFO] [stdout] | [INFO] [stdout] 185 | assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:186:14 [INFO] [stdout] | [INFO] [stdout] 186 | assert_ok!(Preimage::request_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 186 - assert_ok!(Preimage::request_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] 186 + assert_ok!(crate::HoldReason::request_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:186:41 [INFO] [stdout] | [INFO] [stdout] 186 | assert_ok!(Preimage::request_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:187:14 [INFO] [stdout] | [INFO] [stdout] 187 | assert_ok!(Preimage::unnote_preimage(RuntimeOrigin::signed(2), hashed([1]))); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 187 - assert_ok!(Preimage::unnote_preimage(RuntimeOrigin::signed(2), hashed([1]))); [INFO] [stdout] 187 + assert_ok!(crate::HoldReason::unnote_preimage(RuntimeOrigin::signed(2), hashed([1]))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:187:40 [INFO] [stdout] | [INFO] [stdout] 187 | assert_ok!(Preimage::unnote_preimage(RuntimeOrigin::signed(2), hashed([1]))); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:199:14 [INFO] [stdout] | [INFO] [stdout] 199 | assert_ok!(Preimage::request_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 199 - assert_ok!(Preimage::request_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] 199 + assert_ok!(crate::HoldReason::request_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:199:41 [INFO] [stdout] | [INFO] [stdout] 199 | assert_ok!(Preimage::request_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:200:14 [INFO] [stdout] | [INFO] [stdout] 200 | assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 200 - assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] 200 + assert_ok!(crate::HoldReason::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:200:38 [INFO] [stdout] | [INFO] [stdout] 200 | assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Balances` [INFO] [stdout] --> src/tests.rs:201:14 [INFO] [stdout] | [INFO] [stdout] 201 | assert_eq!(Balances::reserved_balance(2), 0); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Balances` [INFO] [stdout] | help: a type alias with a similar name exists: `BalanceOf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Balances` [INFO] [stdout] --> src/tests.rs:202:14 [INFO] [stdout] | [INFO] [stdout] 202 | assert_eq!(Balances::free_balance(2), 100); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Balances` [INFO] [stdout] | help: a type alias with a similar name exists: `BalanceOf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:205:11 [INFO] [stdout] | [INFO] [stdout] 205 | assert!(Preimage::have_preimage(&h)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 205 - assert!(Preimage::have_preimage(&h)); [INFO] [stdout] 205 + assert!(crate::HoldReason::have_preimage(&h)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:206:14 [INFO] [stdout] | [INFO] [stdout] 206 | assert_eq!(Preimage::get_preimage(&h), Some(vec![1])); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 206 - assert_eq!(Preimage::get_preimage(&h), Some(vec![1])); [INFO] [stdout] 206 + assert_eq!(crate::HoldReason::get_preimage(&h), Some(vec![1])); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:213:14 [INFO] [stdout] | [INFO] [stdout] 213 | assert_ok!(Preimage::request_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 213 - assert_ok!(Preimage::request_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] 213 + assert_ok!(crate::HoldReason::request_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:213:41 [INFO] [stdout] | [INFO] [stdout] 213 | assert_ok!(Preimage::request_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:214:14 [INFO] [stdout] | [INFO] [stdout] 214 | assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 214 - assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] 214 + assert_ok!(crate::HoldReason::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:214:38 [INFO] [stdout] | [INFO] [stdout] 214 | assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:221:14 [INFO] [stdout] | [INFO] [stdout] 221 | assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 221 - assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] 221 + assert_ok!(crate::HoldReason::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:221:38 [INFO] [stdout] | [INFO] [stdout] 221 | assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:222:14 [INFO] [stdout] | [INFO] [stdout] 222 | assert_ok!(Preimage::request_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 222 - assert_ok!(Preimage::request_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] 222 + assert_ok!(crate::HoldReason::request_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:222:41 [INFO] [stdout] | [INFO] [stdout] 222 | assert_ok!(Preimage::request_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:223:14 [INFO] [stdout] | [INFO] [stdout] 223 | assert_ok!(Preimage::unnote_preimage(RuntimeOrigin::signed(2), hashed([1]))); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 223 - assert_ok!(Preimage::unnote_preimage(RuntimeOrigin::signed(2), hashed([1]))); [INFO] [stdout] 223 + assert_ok!(crate::HoldReason::unnote_preimage(RuntimeOrigin::signed(2), hashed([1]))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:223:40 [INFO] [stdout] | [INFO] [stdout] 223 | assert_ok!(Preimage::unnote_preimage(RuntimeOrigin::signed(2), hashed([1]))); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:235:14 [INFO] [stdout] | [INFO] [stdout] 235 | assert_ok!(Preimage::request_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 235 - assert_ok!(Preimage::request_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] 235 + assert_ok!(crate::HoldReason::request_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:235:41 [INFO] [stdout] | [INFO] [stdout] 235 | assert_ok!(Preimage::request_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:236:14 [INFO] [stdout] | [INFO] [stdout] 236 | assert_ok!(Preimage::request_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 236 - assert_ok!(Preimage::request_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] 236 + assert_ok!(crate::HoldReason::request_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:236:41 [INFO] [stdout] | [INFO] [stdout] 236 | assert_ok!(Preimage::request_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:237:14 [INFO] [stdout] | [INFO] [stdout] 237 | assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 237 - assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] 237 + assert_ok!(crate::HoldReason::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:237:38 [INFO] [stdout] | [INFO] [stdout] 237 | assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:239:4 [INFO] [stdout] | [INFO] [stdout] 239 | Preimage::unrequest_preimage(RuntimeOrigin::signed(1), hashed([2])), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 239 - Preimage::unrequest_preimage(RuntimeOrigin::signed(1), hashed([2])), [INFO] [stdout] 239 + crate::HoldReason::unrequest_preimage(RuntimeOrigin::signed(1), hashed([2])), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:239:33 [INFO] [stdout] | [INFO] [stdout] 239 | Preimage::unrequest_preimage(RuntimeOrigin::signed(1), hashed([2])), [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:243:14 [INFO] [stdout] | [INFO] [stdout] 243 | assert_ok!(Preimage::unrequest_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 243 - assert_ok!(Preimage::unrequest_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] 243 + assert_ok!(crate::HoldReason::unrequest_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:243:43 [INFO] [stdout] | [INFO] [stdout] 243 | assert_ok!(Preimage::unrequest_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:244:11 [INFO] [stdout] | [INFO] [stdout] 244 | assert!(Preimage::have_preimage(&hashed([1]))); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 244 - assert!(Preimage::have_preimage(&hashed([1]))); [INFO] [stdout] 244 + assert!(crate::HoldReason::have_preimage(&hashed([1]))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:246:14 [INFO] [stdout] | [INFO] [stdout] 246 | assert_ok!(Preimage::unrequest_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 246 - assert_ok!(Preimage::unrequest_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] 246 + assert_ok!(crate::HoldReason::unrequest_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:246:43 [INFO] [stdout] | [INFO] [stdout] 246 | assert_ok!(Preimage::unrequest_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:248:4 [INFO] [stdout] | [INFO] [stdout] 248 | Preimage::unrequest_preimage(RuntimeOrigin::signed(1), hashed([1])), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 248 - Preimage::unrequest_preimage(RuntimeOrigin::signed(1), hashed([1])), [INFO] [stdout] 248 + crate::HoldReason::unrequest_preimage(RuntimeOrigin::signed(1), hashed([1])), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:248:33 [INFO] [stdout] | [INFO] [stdout] 248 | Preimage::unrequest_preimage(RuntimeOrigin::signed(1), hashed([1])), [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:257:14 [INFO] [stdout] | [INFO] [stdout] 257 | assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(2), vec![1; 3])); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 257 - assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(2), vec![1; 3])); [INFO] [stdout] 257 + assert_ok!(crate::HoldReason::note_preimage(RuntimeOrigin::signed(2), vec![1; 3])); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:257:38 [INFO] [stdout] | [INFO] [stdout] 257 | assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(2), vec![1; 3])); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Balances` [INFO] [stdout] --> src/tests.rs:258:14 [INFO] [stdout] | [INFO] [stdout] 258 | assert_eq!(Balances::balance_on_hold(&PreimageHoldReason::get(), &2), 5); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Balances` [INFO] [stdout] | help: a type alias with a similar name exists: `BalanceOf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:259:14 [INFO] [stdout] | [INFO] [stdout] 259 | assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 259 - assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] 259 + assert_ok!(crate::HoldReason::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:259:38 [INFO] [stdout] | [INFO] [stdout] 259 | assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(2), vec![1])); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Balances` [INFO] [stdout] --> src/tests.rs:260:14 [INFO] [stdout] | [INFO] [stdout] 260 | assert_eq!(Balances::balance_on_hold(&PreimageHoldReason::get(), &2), 8); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Balances` [INFO] [stdout] | help: a type alias with a similar name exists: `BalanceOf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:261:14 [INFO] [stdout] | [INFO] [stdout] 261 | assert_ok!(Preimage::request_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 261 - assert_ok!(Preimage::request_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] 261 + assert_ok!(crate::HoldReason::request_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:261:41 [INFO] [stdout] | [INFO] [stdout] 261 | assert_ok!(Preimage::request_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:262:14 [INFO] [stdout] | [INFO] [stdout] 262 | assert_ok!(Preimage::unrequest_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 262 - assert_ok!(Preimage::unrequest_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] 262 + assert_ok!(crate::HoldReason::unrequest_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:262:43 [INFO] [stdout] | [INFO] [stdout] 262 | assert_ok!(Preimage::unrequest_preimage(RuntimeOrigin::signed(1), hashed([1]))); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:263:14 [INFO] [stdout] | [INFO] [stdout] 263 | assert_ok!(Preimage::unnote_preimage(RuntimeOrigin::signed(2), hashed([1]))); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 263 - assert_ok!(Preimage::unnote_preimage(RuntimeOrigin::signed(2), hashed([1]))); [INFO] [stdout] 263 + assert_ok!(crate::HoldReason::unnote_preimage(RuntimeOrigin::signed(2), hashed([1]))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:263:40 [INFO] [stdout] | [INFO] [stdout] 263 | assert_ok!(Preimage::unnote_preimage(RuntimeOrigin::signed(2), hashed([1]))); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Balances` [INFO] [stdout] --> src/tests.rs:265:14 [INFO] [stdout] | [INFO] [stdout] 265 | assert_eq!(Balances::balance_on_hold(&PreimageHoldReason::get(), &2), 5); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Balances` [INFO] [stdout] | help: a type alias with a similar name exists: `BalanceOf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:274:15 [INFO] [stdout] | [INFO] [stdout] 274 | assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(1), vec![0; 128 << (i * 2)])); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 274 - assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(1), vec![0; 128 << (i * 2)])); [INFO] [stdout] 274 + assert_ok!(crate::HoldReason::note_preimage(RuntimeOrigin::signed(1), vec![0; 128 << (i * 2)])); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:274:39 [INFO] [stdout] | [INFO] [stdout] 274 | assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(1), vec![0; 128 << (i * 2)])); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:276:14 [INFO] [stdout] | [INFO] [stdout] 276 | assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(1), vec![0; MAX_SIZE as usize])); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 276 - assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(1), vec![0; MAX_SIZE as usize])); [INFO] [stdout] 276 + assert_ok!(crate::HoldReason::note_preimage(RuntimeOrigin::signed(1), vec![0; MAX_SIZE as usize])); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:276:38 [INFO] [stdout] | [INFO] [stdout] 276 | assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(1), vec![0; MAX_SIZE as usize])); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:284:15 [INFO] [stdout] | [INFO] [stdout] 284 | assert_ok!(Preimage::unnote_preimage( [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 284 - assert_ok!(Preimage::unnote_preimage( [INFO] [stdout] 284 + assert_ok!(crate::HoldReason::unnote_preimage( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:285:5 [INFO] [stdout] | [INFO] [stdout] 285 | RuntimeOrigin::signed(1), [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:290:14 [INFO] [stdout] | [INFO] [stdout] 290 | assert_ok!(Preimage::unnote_preimage( [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 290 - assert_ok!(Preimage::unnote_preimage( [INFO] [stdout] 290 + assert_ok!(crate::HoldReason::unnote_preimage( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:291:4 [INFO] [stdout] | [INFO] [stdout] 291 | RuntimeOrigin::signed(1), [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:310:15 [INFO] [stdout] | [INFO] [stdout] 310 | let bound = Preimage::bound(data.clone()).unwrap(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 310 - let bound = Preimage::bound(data.clone()).unwrap(); [INFO] [stdout] 310 + let bound = crate::HoldReason::bound(data.clone()).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:319:11 [INFO] [stdout] | [INFO] [stdout] 319 | assert!(Preimage::is_requested(&hash)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 319 - assert!(Preimage::is_requested(&hash)); [INFO] [stdout] 319 + assert!(crate::HoldReason::is_requested(&hash)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:321:14 [INFO] [stdout] | [INFO] [stdout] 321 | assert_eq!(Preimage::len(&hash), Some(len)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 321 - assert_eq!(Preimage::len(&hash), Some(len)); [INFO] [stdout] 321 + assert_eq!(crate::HoldReason::len(&hash), Some(len)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:324:14 [INFO] [stdout] | [INFO] [stdout] 324 | assert_eq!(Preimage::fetch(&hash, Some(len)).unwrap(), encoded); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 324 - assert_eq!(Preimage::fetch(&hash, Some(len)).unwrap(), encoded); [INFO] [stdout] 324 + assert_eq!(crate::HoldReason::fetch(&hash, Some(len)).unwrap(), encoded); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:326:14 [INFO] [stdout] | [INFO] [stdout] 326 | assert_eq!(Preimage::fetch(&hash, None).unwrap(), encoded); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 326 - assert_eq!(Preimage::fetch(&hash, None).unwrap(), encoded); [INFO] [stdout] 326 + assert_eq!(crate::HoldReason::fetch(&hash, None).unwrap(), encoded); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:328:15 [INFO] [stdout] | [INFO] [stdout] 328 | assert_err!(Preimage::fetch(&hash, Some(0)), DispatchError::Unavailable); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 328 - assert_err!(Preimage::fetch(&hash, Some(0)), DispatchError::Unavailable); [INFO] [stdout] 328 + assert_err!(crate::HoldReason::fetch(&hash, Some(0)), DispatchError::Unavailable); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:331:14 [INFO] [stdout] | [INFO] [stdout] 331 | assert_eq!(Preimage::peek::>(&bound).unwrap(), (data.clone(), Some(len))); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 331 - assert_eq!(Preimage::peek::>(&bound).unwrap(), (data.clone(), Some(len))); [INFO] [stdout] 331 + assert_eq!(crate::HoldReason::peek::>(&bound).unwrap(), (data.clone(), Some(len))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:333:14 [INFO] [stdout] | [INFO] [stdout] 333 | assert_eq!(Preimage::pick::>(hash, len), bound); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 333 - assert_eq!(Preimage::pick::>(hash, len), bound); [INFO] [stdout] 333 + assert_eq!(crate::HoldReason::pick::>(hash, len), bound); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:334:3 [INFO] [stdout] | [INFO] [stdout] 334 | Preimage::request(&hash); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 334 - Preimage::request(&hash); [INFO] [stdout] 334 + crate::HoldReason::request(&hash); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:342:14 [INFO] [stdout] | [INFO] [stdout] 342 | assert_eq!(Preimage::realize::>(&bound).unwrap(), (data.clone(), Some(len))); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 342 - assert_eq!(Preimage::realize::>(&bound).unwrap(), (data.clone(), Some(len))); [INFO] [stdout] 342 + assert_eq!(crate::HoldReason::realize::>(&bound).unwrap(), (data.clone(), Some(len))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:348:3 [INFO] [stdout] | [INFO] [stdout] 348 | Preimage::drop(&bound); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 348 - Preimage::drop(&bound); [INFO] [stdout] 348 + crate::HoldReason::drop(&bound); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:357:3 [INFO] [stdout] | [INFO] [stdout] 357 | Preimage::unnote(&hash); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 357 - Preimage::unnote(&hash); [INFO] [stdout] 357 + crate::HoldReason::unnote(&hash); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:360:15 [INFO] [stdout] | [INFO] [stdout] 360 | assert_err!(Preimage::fetch(&hash, Some(len)), DispatchError::Unavailable); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 360 - assert_err!(Preimage::fetch(&hash, Some(len)), DispatchError::Unavailable); [INFO] [stdout] 360 + assert_err!(crate::HoldReason::fetch(&hash, Some(len)), DispatchError::Unavailable); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:362:12 [INFO] [stdout] | [INFO] [stdout] 362 | assert!(!Preimage::is_requested(&hash)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 362 - assert!(!Preimage::is_requested(&hash)); [INFO] [stdout] 362 + assert!(!crate::HoldReason::is_requested(&hash)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Preimage` [INFO] [stdout] --> src/tests.rs:513:14 [INFO] [stdout] | [INFO] [stdout] 513 | let res = Preimage::ensure_updated(RuntimeOrigin::signed(alice), hashes).unwrap(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Preimage` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::HoldReason::Preimage`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 513 - let res = Preimage::ensure_updated(RuntimeOrigin::signed(alice), hashes).unwrap(); [INFO] [stdout] 513 + let res = crate::HoldReason::ensure_updated(RuntimeOrigin::signed(alice), hashes).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RuntimeOrigin` [INFO] [stdout] --> src/tests.rs:513:39 [INFO] [stdout] | [INFO] [stdout] 513 | let res = Preimage::ensure_updated(RuntimeOrigin::signed(alice), hashes).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `RuntimeOrigin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `pallet_balances` [INFO] [stdout] --> src/mock.rs:48:21 [INFO] [stdout] | [INFO] [stdout] 48 | type AccountData = pallet_balances::AccountData; [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `pallet_balances` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `pallet_balances`, use `cargo add pallet_balances` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `pallet_balances` [INFO] [stdout] --> src/mock.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | let balances = pallet_balances::GenesisConfig:: { [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `pallet_balances` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `pallet_balances`, use `cargo add pallet_balances` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `pallet-preimage` (lib test) due to 242 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "a69930396bb6a8d287ae012068fe668d5fa347c3537f38e0d16935e553e48df1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a69930396bb6a8d287ae012068fe668d5fa347c3537f38e0d16935e553e48df1", kill_on_drop: false }` [INFO] [stdout] a69930396bb6a8d287ae012068fe668d5fa347c3537f38e0d16935e553e48df1