[INFO] cloning repository https://github.com/ryo2357/practice-rust-desin-pattern [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ryo2357/practice-rust-desin-pattern" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fryo2357%2Fpractice-rust-desin-pattern", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fryo2357%2Fpractice-rust-desin-pattern'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4e8f86ccfeae7c43ab72fa282462f3c40af56527 [INFO] checking ryo2357/practice-rust-desin-pattern against master#c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3 for pr-141352 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fryo2357%2Fpractice-rust-desin-pattern" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ryo2357/practice-rust-desin-pattern on toolchain c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ryo2357/practice-rust-desin-pattern [INFO] finished tweaking git repo https://github.com/ryo2357/practice-rust-desin-pattern [INFO] tweaked toml for git repo https://github.com/ryo2357/practice-rust-desin-pattern written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ryo2357/practice-rust-desin-pattern 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" "+c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5e0b8c6ccf1e1909879f0b129fe9103818d27ea8a6e614f917074cfd125f3b59 [INFO] running `Command { std: "docker" "start" "-a" "5e0b8c6ccf1e1909879f0b129fe9103818d27ea8a6e614f917074cfd125f3b59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5e0b8c6ccf1e1909879f0b129fe9103818d27ea8a6e614f917074cfd125f3b59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5e0b8c6ccf1e1909879f0b129fe9103818d27ea8a6e614f917074cfd125f3b59", kill_on_drop: false }` [INFO] [stdout] 5e0b8c6ccf1e1909879f0b129fe9103818d27ea8a6e614f917074cfd125f3b59 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8af45e3a593ede34d9f6d4d51374d5d99cd871ef1ffcf55f66b1f789165527bc [INFO] running `Command { std: "docker" "start" "-a" "8af45e3a593ede34d9f6d4d51374d5d99cd871ef1ffcf55f66b1f789165527bc", kill_on_drop: false }` [INFO] [stderr] Checking strategy v0.1.0 (/opt/rustwide/workdir/strategy) [INFO] [stderr] Checking template_method v0.1.0 (/opt/rustwide/workdir/template_method) [INFO] [stderr] Checking command v0.1.0 (/opt/rustwide/workdir/command) [INFO] [stderr] Checking design_pattern_practice v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking state v0.1.0 (/opt/rustwide/workdir/state) [INFO] [stdout] warning: trait `Command` is never used [INFO] [stdout] --> command/src/before.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | trait Command { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Invoker` is never constructed [INFO] [stdout] --> command/src/before.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Invoker<'a,T:'a> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `target`, `append_command`, `execute_command`, `execute_all_commands`, and `undo` are never used [INFO] [stdout] --> command/src/before.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 15 | impl<'a, T> Invoker<'a, T> { [INFO] [stdout] | -------------------------- associated items in this implementation [INFO] [stdout] 16 | fn new(t: &'a mut T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn target(&self) -> &T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn append_command + 'a>(&mut self, c: U) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn execute_command(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | fn execute_all_commands(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | fn undo(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Robot` is never constructed [INFO] [stdout] --> command/src/before.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | struct Robot { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `move_forward`, `set_direction`, and `get_direction` are never used [INFO] [stdout] --> command/src/before.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 74 | impl Robot { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 75 | fn new() -> Robot { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | fn move_forward(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | fn set_direction(&mut self, d: (i32, i32)) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | fn get_direction(&self) -> (i32, i32) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CommandMoveForward` is never constructed [INFO] [stdout] --> command/src/before.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | struct CommandMoveForward; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CommandTurnRight` is never constructed [INFO] [stdout] --> command/src/before.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 117 | struct CommandTurnRight; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CommandTurnLeft` is never constructed [INFO] [stdout] --> command/src/before.rs:131:8 [INFO] [stdout] | [INFO] [stdout] 131 | struct CommandTurnLeft; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Command` is never used [INFO] [stdout] --> command/src/after.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | trait Command { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Invoker` is never constructed [INFO] [stdout] --> command/src/after.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct Invoker<'a, Cmd, T: 'a> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `target`, and `append_command` are never used [INFO] [stdout] --> command/src/after.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 21 | impl<'a, Cmd, T> Invoker<'a, Cmd, T> { [INFO] [stdout] | ------------------------------------ associated items in this implementation [INFO] [stdout] 22 | fn new(t: &'a mut T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | fn target(&self) -> &T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | fn append_command(&mut self, c: Cmd) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `execute_command`, `execute_all_commands`, and `undo` are never used [INFO] [stdout] --> command/src/after.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 40 | / impl<'a, Cmd, T> Invoker<'a, Cmd, T> [INFO] [stdout] 41 | | where Cmd: Command [INFO] [stdout] | |_________________________- methods in this implementation [INFO] [stdout] 42 | { [INFO] [stdout] 43 | fn execute_command(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn execute_all_commands(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | fn undo(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Robot` is never constructed [INFO] [stdout] --> command/src/after.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | struct Robot { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `move_forward`, `set_direction`, and `get_direction` are never used [INFO] [stdout] --> command/src/after.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 95 | impl Robot { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 96 | fn new() -> Robot { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | fn move_forward(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | fn set_direction(&mut self, d: (i32, i32)) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | fn get_direction(&self) -> (i32, i32) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RoboCommand` is never used [INFO] [stdout] --> command/src/after.rs:122:6 [INFO] [stdout] | [INFO] [stdout] 122 | enum RoboCommand { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.57s [INFO] running `Command { std: "docker" "inspect" "8af45e3a593ede34d9f6d4d51374d5d99cd871ef1ffcf55f66b1f789165527bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8af45e3a593ede34d9f6d4d51374d5d99cd871ef1ffcf55f66b1f789165527bc", kill_on_drop: false }` [INFO] [stdout] 8af45e3a593ede34d9f6d4d51374d5d99cd871ef1ffcf55f66b1f789165527bc