[INFO] cloning repository https://github.com/carlosgivisiez/algorithms_and_data_structure [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/carlosgivisiez/algorithms_and_data_structure" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcarlosgivisiez%2Falgorithms_and_data_structure", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcarlosgivisiez%2Falgorithms_and_data_structure'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9f0169e753d06bfca98737fd4809b504d2d5e354 [INFO] checking carlosgivisiez/algorithms_and_data_structure/9f0169e753d06bfca98737fd4809b504d2d5e354 against master#3cdcdaf31b45f8045164aae9604573d23091970b for pr-122267 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcarlosgivisiez%2Falgorithms_and_data_structure" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/carlosgivisiez/algorithms_and_data_structure on toolchain 3cdcdaf31b45f8045164aae9604573d23091970b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3cdcdaf31b45f8045164aae9604573d23091970b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/carlosgivisiez/algorithms_and_data_structure [INFO] finished tweaking git repo https://github.com/carlosgivisiez/algorithms_and_data_structure [INFO] tweaked toml for git repo https://github.com/carlosgivisiez/algorithms_and_data_structure written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/carlosgivisiez/algorithms_and_data_structure 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" "+3cdcdaf31b45f8045164aae9604573d23091970b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rand_seeder v0.2.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+3cdcdaf31b45f8045164aae9604573d23091970b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 87215fe8b271f4c048526b2e06d50ca4d0895ffc3a9b97a6cdc16bda267ce9c9 [INFO] running `Command { std: "docker" "start" "-a" "87215fe8b271f4c048526b2e06d50ca4d0895ffc3a9b97a6cdc16bda267ce9c9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "87215fe8b271f4c048526b2e06d50ca4d0895ffc3a9b97a6cdc16bda267ce9c9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "87215fe8b271f4c048526b2e06d50ca4d0895ffc3a9b97a6cdc16bda267ce9c9", kill_on_drop: false }` [INFO] [stdout] 87215fe8b271f4c048526b2e06d50ca4d0895ffc3a9b97a6cdc16bda267ce9c9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+3cdcdaf31b45f8045164aae9604573d23091970b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 93e2d081921f6a710fde4cb0980deb6cf5577017884b77dcea80e37f8eaa318a [INFO] running `Command { std: "docker" "start" "-a" "93e2d081921f6a710fde4cb0980deb6cf5577017884b77dcea80e37f8eaa318a", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.134 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Checking bytes v1.2.1 [INFO] [stderr] Checking itoa v1.0.4 [INFO] [stderr] Checking http v0.2.8 [INFO] [stderr] Checking getrandom v0.2.7 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand_pcg v0.3.1 [INFO] [stderr] Checking rand_seeder v0.2.3 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking algorithms_and_data_structure v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `BorrowMut`, `Borrow` [INFO] [stdout] --> src/algorithms/html_counting.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | borrow::{Borrow, BorrowMut}, [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BorrowMut`, `Borrow` [INFO] [stdout] --> src/algorithms/html_counting.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | borrow::{Borrow, BorrowMut}, [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/algorithms/html_counting.rs:51:26 [INFO] [stdout] | [INFO] [stdout] 51 | if e.partial_cmp(new_buffer) { [INFO] [stdout] | ----------- ^^^^^^^^^^ expected `&String`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/3cdcdaf31b45f8045164aae9604573d23091970b/library/core/src/cmp.rs:1157:8 [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 51 | if e.partial_cmp(&new_buffer) { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/algorithms/html_counting.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | if e.partial_cmp(new_buffer) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `bool`, found `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected type `bool` [INFO] [stdout] found enum `Option` [INFO] [stdout] help: use `Option::is_some` to test if the `Option` has a value [INFO] [stdout] | [INFO] [stdout] 51 | if e.partial_cmp(new_buffer).is_some() { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/algorithms/html_counting.rs:51:26 [INFO] [stdout] | [INFO] [stdout] 51 | if e.partial_cmp(new_buffer) { [INFO] [stdout] | ----------- ^^^^^^^^^^ expected `&String`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/3cdcdaf31b45f8045164aae9604573d23091970b/library/core/src/cmp.rs:1157:8 [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 51 | if e.partial_cmp(&new_buffer) { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/algorithms/html_counting.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | if e.partial_cmp(new_buffer) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `bool`, found `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected type `bool` [INFO] [stdout] found enum `Option` [INFO] [stdout] help: use `Option::is_some` to test if the `Option` has a value [INFO] [stdout] | [INFO] [stdout] 51 | if e.partial_cmp(new_buffer).is_some() { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `custom_words` [INFO] [stdout] --> src/algorithms/html_counting.rs:29:21 [INFO] [stdout] | [INFO] [stdout] 29 | fn count(&self, custom_words: Vec) -> MultiCounting { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_custom_words` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `custom_words` [INFO] [stdout] --> src/algorithms/html_counting.rs:29:21 [INFO] [stdout] | [INFO] [stdout] 29 | fn count(&self, custom_words: Vec) -> MultiCounting { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_custom_words` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 2 warnings 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 `algorithms_and_data_structure` (lib) due to 3 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 2 previous errors; 2 warnings 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 `algorithms_and_data_structure` (lib test) due to 3 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "93e2d081921f6a710fde4cb0980deb6cf5577017884b77dcea80e37f8eaa318a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "93e2d081921f6a710fde4cb0980deb6cf5577017884b77dcea80e37f8eaa318a", kill_on_drop: false }` [INFO] [stdout] 93e2d081921f6a710fde4cb0980deb6cf5577017884b77dcea80e37f8eaa318a