[INFO] cloning repository https://github.com/dayo05/study-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dayo05/study-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdayo05%2Fstudy-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdayo05%2Fstudy-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3e0bcf5cb398f38509f6df56ada1425783debb2d [INFO] checking dayo05/study-rs against try#9b8307bcb9d1de8ffc7e1c81c48efffdb24ee840 for pr-149518 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdayo05%2Fstudy-rs" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/dayo05/study-rs [INFO] finished tweaking git repo https://github.com/dayo05/study-rs [INFO] tweaked toml for git repo https://github.com/dayo05/study-rs written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/dayo05/study-rs on toolchain 9b8307bcb9d1de8ffc7e1c81c48efffdb24ee840 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9b8307bcb9d1de8ffc7e1c81c48efffdb24ee840" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/dayo05/study-rs 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" "+9b8307bcb9d1de8ffc7e1c81c48efffdb24ee840" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+9b8307bcb9d1de8ffc7e1c81c48efffdb24ee840" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0a580d143c3969e1a0bb662404a8f0eb9ddcdbb06d17ffb6fdb399f583e0a5c5 [INFO] running `Command { std: "docker" "start" "-a" "0a580d143c3969e1a0bb662404a8f0eb9ddcdbb06d17ffb6fdb399f583e0a5c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0a580d143c3969e1a0bb662404a8f0eb9ddcdbb06d17ffb6fdb399f583e0a5c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0a580d143c3969e1a0bb662404a8f0eb9ddcdbb06d17ffb6fdb399f583e0a5c5", kill_on_drop: false }` [INFO] [stdout] 0a580d143c3969e1a0bb662404a8f0eb9ddcdbb06d17ffb6fdb399f583e0a5c5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+9b8307bcb9d1de8ffc7e1c81c48efffdb24ee840" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ca23ee8b30a108378d021e2e54c2e3c99e397bdec5bc40d504e7677772bddc9d [INFO] running `Command { std: "docker" "start" "-a" "ca23ee8b30a108378d021e2e54c2e3c99e397bdec5bc40d504e7677772bddc9d", kill_on_drop: false }` [INFO] [stderr] Checking study-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day2/eval.rs:46:16 [INFO] [stdout] | [INFO] [stdout] 46 | if (right_calc == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 46 - if (right_calc == 0) { [INFO] [stdout] 46 + if right_calc == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day2/eval.rs:46:16 [INFO] [stdout] | [INFO] [stdout] 46 | if (right_calc == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 46 - if (right_calc == 0) { [INFO] [stdout] 46 + if right_calc == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/day1/elevator.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | Arrived(i32), [INFO] [stdout] | ------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Event` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [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] 3 - Arrived(i32), [INFO] [stdout] 3 + Arrived(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/day1/elevator.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | DoorUpdate(bool), [INFO] [stdout] | ---------- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Event` 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 - DoorUpdate(bool), [INFO] [stdout] 4 + DoorUpdate(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/day1/elevator.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | PressFloorButton(i32), [INFO] [stdout] | ---------------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Event` 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 - PressFloorButton(i32), [INFO] [stdout] 5 + PressFloorButton(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/day1/elevator.rs:6:26 [INFO] [stdout] | [INFO] [stdout] 6 | PressDirectionButton(i32, Direction), [INFO] [stdout] | -------------------- ^^^ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Event` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 6 - PressDirectionButton(i32, Direction), [INFO] [stdout] 6 + PressDirectionButton((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Down` is never constructed [INFO] [stdout] --> src/day1/elevator.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Direction { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 11 | Up, [INFO] [stdout] 12 | Down, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Direction` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Operation` is never used [INFO] [stdout] --> src/day2/eval.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Operation { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Expression` is never used [INFO] [stdout] --> src/day2/eval.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum Expression { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eval` is never used [INFO] [stdout] --> src/day2/eval.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn eval(e: Expression) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Logger` is never used [INFO] [stdout] --> src/day2/logging.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Logger { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StderrLogger` is never constructed [INFO] [stdout] --> src/day2/logging.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct StderrLogger; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VerbosityFilter` is never constructed [INFO] [stdout] --> src/day2/logging.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct VerbosityFilter { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/day2/logging.rs:22:19 [INFO] [stdout] | [INFO] [stdout] 21 | impl VerbosityFilter { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 22 | pub(crate) fn new(max_verbosity: u8, logger: Box) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StdoutLogger` is never constructed [INFO] [stdout] --> src/day2/logging.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct StdoutLogger; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `min` is never used [INFO] [stdout] --> src/day2/min.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn min(v1: T, v2: T) -> T { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Counter` is never constructed [INFO] [stdout] --> src/day2/counter.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Counter { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `count`, and `times_seen` are never used [INFO] [stdout] --> src/day2/counter.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Counter { [INFO] [stdout] | ----------------------------- associated items in this implementation [INFO] [stdout] 9 | /// 새 Counter를 만듭니다. [INFO] [stdout] 10 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn count(&mut self, value: T) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn times_seen(&self, value: T) -> u64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RotDecoder` is never constructed [INFO] [stdout] --> src/day2/rot13.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct RotDecoder { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/day1/elevator.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | Arrived(i32), [INFO] [stdout] | ------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Event` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [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] 3 - Arrived(i32), [INFO] [stdout] 3 + Arrived(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/day1/elevator.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | DoorUpdate(bool), [INFO] [stdout] | ---------- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Event` 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 - DoorUpdate(bool), [INFO] [stdout] 4 + DoorUpdate(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/day1/elevator.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | PressFloorButton(i32), [INFO] [stdout] | ---------------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Event` 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 - PressFloorButton(i32), [INFO] [stdout] 5 + PressFloorButton(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/day1/elevator.rs:6:26 [INFO] [stdout] | [INFO] [stdout] 6 | PressDirectionButton(i32, Direction), [INFO] [stdout] | -------------------- ^^^ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Event` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 6 - PressDirectionButton(i32, Direction), [INFO] [stdout] 6 + PressDirectionButton((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Down` is never constructed [INFO] [stdout] --> src/day1/elevator.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Direction { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 11 | Up, [INFO] [stdout] 12 | Down, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Direction` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StdoutLogger` is never constructed [INFO] [stdout] --> src/day2/logging.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct StdoutLogger; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `EvalTest` should have a snake case name [INFO] [stdout] --> src/day2.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | mod EvalTest { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `eval_test` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `LoggingTest` should have a snake case name [INFO] [stdout] --> src/day2.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | mod LoggingTest { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `logging_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `MinTest` should have a snake case name [INFO] [stdout] --> src/day2.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | mod MinTest { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `min_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `CounterTest` should have a snake case name [INFO] [stdout] --> src/day2.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | mod CounterTest { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `counter_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.10s [INFO] running `Command { std: "docker" "inspect" "ca23ee8b30a108378d021e2e54c2e3c99e397bdec5bc40d504e7677772bddc9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ca23ee8b30a108378d021e2e54c2e3c99e397bdec5bc40d504e7677772bddc9d", kill_on_drop: false }` [INFO] [stdout] ca23ee8b30a108378d021e2e54c2e3c99e397bdec5bc40d504e7677772bddc9d