[INFO] cloning repository https://github.com/ericrasmussen/rustexercises [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ericrasmussen/rustexercises" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fericrasmussen%2Frustexercises", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fericrasmussen%2Frustexercises'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5e533dbe992107a927feecdbee16fdfe299fc53f [INFO] checking ericrasmussen/rustexercises against try#3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f for pr-87248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fericrasmussen%2Frustexercises" "/workspace/builds/worker-10/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-10/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ericrasmussen/rustexercises on toolchain 3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-10/source/rust-toolchain [INFO] started tweaking git repo https://github.com/ericrasmussen/rustexercises [INFO] finished tweaking git repo https://github.com/ericrasmussen/rustexercises [INFO] tweaked toml for git repo https://github.com/ericrasmussen/rustexercises written to /workspace/builds/worker-10/source/Cargo.toml [INFO] crate git repo https://github.com/ericrasmussen/rustexercises already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rand_core v0.5.0 [INFO] [stderr] Downloaded c2-chacha v0.2.2 [INFO] [stderr] Downloaded getrandom v0.1.10 [INFO] [stderr] Downloaded ppv-lite86 v0.2.5 [INFO] [stderr] Downloaded rand v0.7.0 [INFO] [stderr] Downloaded simple-error v0.2.0 [INFO] [stderr] Downloaded wasi v0.5.0 [INFO] [stderr] Downloaded libc v0.2.62 [INFO] [stderr] Downloaded test_bin v0.2.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 01cb8f22f8510155d85f73263006baa1f437f4d8586a236102ba154ad9e427b2 [INFO] running `Command { std: "docker" "start" "-a" "01cb8f22f8510155d85f73263006baa1f437f4d8586a236102ba154ad9e427b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "01cb8f22f8510155d85f73263006baa1f437f4d8586a236102ba154ad9e427b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "01cb8f22f8510155d85f73263006baa1f437f4d8586a236102ba154ad9e427b2", kill_on_drop: false }` [INFO] [stdout] 01cb8f22f8510155d85f73263006baa1f437f4d8586a236102ba154ad9e427b2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] da7c5d4d81fba2e49a0051e65e9f982144cf5512489e4c82198aebf30228a5bf [INFO] running `Command { std: "docker" "start" "-a" "da7c5d4d81fba2e49a0051e65e9f982144cf5512489e4c82198aebf30228a5bf", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.62 [INFO] [stderr] Compiling autocfg v0.1.4 [INFO] [stderr] Compiling getrandom v0.1.10 [INFO] [stderr] Checking cfg-if v0.1.9 [INFO] [stderr] Checking ppv-lite86 v0.2.5 [INFO] [stderr] Checking simple-error v0.2.0 [INFO] [stderr] Checking test_bin v0.2.0 [INFO] [stderr] Checking problem5 v0.1.0 (/opt/rustwide/workdir/problems/problem5) [INFO] [stderr] Checking problem2 v0.1.0 (/opt/rustwide/workdir/problems/problem2) [INFO] [stderr] Checking exercises v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking problem7 v0.1.0 (/opt/rustwide/workdir/problems/problem7) [INFO] [stderr] Checking problem1 v0.1.0 (/opt/rustwide/workdir/problems/problem1) [INFO] [stderr] Checking problem4 v0.1.0 (/opt/rustwide/workdir/problems/problem4) [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> problems/problem4/src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `elems` [INFO] [stdout] --> problems/problem4/src/lib.rs:15:24 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn make_flower_box(elems: Vec<&str>) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_elems` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> problems/problem4/src/lib.rs:32:20 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn format_line(s: &str, max_length: usize) -> String { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_length` [INFO] [stdout] --> problems/problem4/src/lib.rs:32:29 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn format_line(s: &str, max_length: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> problems/problem4/src/lib.rs:46:22 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn format_border(s: &str, length: usize) -> String { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length` [INFO] [stdout] --> problems/problem4/src/lib.rs:46:31 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn format_border(s: &str, length: usize) -> String { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `elems` [INFO] [stdout] --> problems/problem4/src/lib.rs:58:28 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn get_max_line_length(elems: &Vec<&str>) -> usize { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_elems` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> problems/problem4/src/lib.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let mut flower_box = String::new(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> problems/problem5/src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> problems/problem5/src/lib.rs:29:22 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn new () -> Self {} [INFO] [stdout] | --- ^^^^ expected struct `Mortgage`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `problem5` due to 2 previous errors; 1 warning emitted [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> problems/problem2/src/lib.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn sum_one_to_n(n: u32) -> u32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> problems/problem2/src/lib.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn sum_one_to_n(n: u32) -> u32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `elems` [INFO] [stdout] --> problems/problem1/src/lib.rs:1:29 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn find_largest_element(elems: &Vec) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_elems` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> problems/problem5/src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> problems/problem7/src/lib.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn singleton(x: i64) -> Set { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> problems/problem7/src/lib.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn contains(s: &Set, x: i64) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s1` [INFO] [stdout] --> problems/problem7/src/lib.rs:16:14 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn union(s1: Set, s2: Set) -> Set { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> problems/problem7/src/lib.rs:16:23 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn union(s1: Set, s2: Set) -> Set { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s1` [INFO] [stdout] --> problems/problem7/src/lib.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn intersect(s1: Set, s2: Set) -> Set { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> problems/problem7/src/lib.rs:21:27 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn intersect(s1: Set, s2: Set) -> Set { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s1` [INFO] [stdout] --> problems/problem7/src/lib.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn diff(s1: Set, s2: Set) -> Set { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> problems/problem7/src/lib.rs:26:22 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn diff(s1: Set, s2: Set) -> Set { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> problems/problem7/src/lib.rs:31:15 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn filter(s: Set, p: fn(i64) -> bool) -> Set { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> problems/problem7/src/lib.rs:31:23 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn filter(s: Set, p: fn(i64) -> bool) -> Set { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> problems/problem7/src/lib.rs:37:15 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn forall(s: Set, p: Box bool>) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> problems/problem7/src/lib.rs:37:23 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn forall(s: Set, p: Box bool>) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> problems/problem7/src/lib.rs:43:15 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn exists(s: Set, p: Box bool>) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> problems/problem7/src/lib.rs:43:23 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn exists(s: Set, p: Box bool>) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> problems/problem7/src/lib.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn map(s: Set, f: fn(i64) -> i64) -> Set { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> problems/problem7/src/lib.rs:49:20 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn map(s: Set, f: fn(i64) -> i64) -> Set { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> problems/problem5/src/lib.rs:29:22 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn new () -> Self {} [INFO] [stdout] | --- ^^^^ expected struct `Mortgage`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> problems/problem7/src/lib.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn singleton(x: i64) -> Set { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `elems` [INFO] [stdout] --> problems/problem1/src/lib.rs:1:29 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn find_largest_element(elems: &Vec) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_elems` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> problems/problem7/src/lib.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn contains(s: &Set, x: i64) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s1` [INFO] [stdout] --> problems/problem7/src/lib.rs:16:14 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn union(s1: Set, s2: Set) -> Set { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> problems/problem7/src/lib.rs:16:23 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn union(s1: Set, s2: Set) -> Set { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s1` [INFO] [stdout] --> problems/problem7/src/lib.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn intersect(s1: Set, s2: Set) -> Set { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> problems/problem7/src/lib.rs:21:27 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn intersect(s1: Set, s2: Set) -> Set { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s1` [INFO] [stdout] --> problems/problem7/src/lib.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn diff(s1: Set, s2: Set) -> Set { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> problems/problem7/src/lib.rs:26:22 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn diff(s1: Set, s2: Set) -> Set { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> problems/problem7/src/lib.rs:31:15 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn filter(s: Set, p: fn(i64) -> bool) -> Set { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> problems/problem7/src/lib.rs:31:23 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn filter(s: Set, p: fn(i64) -> bool) -> Set { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> problems/problem7/src/lib.rs:37:15 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn forall(s: Set, p: Box bool>) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> problems/problem7/src/lib.rs:37:23 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn forall(s: Set, p: Box bool>) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> problems/problem7/src/lib.rs:43:15 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn exists(s: Set, p: Box bool>) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> problems/problem7/src/lib.rs:43:23 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn exists(s: Set, p: Box bool>) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> problems/problem7/src/lib.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn map(s: Set, f: fn(i64) -> i64) -> Set { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> problems/problem7/src/lib.rs:49:20 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn map(s: Set, f: fn(i64) -> i64) -> Set { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> problems/problem4/src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `elems` [INFO] [stdout] --> problems/problem4/src/lib.rs:15:24 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn make_flower_box(elems: Vec<&str>) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_elems` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> problems/problem4/src/lib.rs:32:20 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn format_line(s: &str, max_length: usize) -> String { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_length` [INFO] [stdout] --> problems/problem4/src/lib.rs:32:29 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn format_line(s: &str, max_length: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> problems/problem4/src/lib.rs:46:22 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn format_border(s: &str, length: usize) -> String { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length` [INFO] [stdout] --> problems/problem4/src/lib.rs:46:31 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn format_border(s: &str, length: usize) -> String { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `elems` [INFO] [stdout] --> problems/problem4/src/lib.rs:58:28 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn get_max_line_length(elems: &Vec<&str>) -> usize { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_elems` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> problems/problem4/src/lib.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let mut flower_box = String::new(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "da7c5d4d81fba2e49a0051e65e9f982144cf5512489e4c82198aebf30228a5bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "da7c5d4d81fba2e49a0051e65e9f982144cf5512489e4c82198aebf30228a5bf", kill_on_drop: false }` [INFO] [stdout] da7c5d4d81fba2e49a0051e65e9f982144cf5512489e4c82198aebf30228a5bf