[INFO] cloning repository https://github.com/ITesserakt/optimization [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ITesserakt/optimization" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FITesserakt%2Foptimization", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FITesserakt%2Foptimization'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d67c187608e891881bf8d31e5f9cdde485b716ae [INFO] checking ITesserakt/optimization against master#5557f8c9d08d7f3f680943dcf97b6d4a7eb13aea for pr-124336-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FITesserakt%2Foptimization" "/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/ITesserakt/optimization on toolchain 5557f8c9d08d7f3f680943dcf97b6d4a7eb13aea [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5557f8c9d08d7f3f680943dcf97b6d4a7eb13aea" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ITesserakt/optimization [INFO] finished tweaking git repo https://github.com/ITesserakt/optimization [INFO] tweaked toml for git repo https://github.com/ITesserakt/optimization written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ITesserakt/optimization 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" "+5557f8c9d08d7f3f680943dcf97b6d4a7eb13aea" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded proc-macro-error v1.0.4 [INFO] [stderr] Downloaded test-case v3.1.0 [INFO] [stderr] Downloaded proc-macro-error-attr v1.0.4 [INFO] [stderr] Downloaded quote v1.0.29 [INFO] [stderr] Downloaded unicode-ident v1.0.9 [INFO] [stderr] Downloaded test-case-core v3.1.0 [INFO] [stderr] Downloaded test-case-macros v3.1.0 [INFO] [stderr] Downloaded proc-macro2 v1.0.63 [INFO] [stderr] Downloaded nalgebra-macros v0.2.0 [INFO] [stderr] Downloaded ordered-float v3.7.0 [INFO] [stderr] Downloaded polynomial v0.2.5 [INFO] [stderr] Downloaded num v0.4.0 [INFO] [stderr] Downloaded num-iter v0.1.43 [INFO] [stderr] Downloaded num-integer v0.1.45 [INFO] [stderr] Downloaded num-rational v0.4.1 [INFO] [stderr] Downloaded getrandom v0.2.10 [INFO] [stderr] Downloaded derive_more v1.0.0-beta.3 [INFO] [stderr] Downloaded derive_more-impl v1.0.0-beta.3 [INFO] [stderr] Downloaded syn v2.0.32 [INFO] [stderr] Downloaded nalgebra v0.32.2 [INFO] [stderr] Downloaded libc v0.2.147 [INFO] [stderr] Downloaded matrixmultiply v0.3.7 [INFO] [stderr] Downloaded safe_arch v0.7.0 [INFO] [stderr] Downloaded wide v0.7.10 [INFO] [stderr] Downloaded num-bigint v0.4.3 [INFO] [stderr] Downloaded typenum v1.16.0 [INFO] [stderr] Downloaded roots v0.0.8 [INFO] [stderr] Downloaded scilib v0.7.0 [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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+5557f8c9d08d7f3f680943dcf97b6d4a7eb13aea" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 44e74a0abe82bb45d0275203f07b380cfc14c415f9fe63f004d8b77848645741 [INFO] running `Command { std: "docker" "start" "-a" "44e74a0abe82bb45d0275203f07b380cfc14c415f9fe63f004d8b77848645741", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "44e74a0abe82bb45d0275203f07b380cfc14c415f9fe63f004d8b77848645741", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "44e74a0abe82bb45d0275203f07b380cfc14c415f9fe63f004d8b77848645741", kill_on_drop: false }` [INFO] [stdout] 44e74a0abe82bb45d0275203f07b380cfc14c415f9fe63f004d8b77848645741 [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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+5557f8c9d08d7f3f680943dcf97b6d4a7eb13aea" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 976c549a676ef0038709e07b96f91e0a2d4e6b1b4d723270541667d4bfebbcc5 [INFO] running `Command { std: "docker" "start" "-a" "976c549a676ef0038709e07b96f91e0a2d4e6b1b4d723270541667d4bfebbcc5", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libm v0.2.7 [INFO] [stderr] Compiling proc-macro2 v1.0.63 [INFO] [stderr] Compiling unicode-ident v1.0.9 [INFO] [stderr] Compiling quote v1.0.29 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling paste v1.0.12 [INFO] [stderr] Checking bytemuck v1.13.1 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking roots v0.0.8 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking safe_arch v0.7.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling matrixmultiply v0.3.7 [INFO] [stderr] Checking wide v0.7.10 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Compiling syn v2.0.32 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking num-complex v0.4.3 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking ordered-float v3.7.0 [INFO] [stderr] Checking polynomial v0.2.5 [INFO] [stderr] Checking simba v0.8.1 [INFO] [stderr] Checking scilib v0.7.0 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Compiling derive_more-impl v1.0.0-beta.3 [INFO] [stderr] Checking num v0.4.0 [INFO] [stderr] Checking derive_more v1.0.0-beta.3 [INFO] [stderr] Compiling test-case-core v3.1.0 [INFO] [stderr] Compiling nalgebra-macros v0.2.0 [INFO] [stderr] Compiling test-case-macros v3.1.0 [INFO] [stderr] Checking test-case v3.1.0 [INFO] [stderr] Checking nalgebra v0.32.2 [INFO] [stderr] Checking optimization v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/main.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | #![feature(generic_const_exprs)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::restriction::Restriction` [INFO] [stdout] --> src/task.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::restriction::Restriction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `slice_first_last_chunk` has been stable since 1.77.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | #![feature(slice_first_last_chunk)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/main.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | #![feature(generic_const_exprs)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `slice_first_last_chunk` has been stable since 1.77.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | #![feature(slice_first_last_chunk)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/iterative_conditional.rs:93:28 [INFO] [stdout] | [INFO] [stdout] 93 | let (new_x, _, s) = (self.optimizer)(x).optimize(q); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `next_x` is never read [INFO] [stdout] --> src/repeating.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 34 | let mut next_x = x; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/approx_model.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl ApproxModel { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 20 | pub fn new(range: RangeInclusive, n: usize, m: usize, eps: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/backward.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Backward { [INFO] [stdout] | -------------------------------- associated function in this implementation [INFO] [stdout] 17 | pub fn new(start: Point, step: f64, alpha: f64, eps: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/binary.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 42 | impl Binary { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 43 | pub fn new::X> + Clone>( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/enumerate.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl Enumerate { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 32 | pub fn new::X> + Clone>( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/enumerate.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 67 | impl MonteCarlo { [INFO] [stdout] | ---------------------------------- associated function in this implementation [INFO] [stdout] 68 | pub fn new(distributions: [RangeInclusive; N], n: usize) -> MonteCarlo { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Function` is never used [INFO] [stdout] --> src/functions.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Function { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Tang` is never constructed [INFO] [stdout] --> src/functions.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Tang; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rastrigin` is never constructed [INFO] [stdout] --> src/functions.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Rastrigin; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sphere` is never constructed [INFO] [stdout] --> src/functions.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct Sphere; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rosenbrok` is never constructed [INFO] [stdout] --> src/functions.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct Rosenbrok; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Bukin6` is never constructed [INFO] [stdout] --> src/functions.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub struct Bukin6; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Himmelblau` is never constructed [INFO] [stdout] --> src/functions.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | pub struct Himmelblau; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Booth` is never constructed [INFO] [stdout] --> src/functions.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 120 | pub struct Booth; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/iterative_conditional.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl IterativeConditional { [INFO] [stdout] | -------------------------------------------- associated function in this implementation [INFO] [stdout] 16 | pub fn new< [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/method.rs:18:18 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Steps(pub usize); [INFO] [stdout] | ----- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = note: `Steps` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Steps(()); [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Inequality` and `Equality` are never constructed [INFO] [stdout] --> src/restriction.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum Restriction { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 8 | /// g(X) >= 0 [INFO] [stdout] 9 | Inequality(Func), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 10 | /// h(X) = 0 [INFO] [stdout] 11 | Equality(Func), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Restriction` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `interval` is never used [INFO] [stdout] --> src/restriction.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Restriction<1> { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 15 | pub fn interval(from: f64, to: f64) -> [Restriction<1>; 2] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `satisfies`, `apply`, `is_inequality`, `equality`, and `inequality` are never used [INFO] [stdout] --> src/restriction.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl Restriction { [INFO] [stdout] | ----------------------------------- associated items in this implementation [INFO] [stdout] 24 | pub fn satisfies(&self, x: Point, eps: f64) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn apply(&self, x: Point) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn is_inequality(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn equality) -> f64 + 'static>(f: F) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn inequality) -> f64 + 'static>(f: F) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Task` is never constructed [INFO] [stdout] --> src/task.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Task { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/task.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Task { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 18 | pub fn new(optimizer: O, function: F) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `solve` is never used [INFO] [stdout] --> src/task.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 85 | / impl Task [INFO] [stdout] 86 | | where [INFO] [stdout] 87 | | O: Optimizer, [INFO] [stdout] 88 | | F: Function<1>, [INFO] [stdout] | |___________________- method in this implementation [INFO] [stdout] 89 | { [INFO] [stdout] 90 | pub fn solve(self) -> (O::X, O::F, O::Metadata) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `solve_space` is never used [INFO] [stdout] --> src/task.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 115 | / impl Task [INFO] [stdout] 116 | | where [INFO] [stdout] 117 | | O: Optimizer, F = f64>, [INFO] [stdout] 118 | | F: Function, [INFO] [stdout] | |___________________- method in this implementation [INFO] [stdout] 119 | { [INFO] [stdout] 120 | pub fn solve_space(self) -> (Point, O::F, O::Metadata) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Bool` is never constructed [INFO] [stdout] --> src/utils.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Bool; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `True` is never used [INFO] [stdout] --> src/utils.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | pub trait True {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `False` is never used [INFO] [stdout] --> src/utils.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | pub trait False {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eps` [INFO] [stdout] --> src/compound.rs:131:13 [INFO] [stdout] | [INFO] [stdout] 131 | let eps = (range.end() - range.start()) / k as f64 * 2.0; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_eps` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/iterative_conditional.rs:93:28 [INFO] [stdout] | [INFO] [stdout] 93 | let (new_x, _, s) = (self.optimizer)(x).optimize(q); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `next_x` is never read [INFO] [stdout] --> src/repeating.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 34 | let mut next_x = x; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/method.rs:18:18 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Steps(pub usize); [INFO] [stdout] | ----- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = note: `Steps` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Steps(()); [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `apply` is never used [INFO] [stdout] --> src/restriction.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl Restriction { [INFO] [stdout] | ----------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn apply(&self, x: Point) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Bool` is never constructed [INFO] [stdout] --> src/utils.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Bool; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `True` is never used [INFO] [stdout] --> src/utils.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | pub trait True {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `False` is never used [INFO] [stdout] --> src/utils.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | pub trait False {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.61s [INFO] running `Command { std: "docker" "inspect" "976c549a676ef0038709e07b96f91e0a2d4e6b1b4d723270541667d4bfebbcc5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "976c549a676ef0038709e07b96f91e0a2d4e6b1b4d723270541667d4bfebbcc5", kill_on_drop: false }` [INFO] [stdout] 976c549a676ef0038709e07b96f91e0a2d4e6b1b4d723270541667d4bfebbcc5 [INFO] checking ITesserakt/optimization against try#311f8b6ca41358db8ae08490a9ca0916f11e9de3 for pr-124336-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FITesserakt%2Foptimization" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ITesserakt/optimization on toolchain 311f8b6ca41358db8ae08490a9ca0916f11e9de3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+311f8b6ca41358db8ae08490a9ca0916f11e9de3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ITesserakt/optimization [INFO] finished tweaking git repo https://github.com/ITesserakt/optimization [INFO] tweaked toml for git repo https://github.com/ITesserakt/optimization written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ITesserakt/optimization 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" "+311f8b6ca41358db8ae08490a9ca0916f11e9de3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+311f8b6ca41358db8ae08490a9ca0916f11e9de3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 533060e82a6c7f01d422f203268a1a6e9135e4e6f5b211befc36df4a72d37719 [INFO] running `Command { std: "docker" "start" "-a" "533060e82a6c7f01d422f203268a1a6e9135e4e6f5b211befc36df4a72d37719", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "533060e82a6c7f01d422f203268a1a6e9135e4e6f5b211befc36df4a72d37719", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "533060e82a6c7f01d422f203268a1a6e9135e4e6f5b211befc36df4a72d37719", kill_on_drop: false }` [INFO] [stdout] 533060e82a6c7f01d422f203268a1a6e9135e4e6f5b211befc36df4a72d37719 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+311f8b6ca41358db8ae08490a9ca0916f11e9de3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 47c3b5e6cc79dd2b7d87da5bf7399d254722c84f00452c96646c95e74b15a3c0 [INFO] running `Command { std: "docker" "start" "-a" "47c3b5e6cc79dd2b7d87da5bf7399d254722c84f00452c96646c95e74b15a3c0", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libm v0.2.7 [INFO] [stderr] Compiling proc-macro2 v1.0.63 [INFO] [stderr] Compiling unicode-ident v1.0.9 [INFO] [stderr] Compiling quote v1.0.29 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking bytemuck v1.13.1 [INFO] [stderr] Compiling paste v1.0.12 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking roots v0.0.8 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Checking safe_arch v0.7.0 [INFO] [stderr] Compiling matrixmultiply v0.3.7 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking wide v0.7.10 [INFO] [stderr] Compiling syn v2.0.32 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking num-complex v0.4.3 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking polynomial v0.2.5 [INFO] [stderr] Checking ordered-float v3.7.0 [INFO] [stderr] Checking simba v0.8.1 [INFO] [stderr] Checking scilib v0.7.0 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Checking num v0.4.0 [INFO] [stderr] Compiling derive_more-impl v1.0.0-beta.3 [INFO] [stderr] Compiling test-case-core v3.1.0 [INFO] [stderr] Compiling nalgebra-macros v0.2.0 [INFO] [stderr] Compiling test-case-macros v3.1.0 [INFO] [stderr] Checking derive_more v1.0.0-beta.3 [INFO] [stderr] Checking test-case v3.1.0 [INFO] [stderr] Checking nalgebra v0.32.2 [INFO] [stderr] Checking optimization v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/main.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | #![feature(generic_const_exprs)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::restriction::Restriction` [INFO] [stdout] --> src/task.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::restriction::Restriction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `slice_first_last_chunk` has been stable since 1.77.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | #![feature(slice_first_last_chunk)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/main.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | #![feature(generic_const_exprs)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `slice_first_last_chunk` has been stable since 1.77.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | #![feature(slice_first_last_chunk)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0310]: the parameter type `impl FnMut(Point<2>) -> f64` may not live long enough [INFO] [stdout] --> src/compound.rs:86:35 [INFO] [stdout] | [INFO] [stdout] 86 | let y = Cell::new(Point::<{ $n - 1 }>::default()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | the parameter type `impl FnMut(Point<2>) -> f64` must be valid for the static lifetime... [INFO] [stdout] | ...so that the type `impl FnMut(Point<2>) -> f64` will meet its required lifetime bounds [INFO] [stdout] ... [INFO] [stdout] 110 | impl_helper!(2, 3, 4); [INFO] [stdout] | --------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_helper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider adding an explicit lifetime bound [INFO] [stdout] | [INFO] [stdout] 83 | fn run(&self, mut f: impl FnMut(Point<$n>) -> f64: 'static) -> (Point<$n>, f64) { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0310]: the parameter type `impl FnMut(Point<3>) -> f64` may not live long enough [INFO] [stdout] --> src/compound.rs:86:35 [INFO] [stdout] | [INFO] [stdout] 86 | let y = Cell::new(Point::<{ $n - 1 }>::default()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | the parameter type `impl FnMut(Point<3>) -> f64` must be valid for the static lifetime... [INFO] [stdout] | ...so that the type `impl FnMut(Point<3>) -> f64` will meet its required lifetime bounds [INFO] [stdout] ... [INFO] [stdout] 110 | impl_helper!(2, 3, 4); [INFO] [stdout] | --------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_helper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider adding an explicit lifetime bound [INFO] [stdout] | [INFO] [stdout] 83 | fn run(&self, mut f: impl FnMut(Point<$n>) -> f64: 'static) -> (Point<$n>, f64) { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0310]: the parameter type `impl FnMut(Point<4>) -> f64` may not live long enough [INFO] [stdout] --> src/compound.rs:86:35 [INFO] [stdout] | [INFO] [stdout] 86 | let y = Cell::new(Point::<{ $n - 1 }>::default()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | the parameter type `impl FnMut(Point<4>) -> f64` must be valid for the static lifetime... [INFO] [stdout] | ...so that the type `impl FnMut(Point<4>) -> f64` will meet its required lifetime bounds [INFO] [stdout] ... [INFO] [stdout] 110 | impl_helper!(2, 3, 4); [INFO] [stdout] | --------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_helper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider adding an explicit lifetime bound [INFO] [stdout] | [INFO] [stdout] 83 | fn run(&self, mut f: impl FnMut(Point<$n>) -> f64: 'static) -> (Point<$n>, f64) { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/iterative_conditional.rs:93:28 [INFO] [stdout] | [INFO] [stdout] 93 | let (new_x, _, s) = (self.optimizer)(x).optimize(q); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `next_x` is never read [INFO] [stdout] --> src/repeating.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 34 | let mut next_x = x; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0310`. [INFO] [stdout] [INFO] [stderr] error: could not compile `optimization` (bin "optimization") due to 4 previous errors; 5 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0310]: the parameter type `impl FnMut(Point<2>) -> f64` may not live long enough [INFO] [stdout] --> src/compound.rs:86:35 [INFO] [stdout] | [INFO] [stdout] 86 | let y = Cell::new(Point::<{ $n - 1 }>::default()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | the parameter type `impl FnMut(Point<2>) -> f64` must be valid for the static lifetime... [INFO] [stdout] | ...so that the type `impl FnMut(Point<2>) -> f64` will meet its required lifetime bounds [INFO] [stdout] ... [INFO] [stdout] 110 | impl_helper!(2, 3, 4); [INFO] [stdout] | --------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_helper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider adding an explicit lifetime bound [INFO] [stdout] | [INFO] [stdout] 83 | fn run(&self, mut f: impl FnMut(Point<$n>) -> f64: 'static) -> (Point<$n>, f64) { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0310]: the parameter type `impl FnMut(Point<3>) -> f64` may not live long enough [INFO] [stdout] --> src/compound.rs:86:35 [INFO] [stdout] | [INFO] [stdout] 86 | let y = Cell::new(Point::<{ $n - 1 }>::default()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | the parameter type `impl FnMut(Point<3>) -> f64` must be valid for the static lifetime... [INFO] [stdout] | ...so that the type `impl FnMut(Point<3>) -> f64` will meet its required lifetime bounds [INFO] [stdout] ... [INFO] [stdout] 110 | impl_helper!(2, 3, 4); [INFO] [stdout] | --------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_helper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider adding an explicit lifetime bound [INFO] [stdout] | [INFO] [stdout] 83 | fn run(&self, mut f: impl FnMut(Point<$n>) -> f64: 'static) -> (Point<$n>, f64) { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0310]: the parameter type `impl FnMut(Point<4>) -> f64` may not live long enough [INFO] [stdout] --> src/compound.rs:86:35 [INFO] [stdout] | [INFO] [stdout] 86 | let y = Cell::new(Point::<{ $n - 1 }>::default()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | the parameter type `impl FnMut(Point<4>) -> f64` must be valid for the static lifetime... [INFO] [stdout] | ...so that the type `impl FnMut(Point<4>) -> f64` will meet its required lifetime bounds [INFO] [stdout] ... [INFO] [stdout] 110 | impl_helper!(2, 3, 4); [INFO] [stdout] | --------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_helper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider adding an explicit lifetime bound [INFO] [stdout] | [INFO] [stdout] 83 | fn run(&self, mut f: impl FnMut(Point<$n>) -> f64: 'static) -> (Point<$n>, f64) { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eps` [INFO] [stdout] --> src/compound.rs:131:13 [INFO] [stdout] | [INFO] [stdout] 131 | let eps = (range.end() - range.start()) / k as f64 * 2.0; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_eps` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/iterative_conditional.rs:93:28 [INFO] [stdout] | [INFO] [stdout] 93 | let (new_x, _, s) = (self.optimizer)(x).optimize(q); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `next_x` is never read [INFO] [stdout] --> src/repeating.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 34 | let mut next_x = x; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0310`. [INFO] [stdout] [INFO] [stderr] error: could not compile `optimization` (bin "optimization" test) due to 4 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "47c3b5e6cc79dd2b7d87da5bf7399d254722c84f00452c96646c95e74b15a3c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "47c3b5e6cc79dd2b7d87da5bf7399d254722c84f00452c96646c95e74b15a3c0", kill_on_drop: false }` [INFO] [stdout] 47c3b5e6cc79dd2b7d87da5bf7399d254722c84f00452c96646c95e74b15a3c0