[INFO] fetching crate funfun 0.2.4... [INFO] testing funfun-0.2.4 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] extracting crate funfun 0.2.4 into /workspace/builds/worker-7-tc2/source [INFO] started tweaking crates.io crate funfun 0.2.4 [INFO] finished tweaking crates.io crate funfun 0.2.4 [INFO] tweaked toml for crates.io crate funfun 0.2.4 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate funfun 0.2.4 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4e775a9ca6ae44e139ce578ceb5bb0d12eca3bb48f06af51e192f541dfa30b90 [INFO] running `Command { std: "docker" "start" "-a" "4e775a9ca6ae44e139ce578ceb5bb0d12eca3bb48f06af51e192f541dfa30b90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4e775a9ca6ae44e139ce578ceb5bb0d12eca3bb48f06af51e192f541dfa30b90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4e775a9ca6ae44e139ce578ceb5bb0d12eca3bb48f06af51e192f541dfa30b90", kill_on_drop: false }` [INFO] [stdout] 4e775a9ca6ae44e139ce578ceb5bb0d12eca3bb48f06af51e192f541dfa30b90 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e8ffb083a7713c72fb5fac3321d4ef9f4ddddd6bf485dad876b7aa1714c38bb3 [INFO] running `Command { std: "docker" "start" "-a" "e8ffb083a7713c72fb5fac3321d4ef9f4ddddd6bf485dad876b7aa1714c38bb3", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling funfun v0.2.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.11s [INFO] running `Command { std: "docker" "inspect" "e8ffb083a7713c72fb5fac3321d4ef9f4ddddd6bf485dad876b7aa1714c38bb3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e8ffb083a7713c72fb5fac3321d4ef9f4ddddd6bf485dad876b7aa1714c38bb3", kill_on_drop: false }` [INFO] [stdout] e8ffb083a7713c72fb5fac3321d4ef9f4ddddd6bf485dad876b7aa1714c38bb3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 52dbb21bf5e81ec52bb47cd2684611b39c83322780687f44524345f51d128a1e [INFO] running `Command { std: "docker" "start" "-a" "52dbb21bf5e81ec52bb47cd2684611b39c83322780687f44524345f51d128a1e", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling funfun v0.2.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:93:24 [INFO] [stdout] | [INFO] [stdout] 93 | type T = BoxFn String>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 93 | type T = BoxFn String>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:115:24 [INFO] [stdout] | [INFO] [stdout] 115 | type T = ArcFn String>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 115 | type T = ArcFn String>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/lib.rs:104:14 [INFO] [stdout] | [INFO] [stdout] 104 | |d: &str| -> String {"reassign once".to_string()} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/lib.rs:127:14 [INFO] [stdout] | [INFO] [stdout] 127 | |d: &str| -> String {"reassign once".to_string()} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary allocation, use `&` instead [INFO] [stdout] --> src/lib.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | ( $f:expr ) => { Box::new($f) }; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | box_fn!(||{println!("Neat!")})(); [INFO] [stdout] | ------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_allocation)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `rc` which comes from the expansion of the macro `box_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary allocation, use `&` instead [INFO] [stdout] --> src/lib.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | ( $f:expr ) => { Box::new($f) }; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | box_fn!(||{wrapped_prim(10)})(); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `rc` which comes from the expansion of the macro `box_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary allocation, use `&` instead [INFO] [stdout] --> src/lib.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | ( $f:expr ) => { Box::new($f) }; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | box_fn!(||{wrapped_vec(vec!["nice", "cool"])})(); [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `rc` which comes from the expansion of the macro `box_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary allocation, use `&` instead [INFO] [stdout] --> src/lib.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | ( $f:expr ) => { Box::new($f) }; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | box_fn!(|a: &str|{println!("{}", a)})("Awesome!"); [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `rc` which comes from the expansion of the macro `box_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary allocation, use `&` instead [INFO] [stdout] --> src/lib.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | ( $f:expr ) => { Box::new($f) }; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | box_fn!(|i: u32| {println!("{}", i + 10)})(10); [INFO] [stdout] | ------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `rc` which comes from the expansion of the macro `box_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary allocation, use `&` instead [INFO] [stdout] --> src/lib.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | ( $f:expr ) => { Box::new($f) }; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | box_fn!(|v: Vec<&str>| { println!("{:?}", v) })(vec!["nice", "cool"]); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `rc` which comes from the expansion of the macro `box_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary allocation, use `&` instead [INFO] [stdout] --> src/lib.rs:7:23 [INFO] [stdout] | [INFO] [stdout] 7 | ( $f:ident ) => { Box::new($f) }; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | box_fn!(wrapped_prim)(10); [INFO] [stdout] | --------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `rc` which comes from the expansion of the macro `box_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary allocation, use `&` instead [INFO] [stdout] --> src/lib.rs:7:23 [INFO] [stdout] | [INFO] [stdout] 7 | ( $f:ident ) => { Box::new($f) }; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | box_fn!(wrapped_vec)(vec!["nice", "cool"]) [INFO] [stdout] | -------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `rc` which comes from the expansion of the macro `box_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary allocation, use `&` instead [INFO] [stdout] --> src/lib.rs:7:23 [INFO] [stdout] | [INFO] [stdout] 7 | ( $f:ident ) => { Box::new($f) }; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | box_fn!(func)("Wow!"); [INFO] [stdout] | ------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `rc` which comes from the expansion of the macro `box_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:147:13 [INFO] [stdout] | [INFO] [stdout] 147 | res.join(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 147 | let _ = res.join(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:165:13 [INFO] [stdout] | [INFO] [stdout] 165 | res.join(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 165 | let _ = res.join(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.56s [INFO] running `Command { std: "docker" "inspect" "52dbb21bf5e81ec52bb47cd2684611b39c83322780687f44524345f51d128a1e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "52dbb21bf5e81ec52bb47cd2684611b39c83322780687f44524345f51d128a1e", kill_on_drop: false }` [INFO] [stdout] 52dbb21bf5e81ec52bb47cd2684611b39c83322780687f44524345f51d128a1e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 1841add11fa1c80a306333a914a0c963b07d78761fc3e981e0ad529616d5cd59 [INFO] running `Command { std: "docker" "start" "-a" "1841add11fa1c80a306333a914a0c963b07d78761fc3e981e0ad529616d5cd59", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] warning: unused import: `std::fmt` [INFO] [stderr] --> src/lib.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::fmt; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `funfun` (lib) generated 1 warning (run `cargo fix --lib -p funfun` to apply 1 suggestion) [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lib.rs:93:24 [INFO] [stderr] | [INFO] [stderr] 93 | type T = BoxFn String>; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 93 | type T = BoxFn String>; [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lib.rs:115:24 [INFO] [stderr] | [INFO] [stderr] 115 | type T = ArcFn String>; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 115 | type T = ArcFn String>; [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `d` [INFO] [stderr] --> src/lib.rs:104:14 [INFO] [stderr] | [INFO] [stderr] 104 | |d: &str| -> String {"reassign once".to_string()} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `d` [INFO] [stderr] --> src/lib.rs:127:14 [INFO] [stderr] | [INFO] [stderr] 127 | |d: &str| -> String {"reassign once".to_string()} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stderr] [INFO] [stderr] warning: unnecessary allocation, use `&` instead [INFO] [stderr] --> src/lib.rs:8:22 [INFO] [stderr] | [INFO] [stderr] 8 | ( $f:expr ) => { Box::new($f) }; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 63 | box_fn!(||{println!("Neat!")})(); [INFO] [stderr] | ------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_allocation)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] = note: this warning originates in the macro `rc` which comes from the expansion of the macro `box_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary allocation, use `&` instead [INFO] [stderr] --> src/lib.rs:8:22 [INFO] [stderr] | [INFO] [stderr] 8 | ( $f:expr ) => { Box::new($f) }; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 64 | box_fn!(||{wrapped_prim(10)})(); [INFO] [stderr] | ----------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `rc` which comes from the expansion of the macro `box_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary allocation, use `&` instead [INFO] [stderr] --> src/lib.rs:8:22 [INFO] [stderr] | [INFO] [stderr] 8 | ( $f:expr ) => { Box::new($f) }; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 65 | box_fn!(||{wrapped_vec(vec!["nice", "cool"])})(); [INFO] [stderr] | ---------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `rc` which comes from the expansion of the macro `box_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary allocation, use `&` instead [INFO] [stderr] --> src/lib.rs:8:22 [INFO] [stderr] | [INFO] [stderr] 8 | ( $f:expr ) => { Box::new($f) }; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 70 | box_fn!(|a: &str|{println!("{}", a)})("Awesome!"); [INFO] [stderr] | ------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `rc` which comes from the expansion of the macro `box_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary allocation, use `&` instead [INFO] [stderr] --> src/lib.rs:8:22 [INFO] [stderr] | [INFO] [stderr] 8 | ( $f:expr ) => { Box::new($f) }; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 71 | box_fn!(|i: u32| {println!("{}", i + 10)})(10); [INFO] [stderr] | ------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `rc` which comes from the expansion of the macro `box_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary allocation, use `&` instead [INFO] [stderr] --> src/lib.rs:8:22 [INFO] [stderr] | [INFO] [stderr] 8 | ( $f:expr ) => { Box::new($f) }; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 72 | box_fn!(|v: Vec<&str>| { println!("{:?}", v) })(vec!["nice", "cool"]); [INFO] [stderr] | ----------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `rc` which comes from the expansion of the macro `box_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary allocation, use `&` instead [INFO] [stderr] --> src/lib.rs:7:23 [INFO] [stderr] | [INFO] [stderr] 7 | ( $f:ident ) => { Box::new($f) }; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 80 | box_fn!(wrapped_prim)(10); [INFO] [stderr] | --------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `rc` which comes from the expansion of the macro `box_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary allocation, use `&` instead [INFO] [stderr] --> src/lib.rs:7:23 [INFO] [stderr] | [INFO] [stderr] 7 | ( $f:ident ) => { Box::new($f) }; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 81 | box_fn!(wrapped_vec)(vec!["nice", "cool"]) [INFO] [stderr] | -------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `rc` which comes from the expansion of the macro `box_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary allocation, use `&` instead [INFO] [stderr] --> src/lib.rs:7:23 [INFO] [stderr] | [INFO] [stderr] 7 | ( $f:ident ) => { Box::new($f) }; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 88 | box_fn!(func)("Wow!"); [INFO] [stderr] | ------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `rc` which comes from the expansion of the macro `box_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/lib.rs:147:13 [INFO] [stderr] | [INFO] [stderr] 147 | res.join(); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 147 | let _ = res.join(); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/lib.rs:165:13 [INFO] [stderr] | [INFO] [stderr] 165 | res.join(); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 165 | let _ = res.join(); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: `funfun` (lib test) generated 16 warnings (1 duplicate) (run `cargo fix --lib -p funfun --tests` to apply 4 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/funfun-b06b8e976d1fa659) [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test tests::in_struct_arc_fn ... ok [INFO] [stdout] test tests::in_struct_box_fn ... ok [INFO] [stdout] test tests::pass_function_box_fn ... ok [INFO] [stdout] test tests::zero_arity_box_fn ... ok [INFO] [stdout] test tests::pass_named_box_fn ... ok [INFO] [stdout] test tests::one_arity_box_fn ... ok [INFO] [stdout] test tests::multithreading_box_fn ... ok [INFO] [stdout] test tests::multithreading_spawn_fn ... ok [INFO] [stderr] Doc-tests funfun [INFO] [stdout] [INFO] [stdout] test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 3.76s [INFO] [stdout] [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] running `Command { std: "docker" "inspect" "1841add11fa1c80a306333a914a0c963b07d78761fc3e981e0ad529616d5cd59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1841add11fa1c80a306333a914a0c963b07d78761fc3e981e0ad529616d5cd59", kill_on_drop: false }` [INFO] [stdout] 1841add11fa1c80a306333a914a0c963b07d78761fc3e981e0ad529616d5cd59