[INFO] fetching crate blockz 0.2.2... [INFO] testing blockz-0.2.2 against master#99e3aef02079e9c10583638520cd0c134dc3a01d for pr-85530 [INFO] extracting crate blockz 0.2.2 into /workspace/builds/worker-7/source [INFO] validating manifest of crates.io crate blockz 0.2.2 on toolchain 99e3aef02079e9c10583638520cd0c134dc3a01d [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate blockz 0.2.2 [INFO] finished tweaking crates.io crate blockz 0.2.2 [INFO] tweaked toml for crates.io crate blockz 0.2.2 written to /workspace/builds/worker-7/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 30048bdfbb6c7ca477e55e5b8bc705dcd1c0feb6560fd5a143546aa97a84240b [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "30048bdfbb6c7ca477e55e5b8bc705dcd1c0feb6560fd5a143546aa97a84240b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "30048bdfbb6c7ca477e55e5b8bc705dcd1c0feb6560fd5a143546aa97a84240b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "30048bdfbb6c7ca477e55e5b8bc705dcd1c0feb6560fd5a143546aa97a84240b", kill_on_drop: false }` [INFO] [stdout] 30048bdfbb6c7ca477e55e5b8bc705dcd1c0feb6560fd5a143546aa97a84240b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] ff730306cc1cfbe23f4e6bddb88d66a23a4f1c94c01443e9ec182b7ce95ab769 [INFO] running `Command { std: "docker" "start" "-a" "ff730306cc1cfbe23f4e6bddb88d66a23a4f1c94c01443e9ec182b7ce95ab769", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.72 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling anyhow v1.0.40 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling darling_core v0.12.4 [INFO] [stderr] Compiling async-trait v0.1.50 [INFO] [stderr] Compiling darling_macro v0.12.4 [INFO] [stderr] Compiling darling v0.12.4 [INFO] [stderr] Compiling blockz_derive v0.2.2 [INFO] [stderr] Compiling blockz v0.2.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 13.65s [INFO] running `Command { std: "docker" "inspect" "ff730306cc1cfbe23f4e6bddb88d66a23a4f1c94c01443e9ec182b7ce95ab769", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff730306cc1cfbe23f4e6bddb88d66a23a4f1c94c01443e9ec182b7ce95ab769", kill_on_drop: false }` [INFO] [stdout] ff730306cc1cfbe23f4e6bddb88d66a23a4f1c94c01443e9ec182b7ce95ab769 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 428994c5daa8ecd2deb75122db5df3f91d9e20875ec35fb61f25e084660d5764 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "428994c5daa8ecd2deb75122db5df3f91d9e20875ec35fb61f25e084660d5764", kill_on_drop: false }` [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling once_cell v1.7.2 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling pin-project-lite v0.2.6 [INFO] [stderr] Compiling bytes v1.0.1 [INFO] [stderr] Compiling instant v0.1.9 [INFO] [stderr] Compiling lock_api v0.4.4 [INFO] [stderr] Compiling tokio v1.6.1 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling tokio-macros v1.2.0 [INFO] [stderr] Compiling parking_lot_core v0.8.3 [INFO] [stderr] Compiling mio v0.7.11 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling envy v0.4.2 [INFO] [stderr] Compiling trybuild v1.0.42 [INFO] [stderr] Compiling blockz v0.2.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 19.14s [INFO] running `Command { std: "docker" "inspect" "428994c5daa8ecd2deb75122db5df3f91d9e20875ec35fb61f25e084660d5764", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "428994c5daa8ecd2deb75122db5df3f91d9e20875ec35fb61f25e084660d5764", kill_on_drop: false }` [INFO] [stdout] 428994c5daa8ecd2deb75122db5df3f91d9e20875ec35fb61f25e084660d5764 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] e7abd52d2926489f42b605b0c2bc2beeafa5a864b41be428daa3dc9e88ee8ce3 [INFO] running `Command { std: "docker" "start" "-a" "e7abd52d2926489f42b605b0c2bc2beeafa5a864b41be428daa3dc9e88ee8ce3", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.27s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/blockz-decbc285e4951ea0) [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.72 [INFO] [stderr] Compiling libc v0.2.95 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling async-trait v0.1.50 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling anyhow v1.0.40 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling once_cell v1.7.2 [INFO] [stderr] Compiling bytes v1.0.1 [INFO] [stderr] Compiling pin-project-lite v0.2.6 [INFO] [stderr] Compiling instant v0.1.9 [INFO] [stderr] Compiling lock_api v0.4.4 [INFO] [stderr] Compiling tokio v1.6.1 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling parking_lot_core v0.8.3 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling mio v0.7.11 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling darling_core v0.12.4 [INFO] [stderr] Compiling tokio-macros v1.2.0 [INFO] [stderr] Compiling darling_macro v0.12.4 [INFO] [stderr] Compiling darling v0.12.4 [INFO] [stderr] Compiling blockz_derive v0.2.2 [INFO] [stderr] Compiling blockz v0.2.2 (/opt/rustwide/workdir) [INFO] [stderr] Compiling envy v0.4.2 [INFO] [stderr] Compiling blockz-tests v0.0.0 (/opt/rustwide/target/tests/blockz) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 33.45s [INFO] [stderr] [INFO] [stderr] [INFO] [stderr] test direct_configuration-p-0.rs [should pass] ... ok [INFO] [stderr] test direct_configuration-p-1.rs [should pass] ... ok [INFO] [stderr] test direct_configuration-p-2.rs [should pass] ... ok [INFO] [stderr] test direct_configuration-f-0.rs [should fail to compile] ... ok [INFO] [stdout] test test::test_direct_configuration ... ok [INFO] [stderr] test direct_configuration-f-1.rs [should fail to compile] ... ok [INFO] [stderr] [INFO] [stderr] [INFO] [stderr] Compiling blockz-tests v0.0.0 (/opt/rustwide/target/tests/blockz) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.38s [INFO] [stderr] [INFO] [stderr] [INFO] [stderr] test singleton-p-0.rs [should pass] ... ok [INFO] [stderr] test singleton-p-1.rs [should pass] ... ok [INFO] [stderr] test singleton-p-2.rs [should pass] ... ok [INFO] [stderr] test singleton-f-0.rs [should fail to compile] ... mismatch [INFO] [stderr] [INFO] [stderr] EXPECTED: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error: Unknown field: `a` [INFO] [stderr] --> $DIR/singleton-f-0.rs:8:13 [INFO] [stderr] | [INFO] [stderr] 8 | #[singleton(a = "mutex", b = "rwlock", c)] [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] error: Unknown field: `b` [INFO] [stderr] --> $DIR/singleton-f-0.rs:8:26 [INFO] [stderr] | [INFO] [stderr] 8 | #[singleton(a = "mutex", b = "rwlock", c)] [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] error: Unknown field: `c` [INFO] [stderr] --> $DIR/singleton-f-0.rs:8:40 [INFO] [stderr] | [INFO] [stderr] 8 | #[singleton(a = "mutex", b = "rwlock", c)] [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `use_singleton` found for struct `Dummy` in the current scope [INFO] [stderr] --> $DIR/singleton-f-0.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 9 | struct Dummy(Vec); [INFO] [stderr] | ----------------------- function or associated item `use_singleton` not found for this [INFO] [stderr] ... [INFO] [stderr] 12 | #[singleton_fn] [INFO] [stderr] | ^^^^^^^^^^^^^^^ function or associated item not found in `Dummy` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `use_singleton`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `blockz::singleton::Singleton` [INFO] [stderr] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `use_mut_singleton` found for struct `Dummy` in the current scope [INFO] [stderr] --> $DIR/singleton-f-0.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 9 | struct Dummy(Vec); [INFO] [stderr] | ----------------------- function or associated item `use_mut_singleton` not found for this [INFO] [stderr] ... [INFO] [stderr] 17 | #[singleton_fn] [INFO] [stderr] | ^^^^^^^^^^^^^^^ function or associated item not found in `Dummy` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `use_mut_singleton`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `blockz::singleton::Singleton` [INFO] [stderr] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `use_mut_singleton_with_arg` found for struct `Dummy` in the current scope [INFO] [stderr] --> $DIR/singleton-f-0.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 9 | struct Dummy(Vec); [INFO] [stderr] | ----------------------- function or associated item `use_mut_singleton_with_arg` not found for this [INFO] [stderr] ... [INFO] [stderr] 22 | #[singleton_fn] [INFO] [stderr] | ^^^^^^^^^^^^^^^ function or associated item not found in `Dummy` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `use_mut_singleton_with_arg`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `blockz::singleton::Singleton` [INFO] [stderr] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `use_singleton_with_arg` found for struct `Dummy` in the current scope [INFO] [stderr] --> $DIR/singleton-f-0.rs:27:5 [INFO] [stderr] | [INFO] [stderr] 9 | struct Dummy(Vec); [INFO] [stderr] | ----------------------- function or associated item `use_singleton_with_arg` not found for this [INFO] [stderr] ... [INFO] [stderr] 27 | #[singleton_fn] [INFO] [stderr] | ^^^^^^^^^^^^^^^ function or associated item not found in `Dummy` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `use_singleton_with_arg`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `blockz::singleton::Singleton` [INFO] [stderr] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] [INFO] [stderr] ACTUAL OUTPUT: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error: Unknown field: `a` [INFO] [stderr] --> $DIR/singleton-f-0.rs:8:13 [INFO] [stderr] | [INFO] [stderr] 8 | #[singleton(a = "mutex", b = "rwlock", c)] [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: Unknown field: `b` [INFO] [stderr] --> $DIR/singleton-f-0.rs:8:26 [INFO] [stderr] | [INFO] [stderr] 8 | #[singleton(a = "mutex", b = "rwlock", c)] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: Unknown field: `c` [INFO] [stderr] --> $DIR/singleton-f-0.rs:8:40 [INFO] [stderr] | [INFO] [stderr] 8 | #[singleton(a = "mutex", b = "rwlock", c)] [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `use_singleton` found for struct `Dummy` in the current scope [INFO] [stderr] --> $DIR/singleton-f-0.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 9 | struct Dummy(Vec); [INFO] [stderr] | ----------------------- function or associated item `use_singleton` not found for this [INFO] [stderr] ... [INFO] [stderr] 12 | #[singleton_fn] [INFO] [stderr] | ^^^^^^^^^^^^^^^ function or associated item not found in `Dummy` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `use_singleton`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `blockz::singleton::Singleton` [INFO] [stderr] = note: this error originates in the attribute macro `singleton_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `use_mut_singleton` found for struct `Dummy` in the current scope [INFO] [stderr] --> $DIR/singleton-f-0.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 9 | struct Dummy(Vec); [INFO] [stderr] | ----------------------- function or associated item `use_mut_singleton` not found for this [INFO] [stderr] ... [INFO] [stderr] 17 | #[singleton_fn] [INFO] [stderr] | ^^^^^^^^^^^^^^^ function or associated item not found in `Dummy` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `use_mut_singleton`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `blockz::singleton::Singleton` [INFO] [stderr] = note: this error originates in the attribute macro `singleton_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `use_mut_singleton_with_arg` found for struct `Dummy` in the current scope [INFO] [stderr] --> $DIR/singleton-f-0.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 9 | struct Dummy(Vec); [INFO] [stderr] | ----------------------- function or associated item `use_mut_singleton_with_arg` not found for this [INFO] [stderr] ... [INFO] [stderr] 22 | #[singleton_fn] [INFO] [stderr] | ^^^^^^^^^^^^^^^ function or associated item not found in `Dummy` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `use_mut_singleton_with_arg`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `blockz::singleton::Singleton` [INFO] [stderr] = note: this error originates in the attribute macro `singleton_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `use_singleton_with_arg` found for struct `Dummy` in the current scope [INFO] [stderr] --> $DIR/singleton-f-0.rs:27:5 [INFO] [stderr] | [INFO] [stderr] 9 | struct Dummy(Vec); [INFO] [stderr] | ----------------------- function or associated item `use_singleton_with_arg` not found for this [INFO] [stderr] ... [INFO] [stderr] 27 | #[singleton_fn] [INFO] [stderr] | ^^^^^^^^^^^^^^^ function or associated item not found in `Dummy` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `use_singleton_with_arg`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `blockz::singleton::Singleton` [INFO] [stderr] = note: this error originates in the attribute macro `singleton_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] note: If the actual output is the correct output you can bless it by rerunning [INFO] [stderr] your test with the environment variable TRYBUILD=overwrite [INFO] [stderr] [INFO] [stderr] test singleton-f-1.rs [should fail to compile] ... mismatch [INFO] [stderr] [INFO] [stderr] EXPECTED: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error: Unknown field: `lok`. Did you mean `lock`? [INFO] [stderr] --> $DIR/singleton-f-1.rs:8:13 [INFO] [stderr] | [INFO] [stderr] 8 | #[singleton(lok = "mutex")] [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `use_singleton` found for struct `Dummy` in the current scope [INFO] [stderr] --> $DIR/singleton-f-1.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 9 | struct Dummy(Vec); [INFO] [stderr] | ----------------------- function or associated item `use_singleton` not found for this [INFO] [stderr] ... [INFO] [stderr] 12 | #[singleton_fn] [INFO] [stderr] | ^^^^^^^^^^^^^^^ function or associated item not found in `Dummy` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `use_singleton`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `blockz::singleton::Singleton` [INFO] [stderr] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `use_mut_singleton` found for struct `Dummy` in the current scope [INFO] [stderr] --> $DIR/singleton-f-1.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 9 | struct Dummy(Vec); [INFO] [stderr] | ----------------------- function or associated item `use_mut_singleton` not found for this [INFO] [stderr] ... [INFO] [stderr] 17 | #[singleton_fn] [INFO] [stderr] | ^^^^^^^^^^^^^^^ function or associated item not found in `Dummy` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `use_mut_singleton`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `blockz::singleton::Singleton` [INFO] [stderr] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `use_mut_singleton_with_arg` found for struct `Dummy` in the current scope [INFO] [stderr] --> $DIR/singleton-f-1.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 9 | struct Dummy(Vec); [INFO] [stderr] | ----------------------- function or associated item `use_mut_singleton_with_arg` not found for this [INFO] [stderr] ... [INFO] [stderr] 22 | #[singleton_fn] [INFO] [stderr] | ^^^^^^^^^^^^^^^ function or associated item not found in `Dummy` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `use_mut_singleton_with_arg`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `blockz::singleton::Singleton` [INFO] [stderr] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `use_singleton_with_arg` found for struct `Dummy` in the current scope [INFO] [stderr] --> $DIR/singleton-f-1.rs:27:5 [INFO] [stderr] | [INFO] [stderr] 9 | struct Dummy(Vec); [INFO] [stderr] | ----------------------- function or associated item `use_singleton_with_arg` not found for this [INFO] [stderr] ... [INFO] [stderr] 27 | #[singleton_fn] [INFO] [stderr] | ^^^^^^^^^^^^^^^ function or associated item not found in `Dummy` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `use_singleton_with_arg`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `blockz::singleton::Singleton` [INFO] [stderr] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] [INFO] [stderr] ACTUAL OUTPUT: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error: Unknown field: `lok`. Did you mean `lock`? [INFO] [stderr] --> $DIR/singleton-f-1.rs:8:13 [INFO] [stderr] | [INFO] [stderr] 8 | #[singleton(lok = "mutex")] [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `use_singleton` found for struct `Dummy` in the current scope [INFO] [stderr] --> $DIR/singleton-f-1.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 9 | struct Dummy(Vec); [INFO] [stderr] | ----------------------- function or associated item `use_singleton` not found for this [INFO] [stderr] ... [INFO] [stderr] 12 | #[singleton_fn] [INFO] [stderr] | ^^^^^^^^^^^^^^^ function or associated item not found in `Dummy` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `use_singleton`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `blockz::singleton::Singleton` [INFO] [stderr] = note: this error originates in the attribute macro `singleton_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `use_mut_singleton` found for struct `Dummy` in the current scope [INFO] [stderr] --> $DIR/singleton-f-1.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 9 | struct Dummy(Vec); [INFO] [stderr] | ----------------------- function or associated item `use_mut_singleton` not found for this [INFO] [stderr] ... [INFO] [stderr] 17 | #[singleton_fn] [INFO] [stderr] | ^^^^^^^^^^^^^^^ function or associated item not found in `Dummy` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `use_mut_singleton`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `blockz::singleton::Singleton` [INFO] [stderr] = note: this error originates in the attribute macro `singleton_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `use_mut_singleton_with_arg` found for struct `Dummy` in the current scope [INFO] [stderr] --> $DIR/singleton-f-1.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 9 | struct Dummy(Vec); [INFO] [stderr] | ----------------------- function or associated item `use_mut_singleton_with_arg` not found for this [INFO] [stderr] ... [INFO] [stderr] 22 | #[singleton_fn] [INFO] [stderr] | ^^^^^^^^^^^^^^^ function or associated item not found in `Dummy` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `use_mut_singleton_with_arg`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `blockz::singleton::Singleton` [INFO] [stderr] = note: this error originates in the attribute macro `singleton_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `use_singleton_with_arg` found for struct `Dummy` in the current scope [INFO] [stderr] --> $DIR/singleton-f-1.rs:27:5 [INFO] [stderr] | [INFO] [stderr] 9 | struct Dummy(Vec); [INFO] [stderr] | ----------------------- function or associated item `use_singleton_with_arg` not found for this [INFO] [stderr] ... [INFO] [stderr] 27 | #[singleton_fn] [INFO] [stderr] | ^^^^^^^^^^^^^^^ function or associated item not found in `Dummy` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `use_singleton_with_arg`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `blockz::singleton::Singleton` [INFO] [stderr] = note: this error originates in the attribute macro `singleton_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] note: If the actual output is the correct output you can bless it by rerunning [INFO] [stderr] your test with the environment variable TRYBUILD=overwrite [INFO] [stderr] [INFO] [stderr] test singleton-f-2.rs [should fail to compile] ... mismatch [INFO] [stderr] [INFO] [stderr] EXPECTED: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error: Unknown literal value `mootex` [INFO] [stderr] --> $DIR/singleton-f-2.rs:8:20 [INFO] [stderr] | [INFO] [stderr] 8 | #[singleton(lock = "mootex")] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `use_singleton` found for struct `Dummy` in the current scope [INFO] [stderr] --> $DIR/singleton-f-2.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 9 | struct Dummy(Vec); [INFO] [stderr] | ----------------------- function or associated item `use_singleton` not found for this [INFO] [stderr] ... [INFO] [stderr] 12 | #[singleton_fn] [INFO] [stderr] | ^^^^^^^^^^^^^^^ function or associated item not found in `Dummy` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `use_singleton`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `blockz::singleton::Singleton` [INFO] [stderr] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `use_mut_singleton` found for struct `Dummy` in the current scope [INFO] [stderr] --> $DIR/singleton-f-2.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 9 | struct Dummy(Vec); [INFO] [stderr] | ----------------------- function or associated item `use_mut_singleton` not found for this [INFO] [stderr] ... [INFO] [stderr] 17 | #[singleton_fn] [INFO] [stderr] | ^^^^^^^^^^^^^^^ function or associated item not found in `Dummy` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `use_mut_singleton`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `blockz::singleton::Singleton` [INFO] [stderr] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `use_mut_singleton_with_arg` found for struct `Dummy` in the current scope [INFO] [stderr] --> $DIR/singleton-f-2.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 9 | struct Dummy(Vec); [INFO] [stderr] | ----------------------- function or associated item `use_mut_singleton_with_arg` not found for this [INFO] [stderr] ... [INFO] [stderr] 22 | #[singleton_fn] [INFO] [stderr] | ^^^^^^^^^^^^^^^ function or associated item not found in `Dummy` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `use_mut_singleton_with_arg`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `blockz::singleton::Singleton` [INFO] [stderr] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `use_singleton_with_arg` found for struct `Dummy` in the current scope [INFO] [stderr] --> $DIR/singleton-f-2.rs:27:5 [INFO] [stderr] | [INFO] [stderr] 9 | struct Dummy(Vec); [INFO] [stderr] | ----------------------- function or associated item `use_singleton_with_arg` not found for this [INFO] [stderr] ... [INFO] [stderr] 27 | #[singleton_fn] [INFO] [stderr] | ^^^^^^^^^^^^^^^ function or associated item not found in `Dummy` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `use_singleton_with_arg`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `blockz::singleton::Singleton` [INFO] [stderr] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] [INFO] [stderr] ACTUAL OUTPUT: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error: Unknown literal value `mootex` [INFO] [stderr] --> $DIR/singleton-f-2.rs:8:20 [INFO] [stderr] | [INFO] [stderr] 8 | #[singleton(lock = "mootex")] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `use_singleton` found for struct `Dummy` in the current scope [INFO] [stderr] --> $DIR/singleton-f-2.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 9 | struct Dummy(Vec); [INFO] [stderr] | ----------------------- function or associated item `use_singleton` not found for this [INFO] [stderr] ... [INFO] [stderr] 12 | #[singleton_fn] [INFO] [stderr] | ^^^^^^^^^^^^^^^ function or associated item not found in `Dummy` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `use_singleton`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `blockz::singleton::Singleton` [INFO] [stderr] = note: this error originates in the attribute macro `singleton_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `use_mut_singleton` found for struct `Dummy` in the current scope [INFO] [stderr] --> $DIR/singleton-f-2.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 9 | struct Dummy(Vec); [INFO] [stderr] | ----------------------- function or associated item `use_mut_singleton` not found for this [INFO] [stderr] ... [INFO] [stderr] 17 | #[singleton_fn] [INFO] [stderr] | ^^^^^^^^^^^^^^^ function or associated item not found in `Dummy` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `use_mut_singleton`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `blockz::singleton::Singleton` [INFO] [stderr] = note: this error originates in the attribute macro `singleton_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `use_mut_singleton_with_arg` found for struct `Dummy` in the current scope [INFO] [stderr] --> $DIR/singleton-f-2.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 9 | struct Dummy(Vec); [INFO] [stderr] | ----------------------- function or associated item `use_mut_singleton_with_arg` not found for this [INFO] [stderr] ... [INFO] [stderr] 22 | #[singleton_fn] [INFO] [stderr] | ^^^^^^^^^^^^^^^ function or associated item not found in `Dummy` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `use_mut_singleton_with_arg`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `blockz::singleton::Singleton` [INFO] [stderr] = note: this error originates in the attribute macro `singleton_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `use_singleton_with_arg` found for struct `Dummy` in the current scope [INFO] [stderr] --> $DIR/singleton-f-2.rs:27:5 [INFO] [stderr] | [INFO] [stderr] 9 | struct Dummy(Vec); [INFO] [stderr] | ----------------------- function or associated item `use_singleton_with_arg` not found for this [INFO] [stderr] ... [INFO] [stderr] 27 | #[singleton_fn] [INFO] [stderr] | ^^^^^^^^^^^^^^^ function or associated item not found in `Dummy` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `use_singleton_with_arg`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `blockz::singleton::Singleton` [INFO] [stderr] = note: this error originates in the attribute macro `singleton_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] note: If the actual output is the correct output you can bless it by rerunning [INFO] [stderr] your test with the environment variable TRYBUILD=overwrite [INFO] [stderr] [INFO] [stderr] test singleton-f-3.rs [should fail to compile] ... mismatch [INFO] [stderr] [INFO] [stderr] EXPECTED: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error: Unknown literal value `rwlok` [INFO] [stderr] --> $DIR/singleton-f-3.rs:8:20 [INFO] [stderr] | [INFO] [stderr] 8 | #[singleton(lock = "rwlok")] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `use_singleton` found for struct `Dummy` in the current scope [INFO] [stderr] --> $DIR/singleton-f-3.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 9 | struct Dummy(Vec); [INFO] [stderr] | ----------------------- function or associated item `use_singleton` not found for this [INFO] [stderr] ... [INFO] [stderr] 12 | #[singleton_fn] [INFO] [stderr] | ^^^^^^^^^^^^^^^ function or associated item not found in `Dummy` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `use_singleton`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `blockz::singleton::Singleton` [INFO] [stderr] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `use_mut_singleton` found for struct `Dummy` in the current scope [INFO] [stderr] --> $DIR/singleton-f-3.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 9 | struct Dummy(Vec); [INFO] [stderr] | ----------------------- function or associated item `use_mut_singleton` not found for this [INFO] [stderr] ... [INFO] [stderr] 17 | #[singleton_fn] [INFO] [stderr] | ^^^^^^^^^^^^^^^ function or associated item not found in `Dummy` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `use_mut_singleton`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `blockz::singleton::Singleton` [INFO] [stderr] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `use_mut_singleton_with_arg` found for struct `Dummy` in the current scope [INFO] [stderr] --> $DIR/singleton-f-3.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 9 | struct Dummy(Vec); [INFO] [stderr] | ----------------------- function or associated item `use_mut_singleton_with_arg` not found for this [INFO] [stderr] ... [INFO] [stderr] 22 | #[singleton_fn] [INFO] [stderr] | ^^^^^^^^^^^^^^^ function or associated item not found in `Dummy` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `use_mut_singleton_with_arg`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `blockz::singleton::Singleton` [INFO] [stderr] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `use_singleton_with_arg` found for struct `Dummy` in the current scope [INFO] [stderr] --> $DIR/singleton-f-3.rs:27:5 [INFO] [stderr] | [INFO] [stderr] 9 | struct Dummy(Vec); [INFO] [stderr] | ----------------------- function or associated item `use_singleton_with_arg` not found for this [INFO] [stderr] ... [INFO] [stderr] 27 | #[singleton_fn] [INFO] [stderr] | ^^^^^^^^^^^^^^^ function or associated item not found in `Dummy` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `use_singleton_with_arg`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `blockz::singleton::Singleton` [INFO] [stderr] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] [INFO] [stderr] ACTUAL OUTPUT: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error: Unknown literal value `rwlok` [INFO] [stderr] --> $DIR/singleton-f-3.rs:8:20 [INFO] [stderr] | [INFO] [stderr] 8 | #[singleton(lock = "rwlok")] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `use_singleton` found for struct `Dummy` in the current scope [INFO] [stderr] --> $DIR/singleton-f-3.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 9 | struct Dummy(Vec); [INFO] [stderr] | ----------------------- function or associated item `use_singleton` not found for this [INFO] [stderr] ... [INFO] [stderr] 12 | #[singleton_fn] [INFO] [stderr] | ^^^^^^^^^^^^^^^ function or associated item not found in `Dummy` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `use_singleton`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `blockz::singleton::Singleton` [INFO] [stderr] = note: this error originates in the attribute macro `singleton_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `use_mut_singleton` found for struct `Dummy` in the current scope [INFO] [stderr] --> $DIR/singleton-f-3.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 9 | struct Dummy(Vec); [INFO] [stderr] | ----------------------- function or associated item `use_mut_singleton` not found for this [INFO] [stderr] ... [INFO] [stderr] 17 | #[singleton_fn] [INFO] [stderr] | ^^^^^^^^^^^^^^^ function or associated item not found in `Dummy` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `use_mut_singleton`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `blockz::singleton::Singleton` [INFO] [stderr] = note: this error originates in the attribute macro `singleton_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `use_mut_singleton_with_arg` found for struct `Dummy` in the current scope [INFO] [stderr] --> $DIR/singleton-f-3.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 9 | struct Dummy(Vec); [INFO] [stderr] | ----------------------- function or associated item `use_mut_singleton_with_arg` not found for this [INFO] [stderr] ... [INFO] [stderr] 22 | #[singleton_fn] [INFO] [stderr] | ^^^^^^^^^^^^^^^ function or associated item not found in `Dummy` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `use_mut_singleton_with_arg`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `blockz::singleton::Singleton` [INFO] [stderr] = note: this error originates in the attribute macro `singleton_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `use_singleton_with_arg` found for struct `Dummy` in the current scope [INFO] [stderr] --> $DIR/singleton-f-3.rs:27:5 [INFO] [stderr] | [INFO] [stderr] 9 | struct Dummy(Vec); [INFO] [stderr] | ----------------------- function or associated item `use_singleton_with_arg` not found for this [INFO] [stderr] ... [INFO] [stderr] 27 | #[singleton_fn] [INFO] [stderr] | ^^^^^^^^^^^^^^^ function or associated item not found in `Dummy` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `use_singleton_with_arg`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `blockz::singleton::Singleton` [INFO] [stderr] = note: this error originates in the attribute macro `singleton_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] note: If the actual output is the correct output you can bless it by rerunning [INFO] [stderr] your test with the environment variable TRYBUILD=overwrite [INFO] [stderr] [INFO] [stderr] test singleton-f-4.rs [should fail to compile] ... ok [INFO] [stderr] test singleton-f-5.rs [should fail to compile] ... mismatch [INFO] [stderr] [INFO] [stderr] EXPECTED: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error: function receiver must be a reference receiver (&self or &mut self) [INFO] [stderr] --> $DIR/singleton-f-5.rs:12:31 [INFO] [stderr] | [INFO] [stderr] 12 | pub async fn is_vec_empty(self) -> bool { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] error: function receiver must be a reference receiver (&self or &mut self) [INFO] [stderr] --> $DIR/singleton-f-5.rs:17:20 [INFO] [stderr] | [INFO] [stderr] 17 | async fn clear(mut self) { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] error: function receiver must be a reference receiver (&self or &mut self) [INFO] [stderr] --> $DIR/singleton-f-5.rs:22:26 [INFO] [stderr] | [INFO] [stderr] 22 | pub async fn get_set(mut self, get: usize, _: i32) -> Option { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] error: function receiver must be a reference receiver (&self or &mut self) [INFO] [stderr] --> $DIR/singleton-f-5.rs:27:31 [INFO] [stderr] | [INFO] [stderr] 27 | pub async fn check_equals(self, other: Box<[i32]>) -> bool { [INFO] [stderr] | ^^^^ [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] [INFO] [stderr] ACTUAL OUTPUT: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error: function receiver must be a reference receiver (&self or &mut self) [INFO] [stderr] --> $DIR/singleton-f-5.rs:12:31 [INFO] [stderr] | [INFO] [stderr] 12 | pub async fn is_vec_empty(self) -> bool { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] error: function receiver must be a reference receiver (&self or &mut self) [INFO] [stderr] --> $DIR/singleton-f-5.rs:17:20 [INFO] [stderr] | [INFO] [stderr] 17 | async fn clear(mut self) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: function receiver must be a reference receiver (&self or &mut self) [INFO] [stderr] --> $DIR/singleton-f-5.rs:22:26 [INFO] [stderr] | [INFO] [stderr] 22 | pub async fn get_set(mut self, get: usize, _: i32) -> Option { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: function receiver must be a reference receiver (&self or &mut self) [INFO] [stderr] --> $DIR/singleton-f-5.rs:27:31 [INFO] [stderr] | [INFO] [stderr] 27 | pub async fn check_equals(self, other: Box<[i32]>) -> bool { [INFO] [stderr] | ^^^^ [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] note: If the actual output is the correct output you can bless it by rerunning [INFO] [stderr] your test with the environment variable TRYBUILD=overwrite [INFO] [stderr] [INFO] [stderr] test singleton-f-6.rs [should fail to compile] ... mismatch [INFO] [stderr] [INFO] [stderr] EXPECTED: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error: first function argument recv (type: i32) must be a reference receiver (&self or &mut self) [INFO] [stderr] --> $DIR/singleton-f-6.rs:12:31 [INFO] [stderr] | [INFO] [stderr] 12 | pub async fn is_vec_empty(recv: i32) -> bool { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] error: first function argument bad_recv (type: u32) must be a reference receiver (&self or &mut self) [INFO] [stderr] --> $DIR/singleton-f-6.rs:17:20 [INFO] [stderr] | [INFO] [stderr] 17 | async fn clear(bad_recv: u32) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: first function argument fail (type: String) must be a reference receiver (&self or &mut self) [INFO] [stderr] --> $DIR/singleton-f-6.rs:22:26 [INFO] [stderr] | [INFO] [stderr] 22 | pub async fn get_set(fail: String) -> Option { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] error: first function argument another_fail (type: Option < () >) must be a reference receiver (&self or &mut self) [INFO] [stderr] --> $DIR/singleton-f-6.rs:27:31 [INFO] [stderr] | [INFO] [stderr] 27 | pub async fn check_equals(another_fail: Option<()>) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] [INFO] [stderr] ACTUAL OUTPUT: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error: first function argument recv (type: i32) must be a reference receiver (&self or &mut self) [INFO] [stderr] --> $DIR/singleton-f-6.rs:12:31 [INFO] [stderr] | [INFO] [stderr] 12 | pub async fn is_vec_empty(recv: i32) -> bool { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: first function argument bad_recv (type: u32) must be a reference receiver (&self or &mut self) [INFO] [stderr] --> $DIR/singleton-f-6.rs:17:20 [INFO] [stderr] | [INFO] [stderr] 17 | async fn clear(bad_recv: u32) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: first function argument fail (type: String) must be a reference receiver (&self or &mut self) [INFO] [stderr] --> $DIR/singleton-f-6.rs:22:26 [INFO] [stderr] | [INFO] [stderr] 22 | pub async fn get_set(fail: String) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: first function argument another_fail (type: Option < () >) must be a reference receiver (&self or &mut self) [INFO] [stderr] --> $DIR/singleton-f-6.rs:27:31 [INFO] [stderr] | [INFO] [stderr] 27 | pub async fn check_equals(another_fail: Option<()>) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] note: If the actual output is the correct output you can bless it by rerunning [INFO] [stderr] your test with the environment variable TRYBUILD=overwrite [INFO] [stderr] [INFO] [stderr] test singleton-f-7.rs [should fail to compile] ... mismatch [INFO] [stderr] [INFO] [stderr] EXPECTED: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error: function argument must have an identifier [INFO] [stderr] --> $DIR/singleton-f-7.rs:22:49 [INFO] [stderr] | [INFO] [stderr] 22 | pub async fn get_set(&mut self, get: usize, _: i32) -> Option { [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] error: function argument must have an identifier [INFO] [stderr] --> $DIR/singleton-f-7.rs:27:38 [INFO] [stderr] | [INFO] [stderr] 27 | pub async fn check_equals(&self, _: Box<[i32]>) -> bool { [INFO] [stderr] | ^ [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] [INFO] [stderr] ACTUAL OUTPUT: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error: function argument must have an identifier [INFO] [stderr] --> $DIR/singleton-f-7.rs:22:49 [INFO] [stderr] | [INFO] [stderr] 22 | pub async fn get_set(&mut self, get: usize, _: i32) -> Option { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] error: function argument must have an identifier [INFO] [stderr] --> $DIR/singleton-f-7.rs:27:38 [INFO] [stderr] | [INFO] [stderr] 27 | pub async fn check_equals(&self, _: Box<[i32]>) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] note: If the actual output is the correct output you can bless it by rerunning [INFO] [stderr] your test with the environment variable TRYBUILD=overwrite [INFO] [stderr] [INFO] [stderr] test singleton-f-8.rs [should fail to compile] ... mismatch [INFO] [stderr] [INFO] [stderr] EXPECTED: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error: implementation of `SingletonFnMutWithArg` is not general enough [INFO] [stderr] --> $DIR/singleton-f-8.rs:23:5 [INFO] [stderr] | [INFO] [stderr] 23 | #[singleton_fn] [INFO] [stderr] | ^^^^^^^^^^^^^^^ implementation of `SingletonFnMutWithArg` is not general enough [INFO] [stderr] | [INFO] [stderr] ::: $WORKSPACE/src/singleton.rs [INFO] [stderr] | [INFO] [stderr] | / pub trait SingletonFnMutWithArg<'i, I, A, R> [INFO] [stderr] 231 | | where [INFO] [stderr] 232 | | A: Send, [INFO] [stderr] 233 | | R: Send, [INFO] [stderr] ... | [INFO] [stderr] 238 | | fn call_once(self, inner: &'i mut I, arg: A) -> Self::SingletonResult; [INFO] [stderr] 239 | | } [INFO] [stderr] | |_- trait `SingletonFnMutWithArg` defined here [INFO] [stderr] | [INFO] [stderr] = note: `for<'_, '_, '_> fn(&mut Dummy, (&usize, &i32)) -> impl Future {Dummy::blockz_singleton_fn_mut_with_arg_get_set}` must implement `SingletonFnMutWithArg<'0, Dummy, (&usize, &i32), Option>`, for any lifetime `'0`... [INFO] [stderr] = note: ...but `SingletonFnMutWithArg<'_, Dummy, (&usize, &i32), Option>` is actually implemented for the type `for<'_, '_, '_> fn(&mut Dummy, (&usize, &i32)) -> impl Future {Dummy::blockz_singleton_fn_mut_with_arg_get_set}` [INFO] [stderr] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: implementation of `SingletonFnWithArg` is not general enough [INFO] [stderr] --> $DIR/singleton-f-8.rs:28:5 [INFO] [stderr] | [INFO] [stderr] 28 | #[singleton_fn] [INFO] [stderr] | ^^^^^^^^^^^^^^^ implementation of `SingletonFnWithArg` is not general enough [INFO] [stderr] | [INFO] [stderr] ::: $WORKSPACE/src/singleton.rs [INFO] [stderr] | [INFO] [stderr] | / pub trait SingletonFnWithArg<'i, I, A, R> [INFO] [stderr] 159 | | where [INFO] [stderr] 160 | | A: Send, [INFO] [stderr] 161 | | R: Send, [INFO] [stderr] ... | [INFO] [stderr] 166 | | fn call_once(self, inner: &'i I, arg: A) -> Self::SingletonResult; [INFO] [stderr] 167 | | } [INFO] [stderr] | |_- trait `SingletonFnWithArg` defined here [INFO] [stderr] | [INFO] [stderr] = note: `for<'_, '_> fn(&Dummy, &[i32]) -> impl Future {Dummy::blockz_singleton_fn_with_arg_check_equals}` must implement `SingletonFnWithArg<'0, Dummy, &[i32], bool>`, for any lifetime `'0`... [INFO] [stderr] = note: ...but `SingletonFnWithArg<'_, Dummy, &[i32], bool>` is actually implemented for the type `for<'_, '_> fn(&Dummy, &[i32]) -> impl Future {Dummy::blockz_singleton_fn_with_arg_check_equals}` [INFO] [stderr] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] [INFO] [stderr] ACTUAL OUTPUT: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error: implementation of `SingletonFnMutWithArg` is not general enough [INFO] [stderr] --> $DIR/singleton-f-8.rs:23:5 [INFO] [stderr] | [INFO] [stderr] 23 | #[singleton_fn] [INFO] [stderr] | ^^^^^^^^^^^^^^^ implementation of `SingletonFnMutWithArg` is not general enough [INFO] [stderr] | [INFO] [stderr] = note: `for<'_, '_, '_> fn(&mut Dummy, (&usize, &i32)) -> impl Future {Dummy::blockz_singleton_fn_mut_with_arg_get_set}` must implement `SingletonFnMutWithArg<'0, Dummy, (&usize, &i32), Option>`, for any lifetime `'0`... [INFO] [stderr] = note: ...but it actually implements `SingletonFnMutWithArg<'_, Dummy, (&usize, &i32), Option>` [INFO] [stderr] = note: this error originates in the attribute macro `singleton_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: implementation of `SingletonFnWithArg` is not general enough [INFO] [stderr] --> $DIR/singleton-f-8.rs:28:5 [INFO] [stderr] | [INFO] [stderr] 28 | #[singleton_fn] [INFO] [stderr] | ^^^^^^^^^^^^^^^ implementation of `SingletonFnWithArg` is not general enough [INFO] [stderr] | [INFO] [stderr] = note: `for<'_, '_> fn(&Dummy, &[i32]) -> impl Future {Dummy::blockz_singleton_fn_with_arg_check_equals}` must implement `SingletonFnWithArg<'0, Dummy, &[i32], bool>`, for any lifetime `'0`... [INFO] [stderr] = note: ...but it actually implements `SingletonFnWithArg<'_, Dummy, &[i32], bool>` [INFO] [stderr] = note: this error originates in the attribute macro `singleton_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] note: If the actual output is the correct output you can bless it by rerunning [INFO] [stderr] your test with the environment variable TRYBUILD=overwrite [INFO] [stderr] [INFO] [stderr] [INFO] [stderr] [INFO] [stdout] test test::test_singleton ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- test::test_singleton stdout ---- [INFO] [stdout] thread 'test::test_singleton' panicked at '8 of 12 tests failed', /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/trybuild-1.0.42/src/run.rs:73:13 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x563532937d00 - std::backtrace_rs::backtrace::libunwind::trace::h1037ca7e6eeef65c [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x563532937d00 - std::backtrace_rs::backtrace::trace_unsynchronized::haaefac1bc3669450 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x563532937d00 - std::sys_common::backtrace::_print_fmt::h863a6f5e6d995885 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x563532937d00 - ::fmt::h767e17e1aa7df6a8 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x56353295d23c - core::fmt::write::h7aa6cd0067dca82a [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/core/src/fmt/mod.rs:1110:17 [INFO] [stdout] 5: 0x563532934275 - std::io::Write::write_fmt::h6f1a9b91376a1376 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/io/mod.rs:1584:15 [INFO] [stdout] 6: 0x56353293a01b - std::sys_common::backtrace::_print::h2769edb26a7eb606 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x56353293a01b - std::sys_common::backtrace::print::ha71f3549862b4cb6 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x56353293a01b - std::panicking::default_hook::{{closure}}::h95488a3bade217f6 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x563532939b2c - std::panicking::default_hook::h290aa602c0fb11df [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x56353293a6c1 - std::panicking::rust_panic_with_hook::hf32c4fa635e215f2 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panicking.rs:622:17 [INFO] [stdout] 11: 0x56353293a1c7 - std::panicking::begin_panic_handler::{{closure}}::h95197ccd88846f7a [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panicking.rs:519:13 [INFO] [stdout] 12: 0x5635329381dc - std::sys_common::backtrace::__rust_end_short_backtrace::h7641df9566f7b7d0 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x56353293a129 - rust_begin_unwind [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panicking.rs:515:5 [INFO] [stdout] 14: 0x5635326dadfb - std::panicking::begin_panic_fmt::hdc39c0cc0031e534 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panicking.rs:457:5 [INFO] [stdout] 15: 0x563532706832 - trybuild::run::::run::h11f9d4bf505f78be [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/trybuild-1.0.42/src/run.rs:73:13 [INFO] [stdout] 16: 0x56353270b4b2 - ::drop::h4dca7d5cd1c0716a [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/trybuild-1.0.42/src/lib.rs:305:13 [INFO] [stdout] 17: 0x5635326de117 - core::ptr::drop_in_place::hc139d7069615361b [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/core/src/ptr/mod.rs:192:1 [INFO] [stdout] 18: 0x5635326dd184 - blockz::test::test_singleton::hf8e1919df9034908 [INFO] [stdout] at /opt/rustwide/workdir/src/lib.rs:59:5 [INFO] [stdout] 19: 0x5635326dbfda - blockz::test::test_singleton::{{closure}}::h12425bc7c7e4873d [INFO] [stdout] at /opt/rustwide/workdir/src/lib.rs:54:5 [INFO] [stdout] 20: 0x5635326de0be - core::ops::function::FnOnce::call_once::hb2bfa6b8318577b0 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x56353290d3e3 - core::ops::function::FnOnce::call_once::h673fbe3f96486fd2 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x56353290d3e3 - test::__rust_begin_short_backtrace::h8eedc24e104ef6a0 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/test/src/lib.rs:577:5 [INFO] [stdout] 23: 0x56353290be90 - as core::ops::function::FnOnce>::call_once::h028d0969d3f94d78 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/alloc/src/boxed.rs:1575:9 [INFO] [stdout] 24: 0x56353290be90 - as core::ops::function::FnOnce<()>>::call_once::h7634b01590b1722b [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panic.rs:346:9 [INFO] [stdout] 25: 0x56353290be90 - std::panicking::try::do_call::hf74f869706dec63b [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panicking.rs:401:40 [INFO] [stdout] 26: 0x56353290be90 - std::panicking::try::hd0b7346ebfaaae44 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panicking.rs:365:19 [INFO] [stdout] 27: 0x56353290be90 - std::panic::catch_unwind::hdbf6904f7c253080 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panic.rs:433:14 [INFO] [stdout] 28: 0x56353290be90 - test::run_test_in_process::h87e95a014ac91067 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/test/src/lib.rs:600:18 [INFO] [stdout] 29: 0x56353290be90 - test::run_test::run_test_inner::{{closure}}::hdd69ae44aaab3470 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/test/src/lib.rs:492:39 [INFO] [stdout] 30: 0x5635328e7162 - test::run_test::run_test_inner::{{closure}}::hc159305704d5b68a [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/test/src/lib.rs:519:37 [INFO] [stdout] 31: 0x5635328e7162 - std::sys_common::backtrace::__rust_begin_short_backtrace::h33d8a8ad5f788fcc [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 32: 0x5635328eaed8 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h6181011ddf4b8353 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/thread/mod.rs:481:17 [INFO] [stdout] 33: 0x5635328eaed8 - as core::ops::function::FnOnce<()>>::call_once::hf924ea0a0f25a1c0 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panic.rs:346:9 [INFO] [stdout] 34: 0x5635328eaed8 - std::panicking::try::do_call::hd58061792d05fa5c [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panicking.rs:401:40 [INFO] [stdout] 35: 0x5635328eaed8 - std::panicking::try::h3080747417e5af37 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panicking.rs:365:19 [INFO] [stdout] 36: 0x5635328eaed8 - std::panic::catch_unwind::hfeba515dcf36cb66 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panic.rs:433:14 [INFO] [stdout] 37: 0x5635328eaed8 - std::thread::Builder::spawn_unchecked::{{closure}}::h29d57a62faff749b [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/thread/mod.rs:480:30 [INFO] [stdout] 38: 0x5635328eaed8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h44709d312d2a9c59 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x563532940677 - as core::ops::function::FnOnce>::call_once::h902e2cf6655e1b0c [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/alloc/src/boxed.rs:1575:9 [INFO] [stdout] 40: 0x563532940677 - as core::ops::function::FnOnce>::call_once::h893a5452154309d1 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/alloc/src/boxed.rs:1575:9 [INFO] [stdout] 41: 0x563532940677 - std::sys::unix::thread::Thread::new::thread_start::hdedcb57c96ab37cd [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/sys/unix/thread.rs:71:17 [INFO] [stdout] 42: 0x7f3f89f23609 - start_thread [INFO] [stdout] 43: 0x7f3f89cf5293 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] test::test_singleton [INFO] [stdout] [INFO] [stdout] test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 47.51s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--lib' [INFO] running `Command { std: "docker" "inspect" "e7abd52d2926489f42b605b0c2bc2beeafa5a864b41be428daa3dc9e88ee8ce3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e7abd52d2926489f42b605b0c2bc2beeafa5a864b41be428daa3dc9e88ee8ce3", kill_on_drop: false }` [INFO] [stdout] e7abd52d2926489f42b605b0c2bc2beeafa5a864b41be428daa3dc9e88ee8ce3