[INFO] fetching crate union-fn-macro 0.2.0... [INFO] testing union-fn-macro-0.2.0 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-2 [INFO] extracting crate union-fn-macro 0.2.0 into /workspace/builds/worker-0-tc1/source [INFO] started tweaking crates.io crate union-fn-macro 0.2.0 [INFO] finished tweaking crates.io crate union-fn-macro 0.2.0 [INFO] tweaked toml for crates.io crate union-fn-macro 0.2.0 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate union-fn-macro 0.2.0 on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 5 packages to latest compatible versions [INFO] [stderr] Adding heck v0.4.1 (available: v0.5.0) [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.117) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1d3cf1a6ad52878a6a1d2df27cb3861ff43b809a4ca650ae794fd4678e7569d8 [INFO] running `Command { std: "docker" "start" "-a" "1d3cf1a6ad52878a6a1d2df27cb3861ff43b809a4ca650ae794fd4678e7569d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1d3cf1a6ad52878a6a1d2df27cb3861ff43b809a4ca650ae794fd4678e7569d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1d3cf1a6ad52878a6a1d2df27cb3861ff43b809a4ca650ae794fd4678e7569d8", kill_on_drop: false }` [INFO] [stdout] 1d3cf1a6ad52878a6a1d2df27cb3861ff43b809a4ca650ae794fd4678e7569d8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] eed8c1f87d5856f3bfbda20df5b3ad183cbc9199cd93ddba1f66174f565bed9c [INFO] running `Command { std: "docker" "start" "-a" "eed8c1f87d5856f3bfbda20df5b3ad183cbc9199cd93ddba1f66174f565bed9c", kill_on_drop: false }` [INFO] [stderr] Compiling union-fn-macro v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: methods `filter_docs` and `get_docs` are never used [INFO] [stdout] --> src/utils.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait AttributeExt { [INFO] [stdout] | ------------ methods in this trait [INFO] [stdout] ... [INFO] [stdout] 12 | fn filter_docs(&self) -> Option<&syn::Attribute>; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | fn get_docs(&self) -> Option; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:378:20 [INFO] [stdout] | [INFO] [stdout] 378 | pub fn methods(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 378 | pub fn methods(&self) -> impl Iterator> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.45s [INFO] running `Command { std: "docker" "inspect" "eed8c1f87d5856f3bfbda20df5b3ad183cbc9199cd93ddba1f66174f565bed9c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eed8c1f87d5856f3bfbda20df5b3ad183cbc9199cd93ddba1f66174f565bed9c", kill_on_drop: false }` [INFO] [stdout] eed8c1f87d5856f3bfbda20df5b3ad183cbc9199cd93ddba1f66174f565bed9c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f643cf6841aa8e1f5eec5d533164c0eabfac64adaf1751979728137d32b47c9b [INFO] running `Command { std: "docker" "start" "-a" "f643cf6841aa8e1f5eec5d533164c0eabfac64adaf1751979728137d32b47c9b", kill_on_drop: false }` [INFO] [stderr] Compiling union-fn-macro v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: methods `filter_docs` and `get_docs` are never used [INFO] [stdout] --> src/utils.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait AttributeExt { [INFO] [stdout] | ------------ methods in this trait [INFO] [stdout] ... [INFO] [stdout] 12 | fn filter_docs(&self) -> Option<&syn::Attribute>; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | fn get_docs(&self) -> Option; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:378:20 [INFO] [stdout] | [INFO] [stdout] 378 | pub fn methods(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 378 | pub fn methods(&self) -> impl Iterator> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `filter_docs` and `get_docs` are never used [INFO] [stdout] --> src/utils.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait AttributeExt { [INFO] [stdout] | ------------ methods in this trait [INFO] [stdout] ... [INFO] [stdout] 12 | fn filter_docs(&self) -> Option<&syn::Attribute>; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | fn get_docs(&self) -> Option; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:378:20 [INFO] [stdout] | [INFO] [stdout] 378 | pub fn methods(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 378 | pub fn methods(&self) -> impl Iterator> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.24s [INFO] running `Command { std: "docker" "inspect" "f643cf6841aa8e1f5eec5d533164c0eabfac64adaf1751979728137d32b47c9b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f643cf6841aa8e1f5eec5d533164c0eabfac64adaf1751979728137d32b47c9b", kill_on_drop: false }` [INFO] [stdout] f643cf6841aa8e1f5eec5d533164c0eabfac64adaf1751979728137d32b47c9b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 6659fe44d53b91eaab994190d4c5d91539d7e9bfa7b5570a27a8e0165d604b84 [INFO] running `Command { std: "docker" "start" "-a" "6659fe44d53b91eaab994190d4c5d91539d7e9bfa7b5570a27a8e0165d604b84", kill_on_drop: false }` [INFO] [stderr] warning: methods `filter_docs` and `get_docs` are never used [INFO] [stdout] [INFO] [stderr] --> src/utils.rs:12:8 [INFO] [stdout] running 0 tests [INFO] [stderr] | [INFO] [stdout] [INFO] [stderr] 7 | pub trait AttributeExt { [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stderr] | ------------ methods in this trait [INFO] [stdout] [INFO] [stderr] ... [INFO] [stderr] 12 | fn filter_docs(&self) -> Option<&syn::Attribute>; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 17 | fn get_docs(&self) -> Option; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/lib.rs:378:20 [INFO] [stderr] | [INFO] [stderr] 378 | pub fn methods(&self) -> impl Iterator { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 378 | pub fn methods(&self) -> impl Iterator> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `union-fn-macro` (lib) generated 2 warnings (run `cargo fix --lib -p union-fn-macro` to apply 1 suggestion) [INFO] [stderr] warning: `union-fn-macro` (lib test) generated 2 warnings (2 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/union_fn_macro-0b22f10cec502975) [INFO] [stderr] Doc-tests union_fn_macro [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/lib.rs - union_fn (line 66) ... FAILED [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] test src/lib.rs - union_fn (line 120) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - union_fn (line 66) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `union_fn` [INFO] [stdout] --> src/lib.rs:67:7 [INFO] [stdout] | [INFO] [stdout] 67 | use ::union_fn::{union_fn, CallWithContext as _, IntoOpt as _}; [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0658]: associated type defaults are unstable [INFO] [stdout] --> src/lib.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | type Context = i64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #29661 for more information [INFO] [stdout] = help: add `#![feature(associated_type_defaults)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2026-03-21; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] error[E0368]: binary assignment operation `+=` cannot be applied to type `::Context` [INFO] [stdout] --> src/lib.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | *value += by; [INFO] [stdout] | ------^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | cannot use `+=` on type `::Context` [INFO] [stdout] | [INFO] [stdout] help: consider further restricting the associated type [INFO] [stdout] | [INFO] [stdout] 74 | fn bump_by(value: &mut Self::Context, by: i64) where ::Context: AddAssign { [INFO] [stdout] | ++++++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:80:18 [INFO] [stdout] | [INFO] [stdout] 71 | type Context = i64; [INFO] [stdout] | ------------ associated type defaults can't be assumed inside the trait defining them [INFO] [stdout] ... [INFO] [stdout] 80 | *value = choices.get(*value as usize).copied().unwrap_or(0) [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected associated type, found `i64` [INFO] [stdout] | | [INFO] [stdout] | expected due to the type of this binding [INFO] [stdout] | [INFO] [stdout] = note: expected associated type `::Context` [INFO] [stdout] found type `i64` [INFO] [stdout] [INFO] [stdout] error[E0605]: non-primitive cast: `::Context` as `usize` [INFO] [stdout] --> src/lib.rs:80:30 [INFO] [stdout] | [INFO] [stdout] 80 | *value = choices.get(*value as usize).copied().unwrap_or(0) [INFO] [stdout] | ^^^^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object [INFO] [stdout] [INFO] [stdout] error[E0368]: binary assignment operation `/=` cannot be applied to type `::Context` [INFO] [stdout] --> src/lib.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | *value /= 2; [INFO] [stdout] | ------^^^^^ [INFO] [stdout] | | [INFO] [stdout] | cannot use `/=` on type `::Context` [INFO] [stdout] | [INFO] [stdout] help: consider further restricting the associated type [INFO] [stdout] | [INFO] [stdout] 84 | fn div2(value: &mut Self::Context) where ::Context: DivAssign { [INFO] [stdout] | ++++++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:90:18 [INFO] [stdout] | [INFO] [stdout] 71 | type Context = i64; [INFO] [stdout] | ------------ associated type defaults can't be assumed inside the trait defining them [INFO] [stdout] ... [INFO] [stdout] 90 | *value = 0; [INFO] [stdout] | ------ ^ expected associated type, found integer [INFO] [stdout] | | [INFO] [stdout] | expected due to the type of this binding [INFO] [stdout] | [INFO] [stdout] = note: expected associated type `::Context` [INFO] [stdout] found type `{integer}` [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/lib.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 97 | Counter::bump_by(1).call(&mut value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ - argument #1 of type `&mut _` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/lib.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | fn bump_by(value: &mut Self::Context, by: i64) { [INFO] [stdout] | ^^^^^^^ ------------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 97 | Counter::bump_by(/* value */, 1).call(&mut value); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `call` found for unit type `()` in the current scope [INFO] [stdout] --> src/lib.rs:97:25 [INFO] [stdout] | [INFO] [stdout] 97 | Counter::bump_by(1).call(&mut value); [INFO] [stdout] | ^^^^ method not found in `()` [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/lib.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | Counter::bump_by(41).call(&mut value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ -- argument #1 of type `&mut _` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/lib.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | fn bump_by(value: &mut Self::Context, by: i64) { [INFO] [stdout] | ^^^^^^^ ------------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 100 | Counter::bump_by(/* value */, 41).call(&mut value); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `call` found for unit type `()` in the current scope [INFO] [stdout] --> src/lib.rs:100:26 [INFO] [stdout] | [INFO] [stdout] 100 | Counter::bump_by(41).call(&mut value); [INFO] [stdout] | ^^^^ method not found in `()` [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/lib.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 103 | Counter::div2().call(&mut value); [INFO] [stdout] | ^^^^^^^^^^^^^-- argument #1 of type `&mut _` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/lib.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | fn div2(value: &mut Self::Context) { [INFO] [stdout] | ^^^^ ------------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 103 | Counter::div2(/* value */).call(&mut value); [INFO] [stdout] | +++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `call` found for unit type `()` in the current scope [INFO] [stdout] --> src/lib.rs:103:21 [INFO] [stdout] | [INFO] [stdout] 103 | Counter::div2().call(&mut value); [INFO] [stdout] | ^^^^ method not found in `()` [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/lib.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | Counter::reset().call(&mut value); [INFO] [stdout] | ^^^^^^^^^^^^^^-- argument #1 of type `&mut _` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/lib.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | fn reset(value: &mut Self::Context) { [INFO] [stdout] | ^^^^^ ------------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 106 | Counter::reset(/* value */).call(&mut value); [INFO] [stdout] | +++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `call` found for unit type `()` in the current scope [INFO] [stdout] --> src/lib.rs:106:22 [INFO] [stdout] | [INFO] [stdout] 106 | Counter::reset().call(&mut value); [INFO] [stdout] | ^^^^ method not found in `()` [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/lib.rs:110:15 [INFO] [stdout] | [INFO] [stdout] 110 | let opt = Counter::select(choices).into_opt(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ ------- argument #1 of type `&mut _` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/lib.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | fn select(value: &mut Self::Context, choices: [i64; 4]) { [INFO] [stdout] | ^^^^^^ ------------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 110 | let opt = Counter::select(/* value */, choices).into_opt(); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_opt` found for unit type `()` in the current scope [INFO] [stdout] --> src/lib.rs:110:40 [INFO] [stdout] | [INFO] [stdout] 110 | let opt = Counter::select(choices).into_opt(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `into` with a similar name [INFO] [stdout] | [INFO] [stdout] 110 - let opt = Counter::select(choices).into_opt(); [INFO] [stdout] 110 + let opt = Counter::select(choices).into(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 17 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0368, E0432, E0599, E0605, E0658. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - union_fn (line 120) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `union_fn` [INFO] [stdout] --> src/lib.rs:121:7 [INFO] [stdout] | [INFO] [stdout] 121 | use ::union_fn::{union_fn, CallWithContext as _, IntoOpt as _}; [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:150:8 [INFO] [stdout] | [INFO] [stdout] 150 | impl ::union_fn::CallWithContext for Counter { [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:156:24 [INFO] [stdout] | [INFO] [stdout] 156 | ) -> ::Output { [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:159:28 [INFO] [stdout] | [INFO] [stdout] 159 | ::Impls::bump_by(ctx, by) [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:162:28 [INFO] [stdout] | [INFO] [stdout] 162 | ::Impls::select(ctx, choices) [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:165:28 [INFO] [stdout] | [INFO] [stdout] 165 | ::Impls::reset(ctx,) [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:176:37 [INFO] [stdout] | [INFO] [stdout] 176 | ctx: &mut ::Context, [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:177:28 [INFO] [stdout] | [INFO] [stdout] 177 | &::Args, [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:178:28 [INFO] [stdout] | [INFO] [stdout] 178 | ) -> ::Output, [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:179:29 [INFO] [stdout] | [INFO] [stdout] 179 | args: ::Args, [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:182:12 [INFO] [stdout] | [INFO] [stdout] 182 | impl ::union_fn::IntoOpt for Counter { [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:189:51 [INFO] [stdout] | [INFO] [stdout] 189 | Self::BumpBy { by } => ::Opt::bump_by(by), [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:191:32 [INFO] [stdout] | [INFO] [stdout] 191 | ::Opt::select(choices) [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:193:46 [INFO] [stdout] | [INFO] [stdout] 193 | Self::Reset {} => ::Opt::reset(), [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:198:12 [INFO] [stdout] | [INFO] [stdout] 198 | impl ::union_fn::CallWithContext for CounterOpt { [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:204:28 [INFO] [stdout] | [INFO] [stdout] 204 | ) -> ::Output { [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:213:40 [INFO] [stdout] | [INFO] [stdout] 213 | handler: ::Delegator::bump_by, [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:214:37 [INFO] [stdout] | [INFO] [stdout] 214 | args: ::Args::bump_by(by), [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:221:40 [INFO] [stdout] | [INFO] [stdout] 221 | handler: ::Delegator::select, [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:222:37 [INFO] [stdout] | [INFO] [stdout] 222 | args: ::Args::select(choices), [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:229:40 [INFO] [stdout] | [INFO] [stdout] 229 | handler: ::Delegator::reset, [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:230:37 [INFO] [stdout] | [INFO] [stdout] 230 | args: ::Args::reset(), [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:263:12 [INFO] [stdout] | [INFO] [stdout] 263 | impl ::union_fn::UnionFn for CounterOpt { [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:268:12 [INFO] [stdout] | [INFO] [stdout] 268 | impl ::union_fn::UnionFn for Counter { [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:279:39 [INFO] [stdout] | [INFO] [stdout] 279 | value: &mut ::Context, [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:280:34 [INFO] [stdout] | [INFO] [stdout] 280 | args: &::Args, [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:281:28 [INFO] [stdout] | [INFO] [stdout] 281 | ) -> ::Output { [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:283:27 [INFO] [stdout] | [INFO] [stdout] 283 | ::Impls::bump_by(value, by) [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:288:39 [INFO] [stdout] | [INFO] [stdout] 288 | value: &mut ::Context, [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:289:34 [INFO] [stdout] | [INFO] [stdout] 289 | args: &::Args, [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:290:28 [INFO] [stdout] | [INFO] [stdout] 290 | ) -> ::Output { [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:292:27 [INFO] [stdout] | [INFO] [stdout] 292 | ::Impls::select(value, choices) [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:297:39 [INFO] [stdout] | [INFO] [stdout] 297 | value: &mut ::Context, [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:298:34 [INFO] [stdout] | [INFO] [stdout] 298 | args: &::Args, [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:299:28 [INFO] [stdout] | [INFO] [stdout] 299 | ) -> ::Output { [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:301:27 [INFO] [stdout] | [INFO] [stdout] 301 | ::Impls::reset(value) [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:311:39 [INFO] [stdout] | [INFO] [stdout] 311 | value: &mut ::Context, [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:313:28 [INFO] [stdout] | [INFO] [stdout] 313 | ) -> ::Output { [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:319:39 [INFO] [stdout] | [INFO] [stdout] 319 | value: &mut ::Context, [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:321:28 [INFO] [stdout] | [INFO] [stdout] 321 | ) -> ::Output { [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:327:39 [INFO] [stdout] | [INFO] [stdout] 327 | value: &mut ::Context, [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `union_fn` in the crate root [INFO] [stdout] --> src/lib.rs:328:28 [INFO] [stdout] | [INFO] [stdout] 328 | ) -> ::Output { [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error: aborting due to 42 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - union_fn (line 120) [INFO] [stdout] src/lib.rs - union_fn (line 66) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.55s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "6659fe44d53b91eaab994190d4c5d91539d7e9bfa7b5570a27a8e0165d604b84", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6659fe44d53b91eaab994190d4c5d91539d7e9bfa7b5570a27a8e0165d604b84", kill_on_drop: false }` [INFO] [stdout] 6659fe44d53b91eaab994190d4c5d91539d7e9bfa7b5570a27a8e0165d604b84