[INFO] cloning repository https://github.com/goby/rust-study [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/goby/rust-study" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgoby%2Frust-study", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgoby%2Frust-study'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ed7f2d3593e24c9ea60624d3505ec7f85d7b05b2 [INFO] checking goby/rust-study/ed7f2d3593e24c9ea60624d3505ec7f85d7b05b2 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgoby%2Frust-study" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/goby/rust-study on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/goby/rust-study [INFO] finished tweaking git repo https://github.com/goby/rust-study [INFO] tweaked toml for git repo https://github.com/goby/rust-study written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/goby/rust-study already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded lazycell v0.4.0 [INFO] [stderr] Downloaded miow v0.1.3 [INFO] [stderr] Downloaded cfg-if v0.1.0 [INFO] [stderr] Downloaded net2 v0.2.26 [INFO] [stderr] Downloaded libc v0.2.16 [INFO] [stderr] Downloaded mio v0.6.0 [INFO] [stderr] Downloaded nix v0.6.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0d1ad4644038c9b2c34ac63895653996a1582b393c38bda4e02bef89bc4b3382 [INFO] running `Command { std: "docker" "start" "-a" "0d1ad4644038c9b2c34ac63895653996a1582b393c38bda4e02bef89bc4b3382", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0d1ad4644038c9b2c34ac63895653996a1582b393c38bda4e02bef89bc4b3382", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0d1ad4644038c9b2c34ac63895653996a1582b393c38bda4e02bef89bc4b3382", kill_on_drop: false }` [INFO] [stdout] 0d1ad4644038c9b2c34ac63895653996a1582b393c38bda4e02bef89bc4b3382 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bf217031eeee6681e6426ae85b55ba08a74e70af611dc91f7a1ec2d86d218e95 [INFO] running `Command { std: "docker" "start" "-a" "bf217031eeee6681e6426ae85b55ba08a74e70af611dc91f7a1ec2d86d218e95", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Compiling semver v0.1.20 [INFO] [stderr] Checking libc v0.2.16 [INFO] [stderr] Checking cfg-if v0.1.0 [INFO] [stderr] Checking bitflags v0.4.0 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking lazycell v0.4.0 [INFO] [stderr] Checking log v0.3.6 [INFO] [stderr] Checking slab v0.3.0 [INFO] [stderr] Checking net2 v0.2.26 [INFO] [stderr] Checking rand v0.3.14 [INFO] [stderr] Compiling rustc_version v0.1.7 [INFO] [stderr] Compiling nix v0.6.0 [INFO] [stderr] Checking mio v0.6.0 [INFO] [stderr] Checking guessing v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/structs.rs:72:24 [INFO] [stdout] | [INFO] [stdout] 72 | fn has_edge(&self, &Self::Node, &Self::Node) -> bool; [INFO] [stdout] | ^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &Self::Node` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/structs.rs:72:37 [INFO] [stdout] | [INFO] [stdout] 72 | fn has_edge(&self, &Self::Node, &Self::Node) -> bool; [INFO] [stdout] | ^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &Self::Node` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/structs.rs:73:21 [INFO] [stdout] | [INFO] [stdout] 73 | fn edges(&self, &Self::Node) -> Vec; [INFO] [stdout] | ^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &Self::Node` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/macros.rs:62:43 [INFO] [stdout] | [INFO] [stdout] 62 | fn x() { println!("x() outbound")}; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/macros.rs:115:18 [INFO] [stdout] | [INFO] [stdout] 115 | $($x);*; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/macros.rs:115:20 [INFO] [stdout] | [INFO] [stdout] 115 | $($x);*; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] ... [INFO] [stdout] 122 | m_stmt!(let haha = 3, let _ = 33); [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `m_stmt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `concurrency` [INFO] [stdout] --> src/concurrency.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | macro_rules! concurrency { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: rust-call ABI is subject to change [INFO] [stdout] --> src/closures.rs:22:20 [INFO] [stdout] | [INFO] [stdout] 22 | extern "rust-call" fn call(&self, args: Args) -> Self::Output; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #29625 for more information [INFO] [stdout] = help: add `#![feature(unboxed_closures)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: rust-call ABI is subject to change [INFO] [stdout] --> src/closures.rs:26:20 [INFO] [stdout] | [INFO] [stdout] 26 | extern "rust-call" fn call(&mut self, args: Args) -> Self::Output; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #29625 for more information [INFO] [stdout] = help: add `#![feature(unboxed_closures)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: rust-call ABI is subject to change [INFO] [stdout] --> src/closures.rs:32:20 [INFO] [stdout] | [INFO] [stdout] 32 | extern "rust-call" fn call(self, args: Args) -> Self::Output; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #29625 for more information [INFO] [stdout] = help: add `#![feature(unboxed_closures)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/structs.rs:72:24 [INFO] [stdout] | [INFO] [stdout] 72 | fn has_edge(&self, &Self::Node, &Self::Node) -> bool; [INFO] [stdout] | ^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &Self::Node` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/structs.rs:72:37 [INFO] [stdout] | [INFO] [stdout] 72 | fn has_edge(&self, &Self::Node, &Self::Node) -> bool; [INFO] [stdout] | ^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &Self::Node` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/structs.rs:73:21 [INFO] [stdout] | [INFO] [stdout] 73 | fn edges(&self, &Self::Node) -> Vec; [INFO] [stdout] | ^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &Self::Node` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/macros.rs:62:43 [INFO] [stdout] | [INFO] [stdout] 62 | fn x() { println!("x() outbound")}; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/macros.rs:115:18 [INFO] [stdout] | [INFO] [stdout] 115 | $($x);*; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/macros.rs:115:20 [INFO] [stdout] | [INFO] [stdout] 115 | $($x);*; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] ... [INFO] [stdout] 122 | m_stmt!(let haha = 3, let _ = 33); [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `m_stmt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/traits.rs:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | fn dynamic_dispatch(t: &FormatString) { [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)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 75 | fn dynamic_dispatch(t: &dyn FormatString) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/traits.rs:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | fn dynamic_dispatch(t: &FormatString) { [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)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 75 | fn dynamic_dispatch(t: &dyn FormatString) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/closures.rs:10:49 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn test_return_closure(num: i32) -> Box i32> { [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 an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 10 | pub fn test_return_closure(num: i32) -> Box i32> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/closures.rs:49:36 [INFO] [stdout] | [INFO] [stdout] 49 | fn call_with_two(closure: &Fn(i32) -> i32) -> i32 { [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 an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 49 | fn call_with_two(closure: &dyn Fn(i32) -> i32) -> i32 { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: functions with the "rust-call" ABI must take a single non-self tuple argument [INFO] [stdout] --> src/closures.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | extern "rust-call" fn call(&self, args: Args) -> Self::Output; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Tuple` is not implemented for `Args` [INFO] [stdout] | [INFO] [stdout] help: consider restricting type parameter `Args` [INFO] [stdout] | [INFO] [stdout] 21 | trait Fn: FnMut { [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: functions with the "rust-call" ABI must take a single non-self tuple argument [INFO] [stdout] --> src/closures.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | extern "rust-call" fn call(&mut self, args: Args) -> Self::Output; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Tuple` is not implemented for `Args` [INFO] [stdout] | [INFO] [stdout] help: consider restricting type parameter `Args` [INFO] [stdout] | [INFO] [stdout] 25 | trait FnMut: FnOnce { [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: functions with the "rust-call" ABI must take a single non-self tuple argument [INFO] [stdout] --> src/closures.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | extern "rust-call" fn call(self, args: Args) -> Self::Output; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Tuple` is not implemented for `Args` [INFO] [stdout] | [INFO] [stdout] help: consider restricting type parameter `Args` [INFO] [stdout] | [INFO] [stdout] 29 | trait FnOnce { [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n1` [INFO] [stdout] --> src/structs.rs:86:24 [INFO] [stdout] | [INFO] [stdout] 86 | fn has_edge(&self, n1: &Node, n2: &Node) -> bool { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_n1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n2` [INFO] [stdout] --> src/structs.rs:86:35 [INFO] [stdout] | [INFO] [stdout] 86 | fn has_edge(&self, n1: &Node, n2: &Node) -> bool { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_n2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/structs.rs:90:21 [INFO] [stdout] | [INFO] [stdout] 90 | fn edges(&self, node: &Node) -> Vec { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/structs.rs:136:38 [INFO] [stdout] | [INFO] [stdout] 136 | let obj = Box::new(g) as Box>; [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 an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 136 | let obj = Box::new(g) as Box>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/structs.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct PointRef<'a> { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 27 | x: &'a mut i32, [INFO] [stdout] | ^ [INFO] [stdout] 28 | y: &'a mut i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `start` and `end` are never read [INFO] [stdout] --> src/structs.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Line { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 32 | start: Point, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 33 | end: Point, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x`, `y`, and `z` are never read [INFO] [stdout] --> src/structs.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct Point3d { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 38 | x: i32, [INFO] [stdout] | ^ [INFO] [stdout] 39 | y: i32, [INFO] [stdout] | ^ [INFO] [stdout] 40 | z: i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Point3d` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x`, `y`, and `z` are never read [INFO] [stdout] --> src/structs.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct Point3dRef<'a> { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 44 | x: &'a mut i32, [INFO] [stdout] | ^ [INFO] [stdout] 45 | y: &'a mut i32, [INFO] [stdout] | ^ [INFO] [stdout] 46 | z: &'a mut i32, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/structs.rs:49:18 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct Coord(i32); [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Message` is never used [INFO] [stdout] --> src/structs.rs:52:6 [INFO] [stdout] | [INFO] [stdout] 52 | enum Message { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x`, `y`, and `radius` are never read [INFO] [stdout] --> src/structs.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct Circle { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 61 | x: f64, [INFO] [stdout] | ^ [INFO] [stdout] 62 | y: f64, [INFO] [stdout] | ^ [INFO] [stdout] 63 | radius: f64 [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Circle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `centor` is never read [INFO] [stdout] --> src/structs.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 99 | pub struct Square { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 100 | centor: Point, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `area` and `grow` are never used [INFO] [stdout] --> src/structs.rs:112:8 [INFO] [stdout] | [INFO] [stdout] 111 | impl Circle { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 112 | fn area(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | fn grow(&self, increment: f64) -> Circle { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ConvertTo` is never used [INFO] [stdout] --> src/traits.rs:2:7 [INFO] [stdout] | [INFO] [stdout] 2 | trait ConvertTo { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `normal` is never used [INFO] [stdout] --> src/traits.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn normal>(x: &T) -> i64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inverse` is never used [INFO] [stdout] --> src/traits.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn inverse() -> T [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Validate` is never used [INFO] [stdout] --> src/traits.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | trait Validate { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UseDefault` is never constructed [INFO] [stdout] --> src/traits.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | struct UseDefault; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OverrideDefault` is never constructed [INFO] [stdout] --> src/traits.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | struct OverrideDefault; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HasDrop` is never constructed [INFO] [stdout] --> src/traits.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | struct HasDrop { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `FormatString` is never used [INFO] [stdout] --> src/traits.rs:57:7 [INFO] [stdout] | [INFO] [stdout] 57 | trait FormatString { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `static_dispatch` is never used [INFO] [stdout] --> src/traits.rs:70:4 [INFO] [stdout] | [INFO] [stdout] 70 | fn static_dispatch(t: &T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dynamic_dispatch` is never used [INFO] [stdout] --> src/traits.rs:75:4 [INFO] [stdout] | [INFO] [stdout] 75 | fn dynamic_dispatch(t: &FormatString) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `object_safe` is never used [INFO] [stdout] --> src/traits.rs:79:4 [INFO] [stdout] | [INFO] [stdout] 79 | fn object_safe() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `trait_with_same_function` is never used [INFO] [stdout] --> src/traits.rs:87:4 [INFO] [stdout] | [INFO] [stdout] 87 | fn trait_with_same_function() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `trait_with_as_form` is never used [INFO] [stdout] --> src/traits.rs:113:4 [INFO] [stdout] | [INFO] [stdout] 113 | fn trait_with_as_form() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `f` is never used [INFO] [stdout] --> src/traits.rs:117:19 [INFO] [stdout] | [INFO] [stdout] 117 | impl Bar { fn f(&self) { println!("bar.f(): Impl without trait"); }} [INFO] [stdout] | -------- ^ [INFO] [stdout] | | [INFO] [stdout] | method in this implementation [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_move` is never used [INFO] [stdout] --> src/lifetimes.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn test_move() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_ownership` is never used [INFO] [stdout] --> src/lifetimes.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn test_ownership() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_lifetime` is never used [INFO] [stdout] --> src/lifetimes.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn test_lifetime() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `x` is never used [INFO] [stdout] --> src/lifetimes.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl<'a> Foo<'a> { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 41 | fn x(&self) -> &'a i32 {self.x} [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_elided_lifetime` is never used [INFO] [stdout] --> src/lifetimes.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn test_elided_lifetime() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 39 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/traits.rs:150:29 [INFO] [stdout] | [INFO] [stdout] 150 | dynamic_dispatch(&x as &FormatString); [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 an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 150 | dynamic_dispatch(&x as &dyn FormatString); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/traits.rs:151:29 [INFO] [stdout] | [INFO] [stdout] 151 | dynamic_dispatch(&y as &FormatString); [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 an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 151 | dynamic_dispatch(&y as &dyn FormatString); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n1` [INFO] [stdout] --> src/structs.rs:86:24 [INFO] [stdout] | [INFO] [stdout] 86 | fn has_edge(&self, n1: &Node, n2: &Node) -> bool { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_n1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n2` [INFO] [stdout] --> src/structs.rs:86:35 [INFO] [stdout] | [INFO] [stdout] 86 | fn has_edge(&self, n1: &Node, n2: &Node) -> bool { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_n2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/structs.rs:90:21 [INFO] [stdout] | [INFO] [stdout] 90 | fn edges(&self, node: &Node) -> Vec { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obj` [INFO] [stdout] --> src/structs.rs:136:13 [INFO] [stdout] | [INFO] [stdout] 136 | let obj = Box::new(g) as Box>; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_obj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/closures.rs:73:49 [INFO] [stdout] | [INFO] [stdout] 73 | let mut add_num = move |x: i32| num += x; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: did you mean to capture by reference instead? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `guessing` (lib test) due to 7 previous errors; 17 warnings emitted [INFO] running `Command { std: "docker" "inspect" "bf217031eeee6681e6426ae85b55ba08a74e70af611dc91f7a1ec2d86d218e95", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bf217031eeee6681e6426ae85b55ba08a74e70af611dc91f7a1ec2d86d218e95", kill_on_drop: false }` [INFO] [stdout] bf217031eeee6681e6426ae85b55ba08a74e70af611dc91f7a1ec2d86d218e95