[INFO] fetching crate union-fn-macro 0.2.0... [INFO] testing union-fn-macro-0.2.0 against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [INFO] extracting crate union-fn-macro 0.2.0 into /workspace/builds/worker-2-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-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate union-fn-macro 0.2.0 on toolchain caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "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" "+caccb4d0368bd918ef6668af8e13834d07040417" "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.106) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bfb94418103fa6c92c63146f6e25f8576beadb33d0280a2d0f3bd6d0e6bd56be [INFO] running `Command { std: "docker" "start" "-a" "bfb94418103fa6c92c63146f6e25f8576beadb33d0280a2d0f3bd6d0e6bd56be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bfb94418103fa6c92c63146f6e25f8576beadb33d0280a2d0f3bd6d0e6bd56be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bfb94418103fa6c92c63146f6e25f8576beadb33d0280a2d0f3bd6d0e6bd56be", kill_on_drop: false }` [INFO] [stdout] bfb94418103fa6c92c63146f6e25f8576beadb33d0280a2d0f3bd6d0e6bd56be [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 668adcb470af375fbb887ed6ba7c4a5228d5fcca61e96762c538c30ee675131c [INFO] running `Command { std: "docker" "start" "-a" "668adcb470af375fbb887ed6ba7c4a5228d5fcca61e96762c538c30ee675131c", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling heck v0.4.1 [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 6.68s [INFO] running `Command { std: "docker" "inspect" "668adcb470af375fbb887ed6ba7c4a5228d5fcca61e96762c538c30ee675131c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "668adcb470af375fbb887ed6ba7c4a5228d5fcca61e96762c538c30ee675131c", kill_on_drop: false }` [INFO] [stdout] 668adcb470af375fbb887ed6ba7c4a5228d5fcca61e96762c538c30ee675131c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] eaa73625ec76b282677032c189080f1181aaf04d0e2fd0f054dbcac0e3db0c22 [INFO] running `Command { std: "docker" "start" "-a" "eaa73625ec76b282677032c189080f1181aaf04d0e2fd0f054dbcac0e3db0c22", 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 0.93s [INFO] running `Command { std: "docker" "inspect" "eaa73625ec76b282677032c189080f1181aaf04d0e2fd0f054dbcac0e3db0c22", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eaa73625ec76b282677032c189080f1181aaf04d0e2fd0f054dbcac0e3db0c22", kill_on_drop: false }` [INFO] [stdout] eaa73625ec76b282677032c189080f1181aaf04d0e2fd0f054dbcac0e3db0c22 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 599323c4245835cc483fea2498ed2d52718c8d971cf56c3e7cb6dc78a639c8c1 [INFO] running `Command { std: "docker" "start" "-a" "599323c4245835cc483fea2498ed2d52718c8d971cf56c3e7cb6dc78a639c8c1", kill_on_drop: false }` [INFO] [stderr] warning: methods `filter_docs` and `get_docs` are never used [INFO] [stderr] --> src/utils.rs:12:8 [INFO] [stderr] | [INFO] [stderr] 7 | pub trait AttributeExt { [INFO] [stderr] | ------------ methods in this trait [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.08s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/union_fn_macro-2c3ca4783f4e0379) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [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] [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] 2 | 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] 6 | 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 2025-09-24; 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] 10 | *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] 9 | 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] 6 | type Context = i64; [INFO] [stdout] | ------------ associated type defaults can't be assumed inside the trait defining them [INFO] [stdout] ... [INFO] [stdout] 15 | *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] 15 | *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] 20 | *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] 19 | 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] 6 | type Context = i64; [INFO] [stdout] | ------------ associated type defaults can't be assumed inside the trait defining them [INFO] [stdout] ... [INFO] [stdout] 25 | *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] 32 | 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] 9 | fn bump_by(value: &mut Self::Context, by: i64) { [INFO] [stdout] | ^^^^^^^ ------------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 32 | 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] 32 | 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] 35 | 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] 9 | fn bump_by(value: &mut Self::Context, by: i64) { [INFO] [stdout] | ^^^^^^^ ------------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 35 | 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] 35 | 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] 38 | 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] 19 | fn div2(value: &mut Self::Context) { [INFO] [stdout] | ^^^^ ------------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 38 | 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] 38 | 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] 41 | 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] 24 | fn reset(value: &mut Self::Context) { [INFO] [stdout] | ^^^^^ ------------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 41 | 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] 41 | 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] 45 | 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] 14 | fn select(value: &mut Self::Context, choices: [i64; 4]) { [INFO] [stdout] | ^^^^^^ ------------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 45 | 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] 45 | 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] 45 - let opt = Counter::select(choices).into_opt(); [INFO] [stdout] 45 + 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] 3 | 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]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:150:8 [INFO] [stdout] | [INFO] [stdout] 32 | 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]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:156:24 [INFO] [stdout] | [INFO] [stdout] 38 | ) -> ::Output { [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:159:28 [INFO] [stdout] | [INFO] [stdout] 41 | ::Impls::bump_by(ctx, by) [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:162:28 [INFO] [stdout] | [INFO] [stdout] 44 | ::Impls::select(ctx, choices) [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:165:28 [INFO] [stdout] | [INFO] [stdout] 47 | ::Impls::reset(ctx,) [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:176:37 [INFO] [stdout] | [INFO] [stdout] 58 | ctx: &mut ::Context, [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:177:28 [INFO] [stdout] | [INFO] [stdout] 59 | &::Args, [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:178:28 [INFO] [stdout] | [INFO] [stdout] 60 | ) -> ::Output, [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:179:29 [INFO] [stdout] | [INFO] [stdout] 61 | args: ::Args, [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:182:12 [INFO] [stdout] | [INFO] [stdout] 64 | 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]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:189:51 [INFO] [stdout] | [INFO] [stdout] 71 | 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]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:191:32 [INFO] [stdout] | [INFO] [stdout] 73 | ::Opt::select(choices) [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:193:46 [INFO] [stdout] | [INFO] [stdout] 75 | Self::Reset {} => ::Opt::reset(), [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:198:12 [INFO] [stdout] | [INFO] [stdout] 80 | 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]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:204:28 [INFO] [stdout] | [INFO] [stdout] 86 | ) -> ::Output { [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:213:40 [INFO] [stdout] | [INFO] [stdout] 95 | handler: ::Delegator::bump_by, [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:214:37 [INFO] [stdout] | [INFO] [stdout] 96 | args: ::Args::bump_by(by), [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:221:40 [INFO] [stdout] | [INFO] [stdout] 103 | handler: ::Delegator::select, [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:222:37 [INFO] [stdout] | [INFO] [stdout] 104 | args: ::Args::select(choices), [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:229:40 [INFO] [stdout] | [INFO] [stdout] 111 | handler: ::Delegator::reset, [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:230:37 [INFO] [stdout] | [INFO] [stdout] 112 | args: ::Args::reset(), [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:263:12 [INFO] [stdout] | [INFO] [stdout] 145 | 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]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:268:12 [INFO] [stdout] | [INFO] [stdout] 150 | 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]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:279:39 [INFO] [stdout] | [INFO] [stdout] 161 | value: &mut ::Context, [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:280:34 [INFO] [stdout] | [INFO] [stdout] 162 | args: &::Args, [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:281:28 [INFO] [stdout] | [INFO] [stdout] 163 | ) -> ::Output { [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:283:27 [INFO] [stdout] | [INFO] [stdout] 165 | ::Impls::bump_by(value, by) [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:288:39 [INFO] [stdout] | [INFO] [stdout] 170 | value: &mut ::Context, [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:289:34 [INFO] [stdout] | [INFO] [stdout] 171 | args: &::Args, [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:290:28 [INFO] [stdout] | [INFO] [stdout] 172 | ) -> ::Output { [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:292:27 [INFO] [stdout] | [INFO] [stdout] 174 | ::Impls::select(value, choices) [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:297:39 [INFO] [stdout] | [INFO] [stdout] 179 | value: &mut ::Context, [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:298:34 [INFO] [stdout] | [INFO] [stdout] 180 | args: &::Args, [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:299:28 [INFO] [stdout] | [INFO] [stdout] 181 | ) -> ::Output { [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:301:27 [INFO] [stdout] | [INFO] [stdout] 183 | ::Impls::reset(value) [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:311:39 [INFO] [stdout] | [INFO] [stdout] 193 | value: &mut ::Context, [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:313:28 [INFO] [stdout] | [INFO] [stdout] 195 | ) -> ::Output { [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:319:39 [INFO] [stdout] | [INFO] [stdout] 201 | value: &mut ::Context, [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:321:28 [INFO] [stdout] | [INFO] [stdout] 203 | ) -> ::Output { [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:327:39 [INFO] [stdout] | [INFO] [stdout] 209 | value: &mut ::Context, [INFO] [stdout] | ^^^^^^^^ could not find `union_fn` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `union_fn` in the list of imported crates [INFO] [stdout] --> src/lib.rs:328:28 [INFO] [stdout] | [INFO] [stdout] 210 | ) -> ::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.35s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "599323c4245835cc483fea2498ed2d52718c8d971cf56c3e7cb6dc78a639c8c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "599323c4245835cc483fea2498ed2d52718c8d971cf56c3e7cb6dc78a639c8c1", kill_on_drop: false }` [INFO] [stdout] 599323c4245835cc483fea2498ed2d52718c8d971cf56c3e7cb6dc78a639c8c1