[INFO] cloning repository https://github.com/gab-umich/ellipse_circumference [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/gab-umich/ellipse_circumference" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgab-umich%2Fellipse_circumference", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgab-umich%2Fellipse_circumference'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c6db5d4a72f5bb252a490761c1418250a34eabbe [INFO] testing gab-umich/ellipse_circumference against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgab-umich%2Fellipse_circumference" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/gab-umich/ellipse_circumference [INFO] finished tweaking git repo https://github.com/gab-umich/ellipse_circumference [INFO] tweaked toml for git repo https://github.com/gab-umich/ellipse_circumference written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/gab-umich/ellipse_circumference 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/gab-umich/ellipse_circumference 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 3338e18b30d35e43b642efdaec79a90cb93f53469a239489be34d85931d04023 [INFO] running `Command { std: "docker" "start" "-a" "3338e18b30d35e43b642efdaec79a90cb93f53469a239489be34d85931d04023", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3338e18b30d35e43b642efdaec79a90cb93f53469a239489be34d85931d04023", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3338e18b30d35e43b642efdaec79a90cb93f53469a239489be34d85931d04023", kill_on_drop: false }` [INFO] [stdout] 3338e18b30d35e43b642efdaec79a90cb93f53469a239489be34d85931d04023 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] fc9f584194d6bdfacf0767aa6f5f80a7a80831cfbb769b7e98bc388d5a419ea7 [INFO] running `Command { std: "docker" "start" "-a" "fc9f584194d6bdfacf0767aa6f5f80a7a80831cfbb769b7e98bc388d5a419ea7", kill_on_drop: false }` [INFO] [stderr] Compiling ellipse v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: missing parameters for function definition [INFO] [stdout] --> src/main.rs:5:32 [INFO] [stdout] | [INFO] [stdout] 5 | fn approx_curve_length -> f64( [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: add a parameter list [INFO] [stdout] | [INFO] [stdout] 5 | fn approx_curve_length() -> f64( [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `Trait(...)` syntax does not support named parameters [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | a: f64, b: f64, iter: u32, curve: F, incrementor: G, accumulator: H [INFO] [stdout] | ^ help: remove the parameter name [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `Trait(...)` syntax does not support named parameters [INFO] [stdout] --> src/main.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | a: f64, b: f64, iter: u32, curve: F, incrementor: G, accumulator: H [INFO] [stdout] | ^ help: remove the parameter name [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `Trait(...)` syntax does not support named parameters [INFO] [stdout] --> src/main.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | a: f64, b: f64, iter: u32, curve: F, incrementor: G, accumulator: H [INFO] [stdout] | ^^^^ help: remove the parameter name [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `Trait(...)` syntax does not support named parameters [INFO] [stdout] --> src/main.rs:6:32 [INFO] [stdout] | [INFO] [stdout] 6 | a: f64, b: f64, iter: u32, curve: F, incrementor: G, accumulator: H [INFO] [stdout] | ^^^^^ help: remove the parameter name [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `Trait(...)` syntax does not support named parameters [INFO] [stdout] --> src/main.rs:6:42 [INFO] [stdout] | [INFO] [stdout] 6 | a: f64, b: f64, iter: u32, curve: F, incrementor: G, accumulator: H [INFO] [stdout] | ^^^^^^^^^^^ help: remove the parameter name [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `Trait(...)` syntax does not support named parameters [INFO] [stdout] --> src/main.rs:6:58 [INFO] [stdout] | [INFO] [stdout] 6 | a: f64, b: f64, iter: u32, curve: F, incrementor: G, accumulator: H [INFO] [stdout] | ^^^^^^^^^^^ help: remove the parameter name [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `iter` in this scope [INFO] [stdout] --> src/main.rs:10:47 [INFO] [stdout] | [INFO] [stdout] 10 | println!("Running with {:?} iterations.", iter); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `a` in this scope [INFO] [stdout] --> src/main.rs:12:42 [INFO] [stdout] | [INFO] [stdout] 12 | let mut buf : [f64; 2] = [0.0, curve(a)]; [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `b` in this scope [INFO] [stdout] --> src/main.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 14 | let delta = (b-a) / (iter as f64); [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `a` in this scope [INFO] [stdout] --> src/main.rs:14:20 [INFO] [stdout] | [INFO] [stdout] 14 | let delta = (b-a) / (iter as f64); [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `iter` in this scope [INFO] [stdout] --> src/main.rs:14:26 [INFO] [stdout] | [INFO] [stdout] 14 | let delta = (b-a) / (iter as f64); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `iter` in this scope [INFO] [stdout] --> src/main.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | for i in 1..iter+1 { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `a` in this scope [INFO] [stdout] --> src/main.rs:17:24 [INFO] [stdout] | [INFO] [stdout] 17 | buf[1] = curve(a + delta * i as f64); [INFO] [stdout] | ^ help: a local variable with a similar name exists: `i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `a` in this scope [INFO] [stdout] --> src/main.rs:18:25 [INFO] [stdout] | [INFO] [stdout] 18 | let theta_avg = a + delta * (i as f64 - 0.5); [INFO] [stdout] | ^ help: a local variable with a similar name exists: `i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/main.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0214]: parenthesized type parameters may only be used with a `Fn` trait [INFO] [stdout] --> src/main.rs:5:36 [INFO] [stdout] | [INFO] [stdout] 5 | fn approx_curve_length -> f64( [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 6 | | a: f64, b: f64, iter: u32, curve: F, incrementor: G, accumulator: H [INFO] [stdout] 7 | | ) where [INFO] [stdout] | |_^ only `Fn` traits may use parentheses [INFO] [stdout] | [INFO] [stdout] help: use angle brackets instead [INFO] [stdout] | [INFO] [stdout] 5 - fn approx_curve_length -> f64( [INFO] [stdout] 6 - a: f64, b: f64, iter: u32, curve: F, incrementor: G, accumulator: H [INFO] [stdout] 5 + fn approx_curve_length -> f64 where [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0109]: type arguments are not allowed on builtin type `f64` [INFO] [stdout] --> src/main.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | fn approx_curve_length -> f64( [INFO] [stdout] | --- not allowed on builtin type `f64` [INFO] [stdout] 6 | a: f64, b: f64, iter: u32, curve: F, incrementor: G, accumulator: H [INFO] [stdout] | ^^^ ^^^ ^^^ ^ ^ ^ type argument not allowed [INFO] [stdout] | [INFO] [stdout] help: primitive type `f64` doesn't have generic parameters [INFO] [stdout] | [INFO] [stdout] 5 - fn approx_curve_length -> f64( [INFO] [stdout] 6 - a: f64, b: f64, iter: u32, curve: F, incrementor: G, accumulator: H [INFO] [stdout] 7 - ) where [INFO] [stdout] 5 + fn approx_curve_length -> f64 where [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `curve` in this scope [INFO] [stdout] --> src/main.rs:12:36 [INFO] [stdout] | [INFO] [stdout] 12 | let mut buf : [f64; 2] = [0.0, curve(a)]; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `curve` in this scope [INFO] [stdout] --> src/main.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | buf[1] = curve(a + delta * i as f64); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `incrementor` in this scope [INFO] [stdout] --> src/main.rs:19:25 [INFO] [stdout] | [INFO] [stdout] 19 | count = count + incrementor(buf[0], buf[1], delta, theta_avg); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `accumulator` in this scope [INFO] [stdout] --> src/main.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 23 | let result = accumulator(count, delta) * 2.0; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 6 arguments were supplied [INFO] [stdout] --> src/main.rs:31:22 [INFO] [stdout] | [INFO] [stdout] 31 | let length = approx_curve_length(a, b, *iter, f, inc, acc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn approx_curve_length -> f64( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: remove the extra arguments [INFO] [stdout] | [INFO] [stdout] 31 - let length = approx_curve_length(a, b, *iter, f, inc, acc); [INFO] [stdout] 31 + let length = approx_curve_length(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `grid_incre` [INFO] [stdout] --> src/main.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | let grid_incre = |l: f64, r:f64, d: f64, _: f64| { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_grid_incre` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `grid_accu` [INFO] [stdout] --> src/main.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | let grid_accu = |x: f64, d: f64| -> f64 { x * d }; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_grid_accu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0109, E0214, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ellipse` (bin "ellipse") due to 22 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "fc9f584194d6bdfacf0767aa6f5f80a7a80831cfbb769b7e98bc388d5a419ea7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc9f584194d6bdfacf0767aa6f5f80a7a80831cfbb769b7e98bc388d5a419ea7", kill_on_drop: false }` [INFO] [stdout] fc9f584194d6bdfacf0767aa6f5f80a7a80831cfbb769b7e98bc388d5a419ea7