[INFO] cloning repository https://github.com/CMU-Blockchain-Group/rust-workshop-0 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/CMU-Blockchain-Group/rust-workshop-0" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCMU-Blockchain-Group%2Frust-workshop-0", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCMU-Blockchain-Group%2Frust-workshop-0'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 88e8e82df47bb6e2955ab850f906248baad9c8fe [INFO] checking CMU-Blockchain-Group/rust-workshop-0 against try#cac44d9528e3bbbdaa1537d187bd489ccc5de18c for pr-91141 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCMU-Blockchain-Group%2Frust-workshop-0" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/CMU-Blockchain-Group/rust-workshop-0 on toolchain cac44d9528e3bbbdaa1537d187bd489ccc5de18c [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+cac44d9528e3bbbdaa1537d187bd489ccc5de18c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/CMU-Blockchain-Group/rust-workshop-0 [INFO] finished tweaking git repo https://github.com/CMU-Blockchain-Group/rust-workshop-0 [INFO] tweaked toml for git repo https://github.com/CMU-Blockchain-Group/rust-workshop-0 written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/CMU-Blockchain-Group/rust-workshop-0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+cac44d9528e3bbbdaa1537d187bd489ccc5de18c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+cac44d9528e3bbbdaa1537d187bd489ccc5de18c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fe2c915a8c8d8fd9d682c19b48cbaa5ef14766588343f1a37487e053b21ad063 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "fe2c915a8c8d8fd9d682c19b48cbaa5ef14766588343f1a37487e053b21ad063", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fe2c915a8c8d8fd9d682c19b48cbaa5ef14766588343f1a37487e053b21ad063", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fe2c915a8c8d8fd9d682c19b48cbaa5ef14766588343f1a37487e053b21ad063", kill_on_drop: false }` [INFO] [stdout] fe2c915a8c8d8fd9d682c19b48cbaa5ef14766588343f1a37487e053b21ad063 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+cac44d9528e3bbbdaa1537d187bd489ccc5de18c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e3c8dcd4fb959fa9153af5381e5f8889ddc024869c23b975480ac1c31c6374d4 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "e3c8dcd4fb959fa9153af5381e5f8889ddc024869c23b975480ac1c31c6374d4", kill_on_drop: false }` [INFO] [stderr] Checking rust-workshop-0 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/main.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let buf = string_to_mine.as_bytes(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/exercises.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | fn swap_two_ints(a: &mut i32, b: &mut i32) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/exercises.rs:3:31 [INFO] [stdout] | [INFO] [stdout] 3 | fn swap_two_ints(a: &mut i32, b: &mut i32) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/exercises.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 14 | fn rect_overlaps(a: &Rectangle, b: &Rectangle) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/exercises.rs:14:33 [INFO] [stdout] | [INFO] [stdout] 14 | fn rect_overlaps(a: &Rectangle, b: &Rectangle) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `play` [INFO] [stdout] --> src/exercises.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | fn rps_weakness(play: RockPaperScissors) -> RockPaperScissors { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_play` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/exercises.rs:34:16 [INFO] [stdout] | [INFO] [stdout] 34 | fn dot_product(a: &[i32], b: &[i32]) -> i32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/exercises.rs:34:27 [INFO] [stdout] | [INFO] [stdout] 34 | fn dot_product(a: &[i32], b: &[i32]) -> i32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/exercises.rs:40:16 [INFO] [stdout] | [INFO] [stdout] 40 | fn first_n_fib(n: usize) -> Vec { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/exercises.rs:48:28 [INFO] [stdout] | [INFO] [stdout] 48 | fn recursive_binary_search(a: &[i32]) -> Option { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `strs` [INFO] [stdout] --> src/exercises.rs:55:28 [INFO] [stdout] | [INFO] [stdout] 55 | fn flatten_slice_of_slices(strs: &[&[&str]]) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_strs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Rectangle` [INFO] [stdout] --> src/exercises.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `rect_overlaps` [INFO] [stdout] --> src/exercises.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn rect_overlaps(a: &Rectangle, b: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `RockPaperScissors` [INFO] [stdout] --> src/exercises.rs:19:6 [INFO] [stdout] | [INFO] [stdout] 19 | enum RockPaperScissors { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `rps_weakness` [INFO] [stdout] --> src/exercises.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn rps_weakness(play: RockPaperScissors) -> RockPaperScissors { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dot_product` [INFO] [stdout] --> src/exercises.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn dot_product(a: &[i32], b: &[i32]) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `first_n_fib` [INFO] [stdout] --> src/exercises.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn first_n_fib(n: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `recursive_binary_search` [INFO] [stdout] --> src/exercises.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn recursive_binary_search(a: &[i32]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `flatten_slice_of_slices` [INFO] [stdout] --> src/exercises.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn flatten_slice_of_slices(strs: &[&[&str]]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DIFFICULTY` [INFO] [stdout] --> src/main.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | const DIFFICULTY: usize = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/main.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let buf = string_to_mine.as_bytes(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/exercises.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | fn swap_two_ints(a: &mut i32, b: &mut i32) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/exercises.rs:3:31 [INFO] [stdout] | [INFO] [stdout] 3 | fn swap_two_ints(a: &mut i32, b: &mut i32) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/exercises.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 14 | fn rect_overlaps(a: &Rectangle, b: &Rectangle) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/exercises.rs:14:33 [INFO] [stdout] | [INFO] [stdout] 14 | fn rect_overlaps(a: &Rectangle, b: &Rectangle) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `play` [INFO] [stdout] --> src/exercises.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | fn rps_weakness(play: RockPaperScissors) -> RockPaperScissors { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_play` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/exercises.rs:34:16 [INFO] [stdout] | [INFO] [stdout] 34 | fn dot_product(a: &[i32], b: &[i32]) -> i32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/exercises.rs:34:27 [INFO] [stdout] | [INFO] [stdout] 34 | fn dot_product(a: &[i32], b: &[i32]) -> i32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/exercises.rs:40:16 [INFO] [stdout] | [INFO] [stdout] 40 | fn first_n_fib(n: usize) -> Vec { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/exercises.rs:48:28 [INFO] [stdout] | [INFO] [stdout] 48 | fn recursive_binary_search(a: &[i32]) -> Option { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `strs` [INFO] [stdout] --> src/exercises.rs:55:28 [INFO] [stdout] | [INFO] [stdout] 55 | fn flatten_slice_of_slices(strs: &[&[&str]]) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_strs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `swap_two_ints` [INFO] [stdout] --> src/exercises.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn swap_two_ints(a: &mut i32, b: &mut i32) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Rectangle` [INFO] [stdout] --> src/exercises.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `rect_overlaps` [INFO] [stdout] --> src/exercises.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn rect_overlaps(a: &Rectangle, b: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `RockPaperScissors` [INFO] [stdout] --> src/exercises.rs:19:6 [INFO] [stdout] | [INFO] [stdout] 19 | enum RockPaperScissors { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `rps_weakness` [INFO] [stdout] --> src/exercises.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn rps_weakness(play: RockPaperScissors) -> RockPaperScissors { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dot_product` [INFO] [stdout] --> src/exercises.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn dot_product(a: &[i32], b: &[i32]) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `first_n_fib` [INFO] [stdout] --> src/exercises.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn first_n_fib(n: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `recursive_binary_search` [INFO] [stdout] --> src/exercises.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn recursive_binary_search(a: &[i32]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `flatten_slice_of_slices` [INFO] [stdout] --> src/exercises.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn flatten_slice_of_slices(strs: &[&[&str]]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DIFFICULTY` [INFO] [stdout] --> src/main.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | const DIFFICULTY: usize = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.28s [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "e3c8dcd4fb959fa9153af5381e5f8889ddc024869c23b975480ac1c31c6374d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e3c8dcd4fb959fa9153af5381e5f8889ddc024869c23b975480ac1c31c6374d4", kill_on_drop: false }` [INFO] [stdout] e3c8dcd4fb959fa9153af5381e5f8889ddc024869c23b975480ac1c31c6374d4