[INFO] cloning repository https://github.com/inblack67/Rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/inblack67/Rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finblack67%2FRust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finblack67%2FRust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 37146a31e78cae8dfb5c7cfad503a141f13deab8 [INFO] checking inblack67/Rust against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finblack67%2FRust" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/inblack67/Rust on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/inblack67/Rust [INFO] finished tweaking git repo https://github.com/inblack67/Rust [INFO] tweaked toml for git repo https://github.com/inblack67/Rust written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/inblack67/Rust 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8a82b48876dc5606ae78e775776e5d8dfc9040c5059e289947c13ebb74b8158e [INFO] running `Command { std: "docker" "start" "-a" "8a82b48876dc5606ae78e775776e5d8dfc9040c5059e289947c13ebb74b8158e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8a82b48876dc5606ae78e775776e5d8dfc9040c5059e289947c13ebb74b8158e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8a82b48876dc5606ae78e775776e5d8dfc9040c5059e289947c13ebb74b8158e", kill_on_drop: false }` [INFO] [stdout] 8a82b48876dc5606ae78e775776e5d8dfc9040c5059e289947c13ebb74b8158e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 27faa71c37184f6454c4be3b33bcc5a73341858510692ec9364c4b02b645e04f [INFO] running `Command { std: "docker" "start" "-a" "27faa71c37184f6454c4be3b33bcc5a73341858510692ec9364c4b02b645e04f", kill_on_drop: false }` [INFO] [stderr] Checking Rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/error_handling.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | let f = match f { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/error_handling.rs:23:6 [INFO] [stdout] | [INFO] [stdout] 23 | let f = File::open("text.txt").unwrap(); // unwraps to data [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/error_handling.rs:24:6 [INFO] [stdout] | [INFO] [stdout] 24 | let f = File::open("text.txt").expect("Could not open file"); // unwraps to data or panics with the provided error [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/error_handling.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | let f = match f { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/generics.rs:28:6 [INFO] [stdout] | [INFO] [stdout] 28 | let s = Square { x: 1 }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/generics.rs:29:6 [INFO] [stdout] | [INFO] [stdout] 29 | let s = Square { x: "hello" }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/generics.rs:30:6 [INFO] [stdout] | [INFO] [stdout] 30 | let s = Square { x: true }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/error_handling.rs:23:6 [INFO] [stdout] | [INFO] [stdout] 23 | let f = File::open("text.txt").unwrap(); // unwraps to data [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/error_handling.rs:24:6 [INFO] [stdout] | [INFO] [stdout] 24 | let f = File::open("text.txt").expect("Could not open file"); // unwraps to data or panics with the provided error [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/lifetimes.rs:20:6 [INFO] [stdout] | [INFO] [stdout] 20 | let s: &'static str = "static life"; // will live until the entire duration of the program [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/generics.rs:28:6 [INFO] [stdout] | [INFO] [stdout] 28 | let s = Square { x: 1 }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/generics.rs:29:6 [INFO] [stdout] | [INFO] [stdout] 29 | let s = Square { x: "hello" }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/generics.rs:30:6 [INFO] [stdout] | [INFO] [stdout] 30 | let s = Square { x: true }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/lifetimes.rs:20:6 [INFO] [stdout] | [INFO] [stdout] 20 | let s: &'static str = "static life"; // will live until the entire duration of the program [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/vectors.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | let x: Vec = vec![1, 2, 3]; // resizable array => length not known at compile time [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/enums.rs:10:2 [INFO] [stdout] | [INFO] [stdout] 9 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 10 | x: u32, [INFO] [stdout] | ^ [INFO] [stdout] 11 | y: u32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/enums.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | UP(Point), // tuple of point struct [INFO] [stdout] | -- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 15 | UP(()), // tuple of point struct [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DOWN`, `LEFT`, and `RIGHT` are never constructed [INFO] [stdout] --> src/enums.rs:16:2 [INFO] [stdout] | [INFO] [stdout] 14 | enum Direction { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 15 | UP(Point), // tuple of point struct [INFO] [stdout] 16 | DOWN(Point), [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | LEFT(Point), [INFO] [stdout] | ^^^^ [INFO] [stdout] 18 | RIGHT(Point), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DownKey`, `LeftKey`, and `RightKey` are never constructed [INFO] [stdout] --> src/enums.rs:24:2 [INFO] [stdout] | [INFO] [stdout] 22 | enum Keys { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 23 | UpKey(String), [INFO] [stdout] 24 | DownKey(String), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 25 | LeftKey(String), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 26 | RightKey(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Keys` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `play_with_files` is never used [INFO] [stdout] --> src/error_handling.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn play_with_files() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `play_with_files_2` is never used [INFO] [stdout] --> src/error_handling.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn play_with_files_2() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exit` is never used [INFO] [stdout] --> src/error_handling.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn exit(x: Option) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `p` is never used [INFO] [stdout] --> src/generics.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn p(x: T) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `x` is never read [INFO] [stdout] --> src/generics.rs:9:2 [INFO] [stdout] | [INFO] [stdout] 8 | struct Square { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 9 | x: T, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `A` is never constructed [INFO] [stdout] --> src/generics.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct A { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `item` is never used [INFO] [stdout] --> src/generics.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | impl A { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 17 | fn item(&self) -> &T { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `M` is never constructed [INFO] [stdout] --> src/generics.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct M { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pr` is never used [INFO] [stdout] --> src/lifetimes.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn pr<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `A` is never constructed [INFO] [stdout] --> src/lifetimes.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct A<'a, 'b> { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUM_TIMERS` is never used [INFO] [stdout] --> src/mpsc.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const NUM_TIMERS: usize = 24; // usize => architechture dependent => 32bit or 64bit [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `timer` is never used [INFO] [stdout] --> src/mpsc.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn timer(d: usize, tx: mpsc::Sender) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> src/mpsc.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Iterator` is never used [INFO] [stdout] --> src/my_iterators.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | trait Iterator { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MyOption` is never used [INFO] [stdout] --> src/options.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | enum MyOption { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Result` is never used [INFO] [stdout] --> src/result_enum.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | enum Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `B` is never constructed [INFO] [stdout] --> src/traits.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct B(u32); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/vectors.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | Float(f64), [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `GenericVector` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 4 | Float(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/vectors.rs:5:6 [INFO] [stdout] | [INFO] [stdout] 5 | Int(f64), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `GenericVector` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 5 | Int(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/vectors.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | Text(String), [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `GenericVector` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 6 | Text(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/vectors.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | let x: Vec = vec![1, 2, 3]; // resizable array => length not known at compile time [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/enums.rs:10:2 [INFO] [stdout] | [INFO] [stdout] 9 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 10 | x: u32, [INFO] [stdout] | ^ [INFO] [stdout] 11 | y: u32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/enums.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | UP(Point), // tuple of point struct [INFO] [stdout] | -- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 15 | UP(()), // tuple of point struct [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DOWN`, `LEFT`, and `RIGHT` are never constructed [INFO] [stdout] --> src/enums.rs:16:2 [INFO] [stdout] | [INFO] [stdout] 14 | enum Direction { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 15 | UP(Point), // tuple of point struct [INFO] [stdout] 16 | DOWN(Point), [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | LEFT(Point), [INFO] [stdout] | ^^^^ [INFO] [stdout] 18 | RIGHT(Point), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DownKey`, `LeftKey`, and `RightKey` are never constructed [INFO] [stdout] --> src/enums.rs:24:2 [INFO] [stdout] | [INFO] [stdout] 22 | enum Keys { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 23 | UpKey(String), [INFO] [stdout] 24 | DownKey(String), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 25 | LeftKey(String), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 26 | RightKey(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Keys` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `play_with_files` is never used [INFO] [stdout] --> src/error_handling.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn play_with_files() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `play_with_files_2` is never used [INFO] [stdout] --> src/error_handling.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn play_with_files_2() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exit` is never used [INFO] [stdout] --> src/error_handling.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn exit(x: Option) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `p` is never used [INFO] [stdout] --> src/generics.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn p(x: T) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `x` is never read [INFO] [stdout] --> src/generics.rs:9:2 [INFO] [stdout] | [INFO] [stdout] 8 | struct Square { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 9 | x: T, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `A` is never constructed [INFO] [stdout] --> src/generics.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct A { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `item` is never used [INFO] [stdout] --> src/generics.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | impl A { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 17 | fn item(&self) -> &T { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `M` is never constructed [INFO] [stdout] --> src/generics.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct M { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pr` is never used [INFO] [stdout] --> src/lifetimes.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn pr<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `A` is never constructed [INFO] [stdout] --> src/lifetimes.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct A<'a, 'b> { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUM_TIMERS` is never used [INFO] [stdout] --> src/mpsc.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const NUM_TIMERS: usize = 24; // usize => architechture dependent => 32bit or 64bit [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `timer` is never used [INFO] [stdout] --> src/mpsc.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn timer(d: usize, tx: mpsc::Sender) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> src/mpsc.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Iterator` is never used [INFO] [stdout] --> src/my_iterators.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | trait Iterator { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MyOption` is never used [INFO] [stdout] --> src/options.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | enum MyOption { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Result` is never used [INFO] [stdout] --> src/result_enum.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | enum Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `B` is never constructed [INFO] [stdout] --> src/traits.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct B(u32); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/vectors.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | Float(f64), [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `GenericVector` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 4 | Float(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/vectors.rs:5:6 [INFO] [stdout] | [INFO] [stdout] 5 | Int(f64), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `GenericVector` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 5 | Int(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/vectors.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | Text(String), [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `GenericVector` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 6 | Text(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.11s [INFO] running `Command { std: "docker" "inspect" "27faa71c37184f6454c4be3b33bcc5a73341858510692ec9364c4b02b645e04f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "27faa71c37184f6454c4be3b33bcc5a73341858510692ec9364c4b02b645e04f", kill_on_drop: false }` [INFO] [stdout] 27faa71c37184f6454c4be3b33bcc5a73341858510692ec9364c4b02b645e04f [INFO] checking inblack67/Rust against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finblack67%2FRust" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/inblack67/Rust on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/inblack67/Rust [INFO] finished tweaking git repo https://github.com/inblack67/Rust [INFO] tweaked toml for git repo https://github.com/inblack67/Rust written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/inblack67/Rust 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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 687c6e0faad9d561c2740060689a0d4c7fb604ab98a99893655e6b7ef0f14f9c [INFO] running `Command { std: "docker" "start" "-a" "687c6e0faad9d561c2740060689a0d4c7fb604ab98a99893655e6b7ef0f14f9c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "687c6e0faad9d561c2740060689a0d4c7fb604ab98a99893655e6b7ef0f14f9c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "687c6e0faad9d561c2740060689a0d4c7fb604ab98a99893655e6b7ef0f14f9c", kill_on_drop: false }` [INFO] [stdout] 687c6e0faad9d561c2740060689a0d4c7fb604ab98a99893655e6b7ef0f14f9c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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 -Dtail_expr_drop_order" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 75e1661423d2ff95aa3e1589738205aad8ab63f1ba313592947fff8359aca05c [INFO] running `Command { std: "docker" "start" "-a" "75e1661423d2ff95aa3e1589738205aad8ab63f1ba313592947fff8359aca05c", kill_on_drop: false }` [INFO] [stderr] Checking Rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/error_handling.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | let f = match f { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/error_handling.rs:23:6 [INFO] [stdout] | [INFO] [stdout] 23 | let f = File::open("text.txt").unwrap(); // unwraps to data [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/error_handling.rs:24:6 [INFO] [stdout] | [INFO] [stdout] 24 | let f = File::open("text.txt").expect("Could not open file"); // unwraps to data or panics with the provided error [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/error_handling.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | let f = match f { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/error_handling.rs:23:6 [INFO] [stdout] | [INFO] [stdout] 23 | let f = File::open("text.txt").unwrap(); // unwraps to data [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/error_handling.rs:24:6 [INFO] [stdout] | [INFO] [stdout] 24 | let f = File::open("text.txt").expect("Could not open file"); // unwraps to data or panics with the provided error [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/generics.rs:28:6 [INFO] [stdout] | [INFO] [stdout] 28 | let s = Square { x: 1 }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/generics.rs:29:6 [INFO] [stdout] | [INFO] [stdout] 29 | let s = Square { x: "hello" }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/generics.rs:30:6 [INFO] [stdout] | [INFO] [stdout] 30 | let s = Square { x: true }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/generics.rs:28:6 [INFO] [stdout] | [INFO] [stdout] 28 | let s = Square { x: 1 }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/generics.rs:29:6 [INFO] [stdout] | [INFO] [stdout] 29 | let s = Square { x: "hello" }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/generics.rs:30:6 [INFO] [stdout] | [INFO] [stdout] 30 | let s = Square { x: true }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/lifetimes.rs:20:6 [INFO] [stdout] | [INFO] [stdout] 20 | let s: &'static str = "static life"; // will live until the entire duration of the program [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/lifetimes.rs:20:6 [INFO] [stdout] | [INFO] [stdout] 20 | let s: &'static str = "static life"; // will live until the entire duration of the program [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/vectors.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | let x: Vec = vec![1, 2, 3]; // resizable array => length not known at compile time [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/vectors.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | let x: Vec = vec![1, 2, 3]; // resizable array => length not known at compile time [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/enums.rs:10:2 [INFO] [stdout] | [INFO] [stdout] 9 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 10 | x: u32, [INFO] [stdout] | ^ [INFO] [stdout] 11 | y: u32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/enums.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | UP(Point), // tuple of point struct [INFO] [stdout] | -- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 15 | UP(()), // tuple of point struct [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DOWN`, `LEFT`, and `RIGHT` are never constructed [INFO] [stdout] --> src/enums.rs:16:2 [INFO] [stdout] | [INFO] [stdout] 14 | enum Direction { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 15 | UP(Point), // tuple of point struct [INFO] [stdout] 16 | DOWN(Point), [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | LEFT(Point), [INFO] [stdout] | ^^^^ [INFO] [stdout] 18 | RIGHT(Point), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DownKey`, `LeftKey`, and `RightKey` are never constructed [INFO] [stdout] --> src/enums.rs:24:2 [INFO] [stdout] | [INFO] [stdout] 22 | enum Keys { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 23 | UpKey(String), [INFO] [stdout] 24 | DownKey(String), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 25 | LeftKey(String), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 26 | RightKey(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Keys` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `play_with_files` is never used [INFO] [stdout] --> src/error_handling.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn play_with_files() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `play_with_files_2` is never used [INFO] [stdout] --> src/error_handling.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn play_with_files_2() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exit` is never used [INFO] [stdout] --> src/error_handling.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn exit(x: Option) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `p` is never used [INFO] [stdout] --> src/generics.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn p(x: T) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `x` is never read [INFO] [stdout] --> src/generics.rs:9:2 [INFO] [stdout] | [INFO] [stdout] 8 | struct Square { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 9 | x: T, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `A` is never constructed [INFO] [stdout] --> src/generics.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct A { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `item` is never used [INFO] [stdout] --> src/generics.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | impl A { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 17 | fn item(&self) -> &T { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `M` is never constructed [INFO] [stdout] --> src/generics.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct M { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pr` is never used [INFO] [stdout] --> src/lifetimes.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn pr<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `A` is never constructed [INFO] [stdout] --> src/lifetimes.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct A<'a, 'b> { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUM_TIMERS` is never used [INFO] [stdout] --> src/mpsc.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const NUM_TIMERS: usize = 24; // usize => architechture dependent => 32bit or 64bit [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `timer` is never used [INFO] [stdout] --> src/mpsc.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn timer(d: usize, tx: mpsc::Sender) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> src/mpsc.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Iterator` is never used [INFO] [stdout] --> src/my_iterators.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | trait Iterator { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MyOption` is never used [INFO] [stdout] --> src/options.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | enum MyOption { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Result` is never used [INFO] [stdout] --> src/result_enum.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | enum Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `B` is never constructed [INFO] [stdout] --> src/traits.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct B(u32); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/vectors.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | Float(f64), [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `GenericVector` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 4 | Float(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/vectors.rs:5:6 [INFO] [stdout] | [INFO] [stdout] 5 | Int(f64), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `GenericVector` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 5 | Int(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/enums.rs:10:2 [INFO] [stdout] | [INFO] [stdout] 9 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 10 | x: u32, [INFO] [stdout] | ^ [INFO] [stdout] 11 | y: u32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/vectors.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | Text(String), [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `GenericVector` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 6 | Text(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/enums.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | UP(Point), // tuple of point struct [INFO] [stdout] | -- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 15 | UP(()), // tuple of point struct [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/mutex_and_channel.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 8 | fn producer(tx: mpsc::SyncSender) -> thread::JoinHandle<()> { [INFO] [stdout] | --------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 9 | thread::spawn(move || { [INFO] [stdout] | ___________________^ [INFO] [stdout] 10 | | for i in 1..100 { [INFO] [stdout] 11 | | tx.send(i).unwrap(); [INFO] [stdout] 12 | | } [INFO] [stdout] 13 | | }) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DOWN`, `LEFT`, and `RIGHT` are never constructed [INFO] [stdout] --> src/enums.rs:16:2 [INFO] [stdout] | [INFO] [stdout] 14 | enum Direction { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 15 | UP(Point), // tuple of point struct [INFO] [stdout] 16 | DOWN(Point), [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | LEFT(Point), [INFO] [stdout] | ^^^^ [INFO] [stdout] 18 | RIGHT(Point), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DownKey`, `LeftKey`, and `RightKey` are never constructed [INFO] [stdout] --> src/enums.rs:24:2 [INFO] [stdout] | [INFO] [stdout] 22 | enum Keys { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 23 | UpKey(String), [INFO] [stdout] 24 | DownKey(String), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 25 | LeftKey(String), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 26 | RightKey(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Keys` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `play_with_files` is never used [INFO] [stdout] --> src/error_handling.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn play_with_files() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `play_with_files_2` is never used [INFO] [stdout] --> src/error_handling.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn play_with_files_2() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exit` is never used [INFO] [stdout] --> src/error_handling.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn exit(x: Option) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `p` is never used [INFO] [stdout] --> src/generics.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn p(x: T) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `x` is never read [INFO] [stdout] --> src/generics.rs:9:2 [INFO] [stdout] | [INFO] [stdout] 8 | struct Square { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 9 | x: T, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `A` is never constructed [INFO] [stdout] --> src/generics.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct A { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `item` is never used [INFO] [stdout] --> src/generics.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | impl A { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 17 | fn item(&self) -> &T { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `M` is never constructed [INFO] [stdout] --> src/generics.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct M { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pr` is never used [INFO] [stdout] --> src/lifetimes.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn pr<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `A` is never constructed [INFO] [stdout] --> src/lifetimes.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct A<'a, 'b> { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUM_TIMERS` is never used [INFO] [stdout] --> src/mpsc.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const NUM_TIMERS: usize = 24; // usize => architechture dependent => 32bit or 64bit [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `timer` is never used [INFO] [stdout] --> src/mpsc.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn timer(d: usize, tx: mpsc::Sender) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> src/mpsc.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Iterator` is never used [INFO] [stdout] --> src/my_iterators.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | trait Iterator { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MyOption` is never used [INFO] [stdout] --> src/options.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | enum MyOption { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Result` is never used [INFO] [stdout] --> src/result_enum.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | enum Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `B` is never constructed [INFO] [stdout] --> src/traits.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct B(u32); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/vectors.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | Float(f64), [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `GenericVector` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 4 | Float(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/vectors.rs:5:6 [INFO] [stdout] | [INFO] [stdout] 5 | Int(f64), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `GenericVector` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 5 | Int(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/vectors.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | Text(String), [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `GenericVector` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 6 | Text(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/mutex_and_channel.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 8 | fn producer(tx: mpsc::SyncSender) -> thread::JoinHandle<()> { [INFO] [stdout] | --------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 9 | thread::spawn(move || { [INFO] [stdout] | ___________________^ [INFO] [stdout] 10 | | for i in 1..100 { [INFO] [stdout] 11 | | tx.send(i).unwrap(); [INFO] [stdout] 12 | | } [INFO] [stdout] 13 | | }) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `Rust` (bin "Rust" test) due to 2 previous errors; 32 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `Rust` (bin "Rust") due to 2 previous errors; 32 warnings emitted [INFO] running `Command { std: "docker" "inspect" "75e1661423d2ff95aa3e1589738205aad8ab63f1ba313592947fff8359aca05c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "75e1661423d2ff95aa3e1589738205aad8ab63f1ba313592947fff8359aca05c", kill_on_drop: false }` [INFO] [stdout] 75e1661423d2ff95aa3e1589738205aad8ab63f1ba313592947fff8359aca05c