[INFO] fetching crate funfun 0.2.4... [INFO] testing funfun-0.2.4 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate funfun 0.2.4 into /workspace/builds/worker-5-tc1/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-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate funfun 0.2.4 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7efca32eb01146bf6ec4ff4d6f456d18107de7b65e67a13615633406fdb8ed9d [INFO] running `Command { std: "docker" "start" "-a" "7efca32eb01146bf6ec4ff4d6f456d18107de7b65e67a13615633406fdb8ed9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7efca32eb01146bf6ec4ff4d6f456d18107de7b65e67a13615633406fdb8ed9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7efca32eb01146bf6ec4ff4d6f456d18107de7b65e67a13615633406fdb8ed9d", kill_on_drop: false }` [INFO] [stdout] 7efca32eb01146bf6ec4ff4d6f456d18107de7b65e67a13615633406fdb8ed9d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 44c36bd92ba80f4b783d63ee2fb26ebd2d46ec6b40d90283ee9f4c5d929c453c [INFO] running `Command { std: "docker" "start" "-a" "44c36bd92ba80f4b783d63ee2fb26ebd2d46ec6b40d90283ee9f4c5d929c453c", 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.06s [INFO] running `Command { std: "docker" "inspect" "44c36bd92ba80f4b783d63ee2fb26ebd2d46ec6b40d90283ee9f4c5d929c453c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "44c36bd92ba80f4b783d63ee2fb26ebd2d46ec6b40d90283ee9f4c5d929c453c", kill_on_drop: false }` [INFO] [stdout] 44c36bd92ba80f4b783d63ee2fb26ebd2d46ec6b40d90283ee9f4c5d929c453c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c0c16dd15af043593ac7760ac54206987eb5f6500ad3b7b3423f5460c9c70f98 [INFO] running `Command { std: "docker" "start" "-a" "c0c16dd15af043593ac7760ac54206987eb5f6500ad3b7b3423f5460c9c70f98", 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] [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.45s [INFO] running `Command { std: "docker" "inspect" "c0c16dd15af043593ac7760ac54206987eb5f6500ad3b7b3423f5460c9c70f98", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c0c16dd15af043593ac7760ac54206987eb5f6500ad3b7b3423f5460c9c70f98", kill_on_drop: false }` [INFO] [stdout] c0c16dd15af043593ac7760ac54206987eb5f6500ad3b7b3423f5460c9c70f98 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] f631140d583a77c67d052618a25149658fdb1465ae6f5f97a9ace17aa2f06988 [INFO] running `Command { std: "docker" "start" "-a" "f631140d583a77c67d052618a25149658fdb1465ae6f5f97a9ace17aa2f06988", 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 2 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s [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_box_fn ... ok [INFO] [stdout] test tests::one_arity_box_fn ... ok [INFO] [stdout] test tests::pass_function_box_fn ... ok [INFO] [stdout] test tests::in_struct_arc_fn ... ok [INFO] [stdout] test tests::pass_named_box_fn ... ok [INFO] [stdout] test tests::zero_arity_box_fn ... ok [INFO] [stdout] test tests::multithreading_box_fn ... ok [INFO] [stdout] test tests::multithreading_spawn_fn ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 5.88s [INFO] [stdout] [INFO] [stderr] Doc-tests funfun [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" "f631140d583a77c67d052618a25149658fdb1465ae6f5f97a9ace17aa2f06988", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f631140d583a77c67d052618a25149658fdb1465ae6f5f97a9ace17aa2f06988", kill_on_drop: false }` [INFO] [stdout] f631140d583a77c67d052618a25149658fdb1465ae6f5f97a9ace17aa2f06988