[INFO] cloning repository https://github.com/lochnesscookie/randomthings [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lochnesscookie/randomthings" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flochnesscookie%2Frandomthings", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flochnesscookie%2Frandomthings'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9905bab310144703121b596819c8045c84647f8c [INFO] checking lochnesscookie/randomthings against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flochnesscookie%2Frandomthings" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/lochnesscookie/randomthings 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/lochnesscookie/randomthings [INFO] finished tweaking git repo https://github.com/lochnesscookie/randomthings [INFO] tweaked toml for git repo https://github.com/lochnesscookie/randomthings written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/lochnesscookie/randomthings 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 9ea8079ff8f35bf2d45093c7521b14af78d83b5ee636f1972091f829e69059e6 [INFO] running `Command { std: "docker" "start" "-a" "9ea8079ff8f35bf2d45093c7521b14af78d83b5ee636f1972091f829e69059e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9ea8079ff8f35bf2d45093c7521b14af78d83b5ee636f1972091f829e69059e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9ea8079ff8f35bf2d45093c7521b14af78d83b5ee636f1972091f829e69059e6", kill_on_drop: false }` [INFO] [stdout] 9ea8079ff8f35bf2d45093c7521b14af78d83b5ee636f1972091f829e69059e6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] ea05ccd407cf4bc7f2fbaf016954ff1f34de992a9198527a35537984217f43fa [INFO] running `Command { std: "docker" "start" "-a" "ea05ccd407cf4bc7f2fbaf016954ff1f34de992a9198527a35537984217f43fa", kill_on_drop: false }` [INFO] [stderr] Checking stuff v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0425]: cannot find value `max_primes` in this scope [INFO] [stdout] --> src/main.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | max_primes = max_quadratic_primes(*p, &primes); [INFO] [stdout] | ^^^^^^^^^^ help: a function with a similar name exists: `make_primes` [INFO] [stdout] ... [INFO] [stdout] 18 | fn make_primes(upper: usize) -> Vec{ [INFO] [stdout] | ------------------------------------------ similarly named function `make_primes` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `max_primes` in this scope [INFO] [stdout] --> src/main.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | max_primes = max_quadratic_primes(*p, &primes); [INFO] [stdout] | ^^^^^^^^^^ help: a function with a similar name exists: `make_primes` [INFO] [stdout] ... [INFO] [stdout] 18 | fn make_primes(upper: usize) -> Vec{ [INFO] [stdout] | ------------------------------------------ similarly named function `make_primes` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `max_primes` in this scope [INFO] [stdout] --> src/main.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 10 | if max < max_primes { [INFO] [stdout] | ^^^^^^^^^^ help: a function with a similar name exists: `make_primes` [INFO] [stdout] ... [INFO] [stdout] 18 | fn make_primes(upper: usize) -> Vec{ [INFO] [stdout] | ------------------------------------------ similarly named function `make_primes` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `max_primes` in this scope [INFO] [stdout] --> src/main.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 10 | if max < max_primes { [INFO] [stdout] | ^^^^^^^^^^ help: a function with a similar name exists: `make_primes` [INFO] [stdout] ... [INFO] [stdout] 18 | fn make_primes(upper: usize) -> Vec{ [INFO] [stdout] | ------------------------------------------ similarly named function `make_primes` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `max_primes` in this scope [INFO] [stdout] --> src/main.rs:11:23 [INFO] [stdout] | [INFO] [stdout] 11 | max = max_primes; [INFO] [stdout] | ^^^^^^^^^^ help: a function with a similar name exists: `make_primes` [INFO] [stdout] ... [INFO] [stdout] 18 | fn make_primes(upper: usize) -> Vec{ [INFO] [stdout] | ------------------------------------------ similarly named function `make_primes` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `max_primes` in this scope [INFO] [stdout] --> src/main.rs:11:23 [INFO] [stdout] | [INFO] [stdout] 11 | max = max_primes; [INFO] [stdout] | ^^^^^^^^^^ help: a function with a similar name exists: `make_primes` [INFO] [stdout] ... [INFO] [stdout] 18 | fn make_primes(upper: usize) -> Vec{ [INFO] [stdout] | ------------------------------------------ similarly named function `make_primes` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `i` in this scope [INFO] [stdout] --> src/main.rs:48:20 [INFO] [stdout] | [INFO] [stdout] 48 | let sign = i * 2 - 1; [INFO] [stdout] | ^ help: a local variable with a similar name exists: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `i` in this scope [INFO] [stdout] --> src/main.rs:48:20 [INFO] [stdout] | [INFO] [stdout] 48 | let sign = i * 2 - 1; [INFO] [stdout] | ^ help: a local variable with a similar name exists: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `usize` with `&usize` [INFO] [stdout] --> src/main.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | if max > p { [INFO] [stdout] | ^ no implementation for `usize < &usize` and `usize > &usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialOrd<&usize>` is not implemented for `usize` [INFO] [stdout] help: consider dereferencing here [INFO] [stdout] | [INFO] [stdout] 6 | if max > *p { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `usize` with `&usize` [INFO] [stdout] --> src/main.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | if max > p { [INFO] [stdout] | ^ no implementation for `usize < &usize` and `usize > &usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialOrd<&usize>` is not implemented for `usize` [INFO] [stdout] help: consider dereferencing here [INFO] [stdout] | [INFO] [stdout] 6 | if max > *p { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:9:51 [INFO] [stdout] | [INFO] [stdout] 9 | max_primes = max_quadratic_primes(*p, &primes); [INFO] [stdout] | -------------------- ^^^^^^^ expected `&Vec`, found `&Rev>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&Vec` [INFO] [stdout] found reference `&Rev>` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn max_quadratic_primes(num: usize, primelist: &Vec) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ---------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:9:51 [INFO] [stdout] | [INFO] [stdout] 9 | max_primes = max_quadratic_primes(*p, &primes); [INFO] [stdout] | -------------------- ^^^^^^^ expected `&Vec`, found `&Rev>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&Vec` [INFO] [stdout] found reference `&Rev>` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn max_quadratic_primes(num: usize, primelist: &Vec) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ---------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:52:46 [INFO] [stdout] | [INFO] [stdout] 52 | if (result <= 1 || !is_prime(result, primelist)) && max < i { [INFO] [stdout] | -------- ^^^^^^ expected `usize`, found `isize` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn is_prime(num: usize, primelist: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^ ---------- [INFO] [stdout] help: you can convert an `isize` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 52 | if (result <= 1 || !is_prime(result.try_into().unwrap(), primelist)) && max < i { [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 45 | fn max_quadratic_primes(num: usize, primelist: &Vec) -> usize { [INFO] [stdout] | ----- expected `usize` because of return type [INFO] [stdout] ... [INFO] [stdout] 58 | max [INFO] [stdout] | ^^^ expected `usize`, found `isize` [INFO] [stdout] | [INFO] [stdout] help: you can convert an `isize` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 58 | max.try_into().unwrap() [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:52:46 [INFO] [stdout] | [INFO] [stdout] 52 | if (result <= 1 || !is_prime(result, primelist)) && max < i { [INFO] [stdout] | -------- ^^^^^^ expected `usize`, found `isize` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn is_prime(num: usize, primelist: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^ ---------- [INFO] [stdout] help: you can convert an `isize` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 52 | if (result <= 1 || !is_prime(result.try_into().unwrap(), primelist)) && max < i { [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 45 | fn max_quadratic_primes(num: usize, primelist: &Vec) -> usize { [INFO] [stdout] | ----- expected `usize` because of return type [INFO] [stdout] ... [INFO] [stdout] 58 | max [INFO] [stdout] | ^^^ expected `usize`, found `isize` [INFO] [stdout] | [INFO] [stdout] help: you can convert an `isize` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 58 | max.try_into().unwrap() [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `stuff` (bin "stuff" test) due to 9 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `stuff` (bin "stuff") due to 9 previous errors [INFO] running `Command { std: "docker" "inspect" "ea05ccd407cf4bc7f2fbaf016954ff1f34de992a9198527a35537984217f43fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ea05ccd407cf4bc7f2fbaf016954ff1f34de992a9198527a35537984217f43fa", kill_on_drop: false }` [INFO] [stdout] ea05ccd407cf4bc7f2fbaf016954ff1f34de992a9198527a35537984217f43fa