[INFO] cloning repository https://github.com/FredericHeem/rust-by-example [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/FredericHeem/rust-by-example" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFredericHeem%2Frust-by-example", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFredericHeem%2Frust-by-example'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5ba1425ab145779f67b9ef2474e867945577c80b [INFO] checking FredericHeem/rust-by-example/5ba1425ab145779f67b9ef2474e867945577c80b against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFredericHeem%2Frust-by-example" "/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/FredericHeem/rust-by-example on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/FredericHeem/rust-by-example [INFO] finished tweaking git repo https://github.com/FredericHeem/rust-by-example [INFO] tweaked toml for git repo https://github.com/FredericHeem/rust-by-example written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/FredericHeem/rust-by-example 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded deque v0.3.2 [INFO] [stderr] Downloaded lazy_static v0.2.8 [INFO] [stderr] Downloaded rayon v0.7.1 [INFO] [stderr] Downloaded time v0.1.37 [INFO] [stderr] Downloaded num-traits v0.1.37 [INFO] [stderr] Downloaded rayon-core v1.0.2 [INFO] [stderr] Downloaded num_cpus v1.5.0 [INFO] [stderr] Downloaded num-integer v0.1.34 [INFO] [stderr] Downloaded redox_syscall v0.1.17 [INFO] [stderr] Downloaded num-iter v0.1.33 [INFO] [stderr] Downloaded num v0.1.37 [INFO] [stderr] Downloaded libc v0.2.23 [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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7e692b49edcca2edb92e0a9fb3c4f50dba2d2a9167cffe65be2d86ff62b4dd54 [INFO] running `Command { std: "docker" "start" "-a" "7e692b49edcca2edb92e0a9fb3c4f50dba2d2a9167cffe65be2d86ff62b4dd54", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7e692b49edcca2edb92e0a9fb3c4f50dba2d2a9167cffe65be2d86ff62b4dd54", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7e692b49edcca2edb92e0a9fb3c4f50dba2d2a9167cffe65be2d86ff62b4dd54", kill_on_drop: false }` [INFO] [stdout] 7e692b49edcca2edb92e0a9fb3c4f50dba2d2a9167cffe65be2d86ff62b4dd54 [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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a34ffc20337254d0c807fb74d877a1f08d6bef85ab9a1369033e675a04eef25d [INFO] running `Command { std: "docker" "start" "-a" "a34ffc20337254d0c807fb74d877a1f08d6bef85ab9a1369033e675a04eef25d", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking libc v0.2.23 [INFO] [stderr] Checking num-traits v0.1.37 [INFO] [stderr] Compiling rayon-core v1.0.2 [INFO] [stderr] Checking deque v0.3.2 [INFO] [stderr] Checking lazy_static v0.2.8 [INFO] [stderr] Checking num_cpus v1.5.0 [INFO] [stderr] Checking rand v0.3.15 [INFO] [stderr] Checking time v0.1.37 [INFO] [stderr] Checking num-integer v0.1.34 [INFO] [stderr] Checking num-iter v0.1.33 [INFO] [stderr] Checking num v0.1.37 [INFO] [stderr] Checking chrono v0.2.25 [INFO] [stderr] Checking rayon v0.7.1 [INFO] [stderr] Checking rust-by-example v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `root` [INFO] [stdout] --> src/tree.rs:58:18 [INFO] [stdout] | [INFO] [stdout] 58 | Some(root) => println!("has root"), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_root` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `key_pair` as mutable, as it is a captured variable in a `Fn` closure [INFO] [stdout] --> src/parallel.rs:16:59 [INFO] [stdout] | [INFO] [stdout] 16 | passwords.par_iter().find_any(|&&x| check_password(x, &mut key_pair)); [INFO] [stdout] | ^^^^^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0596`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-by-example` (lib) due to 2 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parallel.rs:27:46 [INFO] [stdout] | [INFO] [stdout] 27 | let result = check_passwords(&passwords, &mut key_pair); [INFO] [stdout] | --------------- ^^^^^^^^^^^^^ expected `String`, found `&mut String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/parallel.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn check_passwords(passwords: &Vec<&str>, mut key_pair: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ -------------------- [INFO] [stdout] help: consider removing the borrow [INFO] [stdout] | [INFO] [stdout] 27 - let result = check_passwords(&passwords, &mut key_pair); [INFO] [stdout] 27 + let result = check_passwords(&passwords, key_pair); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `root` [INFO] [stdout] --> src/tree.rs:58:18 [INFO] [stdout] | [INFO] [stdout] 58 | Some(root) => println!("has root"), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_root` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `key_pair` as mutable, as it is a captured variable in a `Fn` closure [INFO] [stdout] --> src/parallel.rs:16:59 [INFO] [stdout] | [INFO] [stdout] 16 | passwords.par_iter().find_any(|&&x| check_password(x, &mut key_pair)); [INFO] [stdout] | ^^^^^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0596. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-by-example` (lib test) due to 3 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "a34ffc20337254d0c807fb74d877a1f08d6bef85ab9a1369033e675a04eef25d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a34ffc20337254d0c807fb74d877a1f08d6bef85ab9a1369033e675a04eef25d", kill_on_drop: false }` [INFO] [stdout] a34ffc20337254d0c807fb74d877a1f08d6bef85ab9a1369033e675a04eef25d