[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] testing lochnesscookie/randomthings against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flochnesscookie%2Frandomthings" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [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-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lochnesscookie/randomthings on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 93cc87283f06b5fd50e8c360d5a306cdb6fbd964a50a2932954a872762e3d4f9 [INFO] running `Command { std: "docker" "start" "-a" "93cc87283f06b5fd50e8c360d5a306cdb6fbd964a50a2932954a872762e3d4f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "93cc87283f06b5fd50e8c360d5a306cdb6fbd964a50a2932954a872762e3d4f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "93cc87283f06b5fd50e8c360d5a306cdb6fbd964a50a2932954a872762e3d4f9", kill_on_drop: false }` [INFO] [stdout] 93cc87283f06b5fd50e8c360d5a306cdb6fbd964a50a2932954a872762e3d4f9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dc9e02c3004b3e7e98ac8fc571e3159c121475ee9a9cb6f1ae62486b55133255 [INFO] running `Command { std: "docker" "start" "-a" "dc9e02c3004b3e7e98ac8fc571e3159c121475ee9a9cb6f1ae62486b55133255", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling 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] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | fn make_primes(upper: usize) -> Vec{ [INFO] [stdout] | ------------------------------------------ similarly named function `make_primes` defined here [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 9 - max_primes = max_quadratic_primes(*p, &primes); [INFO] [stdout] 9 + make_primes = max_quadratic_primes(*p, &primes); [INFO] [stdout] | [INFO] [stdout] help: you might have meant to introduce a new binding [INFO] [stdout] | [INFO] [stdout] 9 | let max_primes = max_quadratic_primes(*p, &primes); [INFO] [stdout] | +++ [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 `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[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] 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 8 previous errors [INFO] running `Command { std: "docker" "inspect" "dc9e02c3004b3e7e98ac8fc571e3159c121475ee9a9cb6f1ae62486b55133255", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dc9e02c3004b3e7e98ac8fc571e3159c121475ee9a9cb6f1ae62486b55133255", kill_on_drop: false }` [INFO] [stdout] dc9e02c3004b3e7e98ac8fc571e3159c121475ee9a9cb6f1ae62486b55133255