[INFO] cloning repository https://github.com/thruc/rust-practic [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/thruc/rust-practic" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthruc%2Frust-practic", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthruc%2Frust-practic'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6bf87293f6791c7e8df61e7e99fb07e558c9a3bd [INFO] checking thruc/rust-practic against try#fafe42c59556a4233f03dd0d900b575a9afeece8 for pr-143764 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthruc%2Frust-practic" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/thruc/rust-practic [INFO] finished tweaking git repo https://github.com/thruc/rust-practic [INFO] tweaked toml for git repo https://github.com/thruc/rust-practic written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/thruc/rust-practic on toolchain fafe42c59556a4233f03dd0d900b575a9afeece8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fafe42c59556a4233f03dd0d900b575a9afeece8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/thruc/rust-practic 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" "+fafe42c59556a4233f03dd0d900b575a9afeece8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+fafe42c59556a4233f03dd0d900b575a9afeece8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 07ea9e5906a2e2c7bae059eac27bfd3c55195b2579de79ceaa3547aed3484bea [INFO] running `Command { std: "docker" "start" "-a" "07ea9e5906a2e2c7bae059eac27bfd3c55195b2579de79ceaa3547aed3484bea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "07ea9e5906a2e2c7bae059eac27bfd3c55195b2579de79ceaa3547aed3484bea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "07ea9e5906a2e2c7bae059eac27bfd3c55195b2579de79ceaa3547aed3484bea", kill_on_drop: false }` [INFO] [stdout] 07ea9e5906a2e2c7bae059eac27bfd3c55195b2579de79ceaa3547aed3484bea [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+fafe42c59556a4233f03dd0d900b575a9afeece8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 45bec24ba42259d460c267867d9b5ad34451e59a4b3be1ffd2e24cd981776385 [INFO] running `Command { std: "docker" "start" "-a" "45bec24ba42259d460c267867d9b5ad34451e59a4b3be1ffd2e24cd981776385", kill_on_drop: false }` [INFO] [stderr] Checking rust-practic v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `p1` [INFO] [stdout] --> src/generics.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let p1 = Point { x: 1, y: 2 }; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_p1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p2` [INFO] [stdout] --> src/generics.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let p2 = Point { x: 1.0, y: 2.0 }; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_p2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p1` [INFO] [stdout] --> src/generics.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let p1 = Point { x: 1, y: 2 }; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_p1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p2` [INFO] [stdout] --> src/generics.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let p2 = Point { x: 1.0, y: 2.0 }; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_p2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user1` [INFO] [stdout] --> src/structs.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let user1 = User { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_user1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user1` [INFO] [stdout] --> src/structs.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let user1 = User { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_user1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/generics.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 2 | x: T, [INFO] [stdout] | ^ [INFO] [stdout] 3 | y: T, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `largest_i32` is never used [INFO] [stdout] --> src/generics.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn largest_i32(list: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dummy3` is never used [INFO] [stdout] --> src/lifetime.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn dummy3() -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/stack_heap.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | Node(i32, Box), [INFO] [stdout] | ---- ^^^ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 2 - Node(i32, Box), [INFO] [stdout] 2 + Node((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `username`, `sign_in_count`, and `active` are never read [INFO] [stdout] --> src/structs.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 3 | username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 4 | email: String, [INFO] [stdout] 5 | sign_in_count: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 6 | active: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` 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 `headline`, `location`, `author`, and `content` are never read [INFO] [stdout] --> src/traits.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | struct NewsArticle { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 27 | headline: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 28 | location: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 29 | author: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 30 | content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `reply` and `retweet` are never read [INFO] [stdout] --> src/traits.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 38 | struct Tweet { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 41 | reply: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 42 | retweet: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/unit_test.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `compare_area` is never used [INFO] [stdout] --> src/unit_test.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | impl Rectangle { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 6 | fn compare_area(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `double_value` is never used [INFO] [stdout] --> src/unit_test.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn double_value(a: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `greeting` is never used [INFO] [stdout] --> src/unit_test.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn greeting(name: &str) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/generics.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 2 | x: T, [INFO] [stdout] | ^ [INFO] [stdout] 3 | y: T, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `largest_i32` is never used [INFO] [stdout] --> src/generics.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn largest_i32(list: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dummy3` is never used [INFO] [stdout] --> src/lifetime.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn dummy3() -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/stack_heap.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | Node(i32, Box), [INFO] [stdout] | ---- ^^^ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 2 - Node(i32, Box), [INFO] [stdout] 2 + Node((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `username`, `sign_in_count`, and `active` are never read [INFO] [stdout] --> src/structs.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 3 | username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 4 | email: String, [INFO] [stdout] 5 | sign_in_count: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 6 | active: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` 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 `headline`, `location`, `author`, and `content` are never read [INFO] [stdout] --> src/traits.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | struct NewsArticle { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 27 | headline: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 28 | location: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 29 | author: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 30 | content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `reply` and `retweet` are never read [INFO] [stdout] --> src/traits.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 38 | struct Tweet { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 41 | reply: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 42 | retweet: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.16s [INFO] running `Command { std: "docker" "inspect" "45bec24ba42259d460c267867d9b5ad34451e59a4b3be1ffd2e24cd981776385", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "45bec24ba42259d460c267867d9b5ad34451e59a4b3be1ffd2e24cd981776385", kill_on_drop: false }` [INFO] [stdout] 45bec24ba42259d460c267867d9b5ad34451e59a4b3be1ffd2e24cd981776385