[INFO] fetching crate union-fn-macro 0.2.0...
[INFO] testing union-fn-macro-0.2.0 against master#1871252fc8bb672d40787e67404e6eaae7059369 for pr-125151
[INFO] extracting crate union-fn-macro 0.2.0 into /workspace/builds/worker-3-tc1/source
[INFO] validating manifest of crates.io crate union-fn-macro 0.2.0 on toolchain 1871252fc8bb672d40787e67404e6eaae7059369
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[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-3-tc1/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]      Locking 6 packages to latest compatible versions
[INFO] [stderr]       Adding heck v0.4.1 (latest: v0.5.0)
[INFO] [stderr]       Adding syn v1.0.109 (latest: v2.0.66)
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 2524fc084556efed5f90e95f57943ef2cf879e37f3c787cf558c8433f4a3d579
[INFO] running `Command { std: "docker" "start" "-a" "2524fc084556efed5f90e95f57943ef2cf879e37f3c787cf558c8433f4a3d579", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "2524fc084556efed5f90e95f57943ef2cf879e37f3c787cf558c8433f4a3d579", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2524fc084556efed5f90e95f57943ef2cf879e37f3c787cf558c8433f4a3d579", kill_on_drop: false }`
[INFO] [stdout] 2524fc084556efed5f90e95f57943ef2cf879e37f3c787cf558c8433f4a3d579
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 96064f8abbcfd14d1f2b76f98a970ff7f2a444abcdcb3c8730d5261dcd75f6fe
[INFO] running `Command { std: "docker" "start" "-a" "96064f8abbcfd14d1f2b76f98a970ff7f2a444abcdcb3c8730d5261dcd75f6fe", kill_on_drop: false }`
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling union-fn-macro v0.2.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: method `get_docs` is never used
[INFO] [stdout]   --> src/utils.rs:17:8
[INFO] [stdout]    |
[INFO] [stdout] 7  | pub trait AttributeExt {
[INFO] [stdout]    |           ------------ method in this trait
[INFO] [stdout] ...
[INFO] [stdout] 17 |     fn get_docs(&self) -> Option<syn::LitStr>;
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.35s
[INFO] running `Command { std: "docker" "inspect" "96064f8abbcfd14d1f2b76f98a970ff7f2a444abcdcb3c8730d5261dcd75f6fe", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "96064f8abbcfd14d1f2b76f98a970ff7f2a444abcdcb3c8730d5261dcd75f6fe", kill_on_drop: false }`
[INFO] [stdout] 96064f8abbcfd14d1f2b76f98a970ff7f2a444abcdcb3c8730d5261dcd75f6fe
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 72c02cc504d06dbf35b88e4798d2ee956e5453e7f5e3b4dee425b74b7c3ae74b
[INFO] running `Command { std: "docker" "start" "-a" "72c02cc504d06dbf35b88e4798d2ee956e5453e7f5e3b4dee425b74b7c3ae74b", kill_on_drop: false }`
[INFO] [stderr]    Compiling union-fn-macro v0.2.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: method `get_docs` is never used
[INFO] [stdout]   --> src/utils.rs:17:8
[INFO] [stdout]    |
[INFO] [stdout] 7  | pub trait AttributeExt {
[INFO] [stdout]    |           ------------ method in this trait
[INFO] [stdout] ...
[INFO] [stdout] 17 |     fn get_docs(&self) -> Option<syn::LitStr>;
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_docs` is never used
[INFO] [stdout]   --> src/utils.rs:17:8
[INFO] [stdout]    |
[INFO] [stdout] 7  | pub trait AttributeExt {
[INFO] [stdout]    |           ------------ method in this trait
[INFO] [stdout] ...
[INFO] [stdout] 17 |     fn get_docs(&self) -> Option<syn::LitStr>;
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.68s
[INFO] running `Command { std: "docker" "inspect" "72c02cc504d06dbf35b88e4798d2ee956e5453e7f5e3b4dee425b74b7c3ae74b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "72c02cc504d06dbf35b88e4798d2ee956e5453e7f5e3b4dee425b74b7c3ae74b", kill_on_drop: false }`
[INFO] [stdout] 72c02cc504d06dbf35b88e4798d2ee956e5453e7f5e3b4dee425b74b7c3ae74b
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] d73f45da0c2b5bf0959289fc41db0803def2b927629604aa199b053312f7c200
[INFO] running `Command { std: "docker" "start" "-a" "d73f45da0c2b5bf0959289fc41db0803def2b927629604aa199b053312f7c200", kill_on_drop: false }`
[INFO] [stderr] warning: method `get_docs` is never used
[INFO] [stderr]   --> src/utils.rs:17:8
[INFO] [stderr]    |
[INFO] [stderr] 7  | pub trait AttributeExt {
[INFO] [stderr]    |           ------------ method in this trait
[INFO] [stderr] ...
[INFO] [stderr] 17 |     fn get_docs(&self) -> Option<syn::LitStr>;
[INFO] [stderr]    |        ^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `union-fn-macro` (lib) generated 1 warning
[INFO] [stderr] warning: `union-fn-macro` (lib test) generated 1 warning (1 duplicate)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.01s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/union_fn_macro-dd56d8553933786b)
[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 <https://github.com/rust-lang/rust/issues/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 2024-05-15; consider upgrading it if it is out of date
[INFO] [stdout] 
[INFO] [stdout] error[E0368]: binary assignment operation `+=` cannot be applied to type `<Self as Counter>::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 `<Self as Counter>::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 <Self as Counter>::Context: AddAssign<i64> {
[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 `<Self as Counter>::Context`
[INFO] [stdout]                          found type `i64`
[INFO] [stdout] 
[INFO] [stdout] error[E0605]: non-primitive cast: `<Self as Counter>::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 `<Self as Counter>::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 `<Self as Counter>::Context`
[INFO] [stdout]    |
[INFO] [stdout] help: consider further restricting the associated type
[INFO] [stdout]    |
[INFO] [stdout] 19 |     fn div2(value: &mut Self::Context) where <Self as Counter>::Context: DivAssign<i32> {
[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 `<Self as Counter>::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]    |     ^^^^^^^^^^^^^^^^ - an argument 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]    |     ^^^^^^^^^^^^^^^^ -- an argument 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]    |     ^^^^^^^^^^^^^-- an argument 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]    |     ^^^^^^^^^^^^^^-- an argument 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]    |               ^^^^^^^^^^^^^^^ ------- an argument 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();
[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 |     ) -> <Counter as ::union_fn::UnionFn>::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 |                 <Self as ::union_fn::IntoOpt>::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 |                 <Self as ::union_fn::IntoOpt>::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 |                 <Self as ::union_fn::IntoOpt>::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 <Counter as ::union_fn::CallWithContext>::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 |             &<Counter as ::union_fn::UnionFn>::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 |         ) -> <Counter as ::union_fn::UnionFn>::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: <Counter as ::union_fn::UnionFn>::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 } => <Self as ::union_fn::IntoOpt>::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 |                     <Self as ::union_fn::IntoOpt>::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 {} => <Self as ::union_fn::IntoOpt>::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 |         ) -> <Counter as ::union_fn::UnionFn>::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: <Counter as ::union_fn::IntoOpt>::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: <Counter as ::union_fn::UnionFn>::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: <Counter as ::union_fn::IntoOpt>::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: <Counter as ::union_fn::UnionFn>::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: <Counter as ::union_fn::IntoOpt>::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: <Counter as ::union_fn::UnionFn>::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 <Counter as ::union_fn::CallWithContext>::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: &<Counter as ::union_fn::UnionFn>::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 |         ) -> <Counter as ::union_fn::UnionFn>::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 |             <Counter as ::union_fn::IntoOpt>::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 <Counter as ::union_fn::CallWithContext>::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: &<Counter as ::union_fn::UnionFn>::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 |         ) -> <Counter as ::union_fn::UnionFn>::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 |             <Counter as ::union_fn::IntoOpt>::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 <Counter as ::union_fn::CallWithContext>::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: &<Counter as ::union_fn::UnionFn>::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 |         ) -> <Counter as ::union_fn::UnionFn>::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 |             <Counter as ::union_fn::IntoOpt>::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 <Counter as ::union_fn::CallWithContext>::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 |         ) -> <Counter as ::union_fn::UnionFn>::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 <Counter as ::union_fn::CallWithContext>::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 |         ) -> <Counter as ::union_fn::UnionFn>::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 <Counter as ::union_fn::CallWithContext>::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 |         ) -> <Counter as ::union_fn::UnionFn>::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.17s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "d73f45da0c2b5bf0959289fc41db0803def2b927629604aa199b053312f7c200", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d73f45da0c2b5bf0959289fc41db0803def2b927629604aa199b053312f7c200", kill_on_drop: false }`
[INFO] [stdout] d73f45da0c2b5bf0959289fc41db0803def2b927629604aa199b053312f7c200
