[INFO] cloning repository https://github.com/OkiMusix05/rust_vector_calculus [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/OkiMusix05/rust_vector_calculus" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOkiMusix05%2Frust_vector_calculus", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOkiMusix05%2Frust_vector_calculus'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a9e13d44b33491a5a4634e3aa8bfac3f79b49803 [INFO] building OkiMusix05/rust_vector_calculus against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOkiMusix05%2Frust_vector_calculus" "/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/OkiMusix05/rust_vector_calculus on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-6-tc1/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/OkiMusix05/rust_vector_calculus [INFO] finished tweaking git repo https://github.com/OkiMusix05/rust_vector_calculus [INFO] tweaked toml for git repo https://github.com/OkiMusix05/rust_vector_calculus written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/OkiMusix05/rust_vector_calculus 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d30a945b563375acb435a33da1bce276c17ccdc2640815a3e1608a4c058bc258 [INFO] running `Command { std: "docker" "start" "-a" "d30a945b563375acb435a33da1bce276c17ccdc2640815a3e1608a4c058bc258", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d30a945b563375acb435a33da1bce276c17ccdc2640815a3e1608a4c058bc258", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d30a945b563375acb435a33da1bce276c17ccdc2640815a3e1608a4c058bc258", kill_on_drop: false }` [INFO] [stdout] d30a945b563375acb435a33da1bce276c17ccdc2640815a3e1608a4c058bc258 [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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b884f60918817ab26d655449b1a7ef47a90c9a8bca04ae408af10208128c5b1d [INFO] running `Command { std: "docker" "start" "-a" "b884f60918817ab26d655449b1a7ef47a90c9a8bca04ae408af10208128c5b1d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling dyn-clone v1.0.17 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling vector_calculus v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused macro definition: `int_montecarlo` [INFO] [stdout] --> src/lib.rs:2024:14 [INFO] [stdout] | [INFO] [stdout] 2024 | macro_rules! int_montecarlo { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `E` and `PI` [INFO] [stdout] --> src/lib.rs:2736:24 [INFO] [stdout] | [INFO] [stdout] 2736 | use std::f64::consts::{PI, E}; [INFO] [stdout] | ^^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/lib.rs:479:24 [INFO] [stdout] | [INFO] [stdout] 479 | Function::OneD(f) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `y` is never read [INFO] [stdout] --> src/lib.rs:2096:25 [INFO] [stdout] | [INFO] [stdout] 2096 | let mut y = 0.0; [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: value assigned to `ft` is never read [INFO] [stdout] --> src/lib.rs:2176:13 [INFO] [stdout] | [INFO] [stdout] 2176 | let mut ft:Boxf64> = Box::new(|_:f64| f64::NAN); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/lib.rs:2522:30 [INFO] [stdout] | [INFO] [stdout] 2522 | surface_integral(&f!(x, y, z, 1.).wrap(), &self, MultipleIntegrationMethod::MonteCarlo(400)) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: `x` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/lib.rs:587:26 [INFO] [stdout] | [INFO] [stdout] 587 | f: Box::new(|$x:f64, $y:f64, $z:f64| $f), [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 2522 | surface_integral(&f!(x, y, z, 1.).wrap(), &self, MultipleIntegrationMethod::MonteCarlo(400)) [INFO] [stdout] | --------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `f` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/lib.rs:2522:33 [INFO] [stdout] | [INFO] [stdout] 2522 | surface_integral(&f!(x, y, z, 1.).wrap(), &self, MultipleIntegrationMethod::MonteCarlo(400)) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: `y` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/lib.rs:587:34 [INFO] [stdout] | [INFO] [stdout] 587 | f: Box::new(|$x:f64, $y:f64, $z:f64| $f), [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 2522 | surface_integral(&f!(x, y, z, 1.).wrap(), &self, MultipleIntegrationMethod::MonteCarlo(400)) [INFO] [stdout] | --------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `f` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/lib.rs:2522:36 [INFO] [stdout] | [INFO] [stdout] 2522 | surface_integral(&f!(x, y, z, 1.).wrap(), &self, MultipleIntegrationMethod::MonteCarlo(400)) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: `z` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/lib.rs:587:42 [INFO] [stdout] | [INFO] [stdout] 587 | f: Box::new(|$x:f64, $y:f64, $z:f64| $f), [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 2522 | surface_integral(&f!(x, y, z, 1.).wrap(), &self, MultipleIntegrationMethod::MonteCarlo(400)) [INFO] [stdout] | --------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `f` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `G` is never used [INFO] [stdout] --> src/lib.rs:45:7 [INFO] [stdout] | [INFO] [stdout] 45 | const G:f64 = 6.6743e-11; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `C` is never used [INFO] [stdout] --> src/lib.rs:49:7 [INFO] [stdout] | [INFO] [stdout] 49 | const C:f64 = 299_792_458.0; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `potential` is never used [INFO] [stdout] --> src/lib.rs:814:8 [INFO] [stdout] | [INFO] [stdout] 813 | impl VectorFunction { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 814 | fn potential(&self, args:Vec) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&VectorFunction` instead of cloning the inner type [INFO] [stdout] --> src/lib.rs:2648:22 [INFO] [stdout] | [INFO] [stdout] 2648 | let f = f.clone().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.92s [INFO] running `Command { std: "docker" "inspect" "b884f60918817ab26d655449b1a7ef47a90c9a8bca04ae408af10208128c5b1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b884f60918817ab26d655449b1a7ef47a90c9a8bca04ae408af10208128c5b1d", kill_on_drop: false }` [INFO] [stdout] b884f60918817ab26d655449b1a7ef47a90c9a8bca04ae408af10208128c5b1d [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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a752851f85af9570d8338110975359089b971859cdd1fce2326bd54f36eca060 [INFO] running `Command { std: "docker" "start" "-a" "a752851f85af9570d8338110975359089b971859cdd1fce2326bd54f36eca060", kill_on_drop: false }` [INFO] [stdout] warning: unused macro definition: `int_montecarlo` [INFO] [stdout] --> src/lib.rs:2024:14 [INFO] [stdout] | [INFO] [stdout] 2024 | macro_rules! int_montecarlo { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `E` and `PI` [INFO] [stdout] --> src/lib.rs:2736:24 [INFO] [stdout] | [INFO] [stdout] 2736 | use std::f64::consts::{PI, E}; [INFO] [stdout] | ^^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/lib.rs:479:24 [INFO] [stdout] | [INFO] [stdout] 479 | Function::OneD(f) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `y` is never read [INFO] [stdout] --> src/lib.rs:2096:25 [INFO] [stdout] | [INFO] [stdout] 2096 | let mut y = 0.0; [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: value assigned to `ft` is never read [INFO] [stdout] --> src/lib.rs:2176:13 [INFO] [stdout] | [INFO] [stdout] 2176 | let mut ft:Boxf64> = Box::new(|_:f64| f64::NAN); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling vector_calculus v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/lib.rs:2522:30 [INFO] [stdout] | [INFO] [stdout] 2522 | surface_integral(&f!(x, y, z, 1.).wrap(), &self, MultipleIntegrationMethod::MonteCarlo(400)) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: `x` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/lib.rs:587:26 [INFO] [stdout] | [INFO] [stdout] 587 | f: Box::new(|$x:f64, $y:f64, $z:f64| $f), [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 2522 | surface_integral(&f!(x, y, z, 1.).wrap(), &self, MultipleIntegrationMethod::MonteCarlo(400)) [INFO] [stdout] | --------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `f` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/lib.rs:2522:33 [INFO] [stdout] | [INFO] [stdout] 2522 | surface_integral(&f!(x, y, z, 1.).wrap(), &self, MultipleIntegrationMethod::MonteCarlo(400)) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: `y` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/lib.rs:587:34 [INFO] [stdout] | [INFO] [stdout] 587 | f: Box::new(|$x:f64, $y:f64, $z:f64| $f), [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 2522 | surface_integral(&f!(x, y, z, 1.).wrap(), &self, MultipleIntegrationMethod::MonteCarlo(400)) [INFO] [stdout] | --------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `f` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/lib.rs:2522:36 [INFO] [stdout] | [INFO] [stdout] 2522 | surface_integral(&f!(x, y, z, 1.).wrap(), &self, MultipleIntegrationMethod::MonteCarlo(400)) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: `z` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/lib.rs:587:42 [INFO] [stdout] | [INFO] [stdout] 587 | f: Box::new(|$x:f64, $y:f64, $z:f64| $f), [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 2522 | surface_integral(&f!(x, y, z, 1.).wrap(), &self, MultipleIntegrationMethod::MonteCarlo(400)) [INFO] [stdout] | --------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `f` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `G` is never used [INFO] [stdout] --> src/lib.rs:45:7 [INFO] [stdout] | [INFO] [stdout] 45 | const G:f64 = 6.6743e-11; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `C` is never used [INFO] [stdout] --> src/lib.rs:49:7 [INFO] [stdout] | [INFO] [stdout] 49 | const C:f64 = 299_792_458.0; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `potential` is never used [INFO] [stdout] --> src/lib.rs:814:8 [INFO] [stdout] | [INFO] [stdout] 813 | impl VectorFunction { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 814 | fn potential(&self, args:Vec) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&VectorFunction` instead of cloning the inner type [INFO] [stdout] --> src/lib.rs:2648:22 [INFO] [stdout] | [INFO] [stdout] 2648 | let f = f.clone().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `int_montecarlo` [INFO] [stdout] --> src/lib.rs:2024:14 [INFO] [stdout] | [INFO] [stdout] 2024 | macro_rules! int_montecarlo { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `*`, `self`, and `self` [INFO] [stdout] --> src/lib.rs:2700:42 [INFO] [stdout] | [INFO] [stdout] 2700 | use $crate::{IntegrationMethod::{self, *}, MultipleIntegrationMethod::{self, *}}; [INFO] [stdout] | ^^^^ ^ ^^^^ [INFO] [stdout] ... [INFO] [stdout] 2821 | setup!(); [INFO] [stdout] | -------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] = note: this warning originates in the macro `setup` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `E` [INFO] [stdout] --> src/lib.rs:2701:36 [INFO] [stdout] | [INFO] [stdout] 2701 | use std::f64::consts::{PI, E}; [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 2821 | setup!(); [INFO] [stdout] | -------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `setup` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `*`, `self`, and `self` [INFO] [stdout] --> src/lib.rs:2700:42 [INFO] [stdout] | [INFO] [stdout] 2700 | use $crate::{IntegrationMethod::{self, *}, MultipleIntegrationMethod::{self, *}}; [INFO] [stdout] | ^^^^ ^^^^ ^ [INFO] [stdout] ... [INFO] [stdout] 2834 | setup!(); [INFO] [stdout] | -------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `setup` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `E` and `PI` [INFO] [stdout] --> src/lib.rs:2701:32 [INFO] [stdout] | [INFO] [stdout] 2701 | use std::f64::consts::{PI, E}; [INFO] [stdout] | ^^ ^ [INFO] [stdout] ... [INFO] [stdout] 2834 | setup!(); [INFO] [stdout] | -------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `setup` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/lib.rs:479:24 [INFO] [stdout] | [INFO] [stdout] 479 | Function::OneD(f) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `y` is never read [INFO] [stdout] --> src/lib.rs:2096:25 [INFO] [stdout] | [INFO] [stdout] 2096 | let mut y = 0.0; [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: value assigned to `ft` is never read [INFO] [stdout] --> src/lib.rs:2176:13 [INFO] [stdout] | [INFO] [stdout] 2176 | let mut ft:Boxf64> = Box::new(|_:f64| f64::NAN); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/lib.rs:2522:30 [INFO] [stdout] | [INFO] [stdout] 2522 | surface_integral(&f!(x, y, z, 1.).wrap(), &self, MultipleIntegrationMethod::MonteCarlo(400)) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: `x` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/lib.rs:587:26 [INFO] [stdout] | [INFO] [stdout] 587 | f: Box::new(|$x:f64, $y:f64, $z:f64| $f), [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 2522 | surface_integral(&f!(x, y, z, 1.).wrap(), &self, MultipleIntegrationMethod::MonteCarlo(400)) [INFO] [stdout] | --------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `f` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/lib.rs:2522:33 [INFO] [stdout] | [INFO] [stdout] 2522 | surface_integral(&f!(x, y, z, 1.).wrap(), &self, MultipleIntegrationMethod::MonteCarlo(400)) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: `y` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/lib.rs:587:34 [INFO] [stdout] | [INFO] [stdout] 587 | f: Box::new(|$x:f64, $y:f64, $z:f64| $f), [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 2522 | surface_integral(&f!(x, y, z, 1.).wrap(), &self, MultipleIntegrationMethod::MonteCarlo(400)) [INFO] [stdout] | --------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `f` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/lib.rs:2522:36 [INFO] [stdout] | [INFO] [stdout] 2522 | surface_integral(&f!(x, y, z, 1.).wrap(), &self, MultipleIntegrationMethod::MonteCarlo(400)) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: `z` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/lib.rs:587:42 [INFO] [stdout] | [INFO] [stdout] 587 | f: Box::new(|$x:f64, $y:f64, $z:f64| $f), [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 2522 | surface_integral(&f!(x, y, z, 1.).wrap(), &self, MultipleIntegrationMethod::MonteCarlo(400)) [INFO] [stdout] | --------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `f` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/lib.rs:2770:49 [INFO] [stdout] | [INFO] [stdout] 2770 | let F:VectorFunction = vector_function!(x, y, -y, x); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: `x` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/lib.rs:861:30 [INFO] [stdout] | [INFO] [stdout] 861 | f: Box::new(|$x:f64, $y:f64| $f1), [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 2770 | let F:VectorFunction = vector_function!(x, y, -y, x); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `vector_function` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/lib.rs:2770:52 [INFO] [stdout] | [INFO] [stdout] 2770 | let F:VectorFunction = vector_function!(x, y, -y, x); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: `y` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/lib.rs:865:38 [INFO] [stdout] | [INFO] [stdout] 865 | f: Box::new(|$x:f64, $y:f64| $f2), [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 2770 | let F:VectorFunction = vector_function!(x, y, -y, x); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `vector_function` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/lib.rs:1647:13 [INFO] [stdout] | [INFO] [stdout] 1647 | _ => panic!("Not a valid parametric curve") [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] ... [INFO] [stdout] 2791 | let s = contour!(sigma, space); [INFO] [stdout] | ---------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/lib.rs:1647:13 [INFO] [stdout] | [INFO] [stdout] 1635 | ParametricCurve::TwoD(c) => { [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1641 | ParametricCurve::ThreeD(c) => { [INFO] [stdout] | -------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1647 | _ => panic!("Not a valid parametric curve") [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] ... [INFO] [stdout] 2791 | let s = contour!(sigma, space); [INFO] [stdout] | ---------------------- in this macro invocation [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] = note: this warning originates in the macro `contour` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/lib.rs:2806:23 [INFO] [stdout] | [INFO] [stdout] 2806 | let f = f!(x, y, (x.powi(4)+1.).sqrt()); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: `y` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/lib.rs:581:34 [INFO] [stdout] | [INFO] [stdout] 581 | f: Box::new(|$x:f64, $y:f64| $f), [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 2806 | let f = f!(x, y, (x.powi(4)+1.).sqrt()); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `f` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/lib.rs:2807:55 [INFO] [stdout] | [INFO] [stdout] 2807 | let x_bounds = fset![f!(y, y.powf(1./3.)), f!(y, 2.)]; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: `y` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/lib.rs:575:26 [INFO] [stdout] | [INFO] [stdout] 575 | f: Box::new(|$x:f64| $f), [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 2807 | let x_bounds = fset![f!(y, y.powf(1./3.)), f!(y, 2.)]; [INFO] [stdout] | --------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `f` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rho` [INFO] [stdout] --> src/lib.rs:2824:13 [INFO] [stdout] | [INFO] [stdout] 2824 | let rho = surface!(u, v, u+v, u*v, u.powf(v), set![0, 2.*PI], set![0, 10]); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rho` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/lib.rs:2822:37 [INFO] [stdout] | [INFO] [stdout] 2822 | let v = vector_function!(x, y, z, x, y, z); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: `y` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/lib.rs:874:38 [INFO] [stdout] | [INFO] [stdout] 874 | f: Box::new(|$x:f64, $y:f64, $z:f64| $f1), [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 2822 | let v = vector_function!(x, y, z, x, y, z); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `vector_function` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/lib.rs:2822:40 [INFO] [stdout] | [INFO] [stdout] 2822 | let v = vector_function!(x, y, z, x, y, z); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: `z` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/lib.rs:874:46 [INFO] [stdout] | [INFO] [stdout] 874 | f: Box::new(|$x:f64, $y:f64, $z:f64| $f1), [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 2822 | let v = vector_function!(x, y, z, x, y, z); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `vector_function` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/lib.rs:2822:34 [INFO] [stdout] | [INFO] [stdout] 2822 | let v = vector_function!(x, y, z, x, y, z); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: `x` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/lib.rs:878:30 [INFO] [stdout] | [INFO] [stdout] 878 | f: Box::new(|$x:f64, $y:f64, $z:f64| $f2), [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 2822 | let v = vector_function!(x, y, z, x, y, z); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `vector_function` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/lib.rs:2822:40 [INFO] [stdout] | [INFO] [stdout] 2822 | let v = vector_function!(x, y, z, x, y, z); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: `z` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/lib.rs:878:46 [INFO] [stdout] | [INFO] [stdout] 878 | f: Box::new(|$x:f64, $y:f64, $z:f64| $f2), [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 2822 | let v = vector_function!(x, y, z, x, y, z); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `vector_function` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/lib.rs:2822:34 [INFO] [stdout] | [INFO] [stdout] 2822 | let v = vector_function!(x, y, z, x, y, z); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: `x` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/lib.rs:882:30 [INFO] [stdout] | [INFO] [stdout] 882 | f: Box::new(|$x:f64, $y:f64, $z:f64| $f3), [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 2822 | let v = vector_function!(x, y, z, x, y, z); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `vector_function` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/lib.rs:2822:37 [INFO] [stdout] | [INFO] [stdout] 2822 | let v = vector_function!(x, y, z, x, y, z); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: `y` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/lib.rs:882:38 [INFO] [stdout] | [INFO] [stdout] 882 | f: Box::new(|$x:f64, $y:f64, $z:f64| $f3), [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 2822 | let v = vector_function!(x, y, z, x, y, z); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `vector_function` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/lib.rs:2823:37 [INFO] [stdout] | [INFO] [stdout] 2823 | let s:Surface = surface!(u, v, u.sin()*v.cos(), u.sin()*v.sin(), u.cos(), 0, PI/2., 0, 2.*PI); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: `v` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/lib.rs:581:34 [INFO] [stdout] | [INFO] [stdout] 581 | f: Box::new(|$x:f64, $y:f64| $f), [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 2823 | let s:Surface = surface!(u, v, u.sin()*v.cos(), u.sin()*v.sin(), u.cos(), 0, PI/2., 0, 2.*PI); [INFO] [stdout] | ----------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `f` which comes from the expansion of the macro `surface` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `G` is never used [INFO] [stdout] --> src/lib.rs:45:7 [INFO] [stdout] | [INFO] [stdout] 45 | const G:f64 = 6.6743e-11; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `C` is never used [INFO] [stdout] --> src/lib.rs:49:7 [INFO] [stdout] | [INFO] [stdout] 49 | const C:f64 = 299_792_458.0; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&VectorFunction` instead of cloning the inner type [INFO] [stdout] --> src/lib.rs:2648:22 [INFO] [stdout] | [INFO] [stdout] 2648 | let f = f.clone().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `F` should have a snake case name [INFO] [stdout] --> src/lib.rs:2770:13 [INFO] [stdout] | [INFO] [stdout] 2770 | let F:VectorFunction = vector_function!(x, y, -y, x); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.53s [INFO] running `Command { std: "docker" "inspect" "a752851f85af9570d8338110975359089b971859cdd1fce2326bd54f36eca060", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a752851f85af9570d8338110975359089b971859cdd1fce2326bd54f36eca060", kill_on_drop: false }` [INFO] [stdout] a752851f85af9570d8338110975359089b971859cdd1fce2326bd54f36eca060