[INFO] cloning repository https://github.com/sobersanta/hello-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sobersanta/hello-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsobersanta%2Fhello-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsobersanta%2Fhello-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b869da0928681b3e833519615cdad4cdfc11f377 [INFO] checking sobersanta/hello-rust against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsobersanta%2Fhello-rust" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sobersanta/hello-rust on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sobersanta/hello-rust [INFO] finished tweaking git repo https://github.com/sobersanta/hello-rust [INFO] tweaked toml for git repo https://github.com/sobersanta/hello-rust written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/sobersanta/hello-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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pin-project-internal v1.0.3 [INFO] [stderr] Downloaded pin-project v1.0.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e61101d06b8302b3459dae696926fc4bb2866a7901a6bb418d77a911a2832b6b [INFO] running `Command { std: "docker" "start" "-a" "e61101d06b8302b3459dae696926fc4bb2866a7901a6bb418d77a911a2832b6b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e61101d06b8302b3459dae696926fc4bb2866a7901a6bb418d77a911a2832b6b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e61101d06b8302b3459dae696926fc4bb2866a7901a6bb418d77a911a2832b6b", kill_on_drop: false }` [INFO] [stdout] e61101d06b8302b3459dae696926fc4bb2866a7901a6bb418d77a911a2832b6b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 876c23a1359a60602290eb2e44f634a4441349b138c586ef42696a07bc2ce979 [INFO] running `Command { std: "docker" "start" "-a" "876c23a1359a60602290eb2e44f634a4441349b138c586ef42696a07bc2ce979", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.58 [INFO] [stderr] Compiling proc-macro-nested v0.1.6 [INFO] [stderr] Checking futures-sink v0.3.8 [INFO] [stderr] Checking futures-core v0.3.8 [INFO] [stderr] Checking futures-io v0.3.8 [INFO] [stderr] Checking futures-task v0.3.8 [INFO] [stderr] Checking futures-channel v0.3.8 [INFO] [stderr] Compiling pin-project-internal v1.0.3 [INFO] [stderr] Compiling futures-macro v0.3.8 [INFO] [stderr] Checking pin-project v1.0.3 [INFO] [stderr] Checking futures-util v0.3.8 [INFO] [stderr] Checking futures-executor v0.3.8 [INFO] [stderr] Checking futures v0.3.8 [INFO] [stderr] Checking hello-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `Cacher` is never constructed [INFO] [stdout] --> src/exercises/cacher/mod.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Cacher [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `value` are never used [INFO] [stdout] --> src/exercises/cacher/mod.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 15 | / impl Cacher [INFO] [stdout] 16 | | where [INFO] [stdout] 17 | | T: Fn(&V) -> R, [INFO] [stdout] 18 | | V: Eq + Hash + Copy + Debug, [INFO] [stdout] 19 | | R: Debug [INFO] [stdout] | |________________- associated items in this implementation [INFO] [stdout] 20 | { [INFO] [stdout] 21 | fn new(calculation: T) -> Cacher { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn value(&mut self, arg: &V) -> &R { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/exercises/is_robot_bounded.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/exercises/is_robot_bounded.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `plus`, `rotate_90_cw`, and `rotate_90_ccw` are never used [INFO] [stdout] --> src/exercises/is_robot_bounded.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 33 | impl Point { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 34 | fn new(x: i32, y: i32) -> Point { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn plus(&mut self, other: &Point) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | fn rotate_90_cw(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | fn rotate_90_ccw(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NORTH` is never used [INFO] [stdout] --> src/exercises/is_robot_bounded.rs:58:7 [INFO] [stdout] | [INFO] [stdout] 58 | const NORTH: Point = Point { x: 0, y: 1 }; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ZERO` is never used [INFO] [stdout] --> src/exercises/is_robot_bounded.rs:59:7 [INFO] [stdout] | [INFO] [stdout] 59 | const ZERO: Point = Point { x: 0, y: 0 }; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_robot_bounded` is never used [INFO] [stdout] --> src/exercises/is_robot_bounded.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 61 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 62 | pub fn is_robot_bounded(instructions: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/exercises/increasing_subsequences.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `find_subsequences` is never used [INFO] [stdout] --> src/exercises/increasing_subsequences.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 7 | pub fn find_subsequences(nums: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `recur` is never used [INFO] [stdout] --> src/exercises/increasing_subsequences.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn recur(nums: &[i32], last: i32, accum: &mut Vec, results: &mut HashSet>) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `A` is never constructed [INFO] [stdout] --> src/exercises/borrow_xxx/mod.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct A { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_a_mut` is never used [INFO] [stdout] --> src/exercises/borrow_xxx/mod.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl A { [INFO] [stdout] | ------ method in this implementation [INFO] [stdout] 8 | fn get_a_mut(self: &mut A) -> &'_ mut String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `XXX` is never used [INFO] [stdout] --> src/exercises/borrow_xxx/mod.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | trait XXX { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `a` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/exercises/borrow_xxx/mod.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 35 | let y = &a.y; [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] 36 | a.get_a_mut().xxx(|| String::from(y)); [INFO] [stdout] | ^^^^^^^^^^^^^ - immutable borrow later captured here by closure [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `hello-rust` (lib test) due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "876c23a1359a60602290eb2e44f634a4441349b138c586ef42696a07bc2ce979", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "876c23a1359a60602290eb2e44f634a4441349b138c586ef42696a07bc2ce979", kill_on_drop: false }` [INFO] [stdout] 876c23a1359a60602290eb2e44f634a4441349b138c586ef42696a07bc2ce979 [INFO] checking sobersanta/hello-rust against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsobersanta%2Fhello-rust" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sobersanta/hello-rust on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sobersanta/hello-rust [INFO] finished tweaking git repo https://github.com/sobersanta/hello-rust [INFO] tweaked toml for git repo https://github.com/sobersanta/hello-rust written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/sobersanta/hello-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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 363e5ba682ecc8c7c00f82142a977a805362cd342096193925455cb191a47bf3 [INFO] running `Command { std: "docker" "start" "-a" "363e5ba682ecc8c7c00f82142a977a805362cd342096193925455cb191a47bf3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "363e5ba682ecc8c7c00f82142a977a805362cd342096193925455cb191a47bf3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "363e5ba682ecc8c7c00f82142a977a805362cd342096193925455cb191a47bf3", kill_on_drop: false }` [INFO] [stdout] 363e5ba682ecc8c7c00f82142a977a805362cd342096193925455cb191a47bf3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4d3f629966f6e16a12f6da3c3b0661acac4948cf797d90fc0948a3d36da3266e [INFO] running `Command { std: "docker" "start" "-a" "4d3f629966f6e16a12f6da3c3b0661acac4948cf797d90fc0948a3d36da3266e", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] skipping non-2021 edition `2018` [INFO] running `Command { std: "docker" "inspect" "4d3f629966f6e16a12f6da3c3b0661acac4948cf797d90fc0948a3d36da3266e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4d3f629966f6e16a12f6da3c3b0661acac4948cf797d90fc0948a3d36da3266e", kill_on_drop: false }` [INFO] [stdout] 4d3f629966f6e16a12f6da3c3b0661acac4948cf797d90fc0948a3d36da3266e