[INFO] fetching crate number-diff 0.1.4... [INFO] testing number-diff-0.1.4 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate number-diff 0.1.4 into /workspace/builds/worker-5-tc1/source [INFO] started tweaking crates.io crate number-diff 0.1.4 [INFO] finished tweaking crates.io crate number-diff 0.1.4 [INFO] tweaked toml for crates.io crate number-diff 0.1.4 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate number-diff 0.1.4 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 8 packages to latest compatible versions [INFO] [stderr] Adding itertools v0.10.5 (available: v0.14.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7e6796a0e7004ff70131fc66ab8a8a70727bb8e92f4102b60b82bd79a9267049 [INFO] running `Command { std: "docker" "start" "-a" "7e6796a0e7004ff70131fc66ab8a8a70727bb8e92f4102b60b82bd79a9267049", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7e6796a0e7004ff70131fc66ab8a8a70727bb8e92f4102b60b82bd79a9267049", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7e6796a0e7004ff70131fc66ab8a8a70727bb8e92f4102b60b82bd79a9267049", kill_on_drop: false }` [INFO] [stdout] 7e6796a0e7004ff70131fc66ab8a8a70727bb8e92f4102b60b82bd79a9267049 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d0eea257893cf494436e153b9f9a550060c1c89267a3aa5e96335ac25d6d5522 [INFO] running `Command { std: "docker" "start" "-a" "d0eea257893cf494436e153b9f9a550060c1c89267a3aa5e96335ac25d6d5522", kill_on_drop: false }` [INFO] [stderr] Compiling number-diff v0.1.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `useful_functions::*` [INFO] [stdout] --> src/functions/utils/mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub use useful_functions::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.08s [INFO] running `Command { std: "docker" "inspect" "d0eea257893cf494436e153b9f9a550060c1c89267a3aa5e96335ac25d6d5522", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d0eea257893cf494436e153b9f9a550060c1c89267a3aa5e96335ac25d6d5522", kill_on_drop: false }` [INFO] [stdout] d0eea257893cf494436e153b9f9a550060c1c89267a3aa5e96335ac25d6d5522 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 93543cb4c5135f17b22ecc458ce26afd720bc6e4172f46653b02bfb88aca0285 [INFO] running `Command { std: "docker" "start" "-a" "93543cb4c5135f17b22ecc458ce26afd720bc6e4172f46653b02bfb88aca0285", kill_on_drop: false }` [INFO] [stderr] Compiling number-diff v0.1.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `useful_functions::*` [INFO] [stdout] --> src/functions/utils/mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub use useful_functions::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f64::consts::PI` [INFO] [stdout] --> tests/functions.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::f64::consts::PI; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f64::consts::PI` [INFO] [stdout] --> tests/functions.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::f64::consts::PI; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> tests/functions.rs:92:10 [INFO] [stdout] | [INFO] [stdout] 92 | -EULER_MASCHERONI.with_significant_figures(SIG_FIGS) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: mutable reference created due to call to this method [INFO] [stdout] --> /opt/rustwide/workdir/src/functions/utils/useful_functions.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | fn with_significant_figures(&mut self, digits: u64) -> Self; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/utils/consts.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub const EULER_MASCHERONI: f64 = 0.5772156649015328606065120900824024310421_f64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(const_item_mutation)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `useful_functions::*` [INFO] [stdout] --> src/functions/utils/mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub use useful_functions::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expansion` [INFO] [stdout] --> tests/expansion.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let expansion = sin.get_taylor_expansion(5, i as f64); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expansion` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> tests/functions.rs:92:10 [INFO] [stdout] | [INFO] [stdout] 92 | -EULER_MASCHERONI.with_significant_figures(SIG_FIGS) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: mutable reference created due to call to this method [INFO] [stdout] --> /opt/rustwide/workdir/src/functions/utils/useful_functions.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | fn with_significant_figures(&mut self, digits: u64) -> Self; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/utils/consts.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub const EULER_MASCHERONI: f64 = 0.5772156649015328606065120900824024310421_f64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(const_item_mutation)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expansion` [INFO] [stdout] --> tests/expansion.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let expansion = sin.get_taylor_expansion(5, i as f64); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expansion` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `correct_answer` [INFO] [stdout] --> tests/integration.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | let correct_answer = i.factorial() as f64; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_correct_answer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `correct_answer` [INFO] [stdout] --> tests/integration.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | let correct_answer = i.factorial() as f64; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_correct_answer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.52s [INFO] running `Command { std: "docker" "inspect" "93543cb4c5135f17b22ecc458ce26afd720bc6e4172f46653b02bfb88aca0285", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "93543cb4c5135f17b22ecc458ce26afd720bc6e4172f46653b02bfb88aca0285", kill_on_drop: false }` [INFO] [stdout] 93543cb4c5135f17b22ecc458ce26afd720bc6e4172f46653b02bfb88aca0285 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] d1a5da99bfb30b1dc7c231f3f673cdca33a8bf601bca9ea9c3f433c639c7f41a [INFO] running `Command { std: "docker" "start" "-a" "d1a5da99bfb30b1dc7c231f3f673cdca33a8bf601bca9ea9c3f433c639c7f41a", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `useful_functions::*` [INFO] [stderr] --> src/functions/utils/mod.rs:2:9 [INFO] [stderr] | [INFO] [stderr] 2 | pub use useful_functions::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `number-diff` (lib) generated 1 warning (run `cargo fix --lib -p number-diff` to apply 1 suggestion) [INFO] [stderr] warning: unused variable: `correct_answer` [INFO] [stderr] --> tests/integration.rs:53:13 [INFO] [stderr] | [INFO] [stderr] 53 | let correct_answer = i.factorial() as f64; [INFO] [stderr] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_correct_answer` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::f64::consts::PI` [INFO] [stderr] --> tests/functions.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::f64::consts::PI; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: taking a mutable reference to a `const` item [INFO] [stderr] --> tests/functions.rs:92:10 [INFO] [stderr] | [INFO] [stderr] 92 | -EULER_MASCHERONI.with_significant_figures(SIG_FIGS) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: each usage of a `const` item creates a new temporary [INFO] [stderr] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stderr] note: mutable reference created due to call to this method [INFO] [stderr] --> /opt/rustwide/workdir/src/functions/utils/useful_functions.rs:180:5 [INFO] [stderr] | [INFO] [stderr] 180 | fn with_significant_figures(&mut self, digits: u64) -> Self; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] note: `const` item defined here [INFO] [stderr] --> /opt/rustwide/workdir/src/utils/consts.rs:3:1 [INFO] [stderr] | [INFO] [stderr] 3 | pub const EULER_MASCHERONI: f64 = 0.5772156649015328606065120900824024310421_f64; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = note: `#[warn(const_item_mutation)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `expansion` [INFO] [stderr] --> tests/expansion.rs:10:13 [INFO] [stderr] | [INFO] [stderr] 10 | let expansion = sin.get_taylor_expansion(5, i as f64); [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expansion` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `correct_answer` [INFO] [stderr] --> tests/integration.rs:53:13 [INFO] [stderr] | [INFO] [stderr] 53 | let correct_answer = i.factorial() as f64; [INFO] [stderr] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_correct_answer` [INFO] [stderr] [INFO] [stderr] warning: `number-diff` (test "integration") generated 1 warning [INFO] [stderr] warning: `number-diff` (test "mod") generated 4 warnings (run `cargo fix --test "mod"` to apply 1 suggestion) [INFO] [stderr] warning: `number-diff` (test "functions") generated 2 warnings (2 duplicates) [INFO] [stderr] warning: `number-diff` (test "expansion") generated 1 warning (1 duplicate) [INFO] [stderr] warning: `number-diff` (lib test) generated 1 warning (1 duplicate) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.09s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/number_diff-76f775c91e9bf339) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running tests/expansion.rs (/opt/rustwide/target/debug/deps/expansion-df20a110b73bc179) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test ensure_equality ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.38s [INFO] [stdout] [INFO] [stderr] Running tests/functions.rs (/opt/rustwide/target/debug/deps/functions-37128a5854259c8a) [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test parsing ... ok [INFO] [stdout] test polygamma_function ... ok [INFO] [stdout] test factorial ... ok [INFO] [stdout] test gamma_function ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 8.24s [INFO] [stdout] [INFO] [stderr] Running tests/integration.rs (/opt/rustwide/target/debug/deps/integration-b2cc14e82c81694a) [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test basic_integration ... ok [INFO] [stdout] test specified_precision_integration ... ok [INFO] [stdout] test polygamma ... ok [INFO] [stdout] test gamma_natural ... ok [INFO] [stdout] test gamma_float ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.42s [INFO] [stdout] [INFO] [stderr] Running tests/mod.rs (/opt/rustwide/target/debug/deps/mod-8f49c455065c28cd) [INFO] [stdout] [INFO] [stdout] running 12 tests [INFO] [stdout] test integration::basic_integration ... ok [INFO] [stdout] test functions::parsing ... ok [INFO] [stdout] test functions::polygamma_function ... ok [INFO] [stdout] test rounding::decimal_rounding ... ok [INFO] [stdout] test rounding::sig_figs ... ok [INFO] [stdout] test integration::polygamma ... ok [INFO] [stdout] test integration::specified_precision_integration ... ok [INFO] [stdout] test integration::gamma_natural ... ok [INFO] [stdout] test expansion::ensure_equality ... ok [INFO] [stdout] test functions::factorial ... ok [INFO] [stdout] test integration::gamma_float ... ok [INFO] [stdout] test functions::gamma_function ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 10.83s [INFO] [stdout] [INFO] [stderr] Running tests/rounding.rs (/opt/rustwide/target/debug/deps/rounding-01fe4f83eb24fa35) [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test decimal_rounding ... ok [INFO] [stdout] test sig_figs ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] Doc-tests number_diff [INFO] [stdout] [INFO] [stdout] running 25 tests [INFO] [stdout] test src/functions/calc.rs - functions::calc::Function::differentiate (line 391) ... FAILED [INFO] [stdout] test src/functions/calc.rs - functions::calc::acos (line 223) ... FAILED [INFO] [stdout] test src/functions/calc.rs - functions::calc::asin (line 208) ... FAILED [INFO] [stdout] test src/functions/calc.rs - functions::calc::cosh (line 270) ... FAILED [INFO] [stdout] test src/functions/calc.rs - functions::calc::cos (line 132) ... FAILED [INFO] [stdout] test src/functions/calc.rs - functions::calc::abs (line 300) ... FAILED [INFO] [stdout] test src/functions/calc.rs - functions::calc::cot (line 192) ... FAILED [INFO] [stdout] test src/functions/calc.rs - functions::calc::nth_root (line 361) ... FAILED [INFO] [stdout] test src/functions/calc.rs - functions::calc::factorial (line 346) ... FAILED [INFO] [stdout] test src/functions/calc.rs - functions::calc::Function (line 471) ... FAILED [INFO] [stdout] test src/functions/calc.rs - functions::calc::Function (line 438) ... FAILED [INFO] [stdout] test src/functions/calc.rs - functions::calc::csc (line 177) ... FAILED [INFO] [stdout] test src/functions/calc.rs - functions::calc::sec (line 162) ... FAILED [INFO] [stdout] test src/functions/calc.rs - functions::calc::sin (line 117) ... FAILED [INFO] [stdout] test src/functions/calc.rs - functions::calc::ln (line 316) ... FAILED [INFO] [stdout] test src/functions/calc.rs - functions::calc::tanh (line 285) ... FAILED [INFO] [stdout] test src/functions/calc.rs - functions::calc::atan (line 238) ... FAILED [INFO] [stdout] test src/functions/calc.rs - functions::calc::sinh (line 255) ... FAILED [INFO] [stdout] test src/functions/integration.rs - functions::integration::Integrate::integrate (line 10) ... FAILED [INFO] [stdout] test src/functions/utils/useful_functions.rs - functions::utils::useful_functions::Round::round_to (line 161) ... FAILED [INFO] [stdout] test src/functions/calc.rs - functions::calc::tan (line 147) ... FAILED [INFO] [stdout] test src/functions/utils/useful_functions.rs - functions::utils::useful_functions::Round::with_significant_figures (line 173) ... FAILED [INFO] [stdout] test src/functions/integration.rs - functions::integration::Integrate::evaluate_integral (line 40) ... FAILED [INFO] [stdout] test src/functions/calc.rs - functions::calc::sqrt (line 331) ... FAILED [INFO] [stdout] test src/functions/differentiation.rs - functions::differentiation::derivative_of (line 188) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/functions/calc.rs - functions::calc::Function::differentiate (line 391) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Function` [INFO] [stdout] --> src/functions/calc.rs:392:20 [INFO] [stdout] | [INFO] [stdout] 3 | let mut function = Function::from("cosh(x)"); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Function` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use number_diff::Function; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/functions/calc.rs - functions::calc::acos (line 223) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `acos` in this scope [INFO] [stdout] --> src/functions/calc.rs:225:21 [INFO] [stdout] | [INFO] [stdout] 4 | let acos_of_x = acos(x); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use number_diff::acos; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `function` [INFO] [stdout] --> src/functions/calc.rs:224:9 [INFO] [stdout] | [INFO] [stdout] 3 | let x = function::default(); [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `function` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `function`, use `cargo add function` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/functions/calc.rs - functions::calc::asin (line 208) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `asin` in this scope [INFO] [stdout] --> src/functions/calc.rs:210:21 [INFO] [stdout] | [INFO] [stdout] 4 | let asin_of_x = asin(x); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use number_diff::asin; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PI` in this scope [INFO] [stdout] --> src/functions/calc.rs:211:36 [INFO] [stdout] | [INFO] [stdout] 5 | assert_eq!(asin_of_x.call(1.), PI/2.); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these constants [INFO] [stdout] | [INFO] [stdout] 2 + use std::f128::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f16::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `function` [INFO] [stdout] --> src/functions/calc.rs:209:9 [INFO] [stdout] | [INFO] [stdout] 3 | let x = function::default(); [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `function` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `function`, use `cargo add function` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/functions/calc.rs - functions::calc::cosh (line 270) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `cosh` in this scope [INFO] [stdout] --> src/functions/calc.rs:272:21 [INFO] [stdout] | [INFO] [stdout] 4 | let cosh_of_x = cosh(x); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use number_diff::cosh; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `function` [INFO] [stdout] --> src/functions/calc.rs:271:9 [INFO] [stdout] | [INFO] [stdout] 3 | let x = function::default(); [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `function` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `function`, use `cargo add function` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/functions/calc.rs - functions::calc::cos (line 132) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Function` [INFO] [stdout] --> src/functions/calc.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 3 | let x = Function::default(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Function` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use number_diff::Function; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `cos` in this scope [INFO] [stdout] --> src/functions/calc.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 4 | let cos_of_x = cos(x); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use number_diff::cos; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/functions/calc.rs - functions::calc::abs (line 300) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `abs` in this scope [INFO] [stdout] --> src/functions/calc.rs:302:20 [INFO] [stdout] | [INFO] [stdout] 4 | let abs_of_x = abs(x); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use number_diff::abs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `function` [INFO] [stdout] --> src/functions/calc.rs:301:9 [INFO] [stdout] | [INFO] [stdout] 3 | let x = function::default(); [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `function` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `function`, use `cargo add function` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/functions/calc.rs - functions::calc::cot (line 192) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Function` [INFO] [stdout] --> src/functions/calc.rs:193:9 [INFO] [stdout] | [INFO] [stdout] 3 | let x = Function::default(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Function` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use number_diff::Function; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `cot` in this scope [INFO] [stdout] --> src/functions/calc.rs:194:20 [INFO] [stdout] | [INFO] [stdout] 4 | let cot_of_x = cot(x); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use number_diff::cot; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PI` in this scope [INFO] [stdout] --> src/functions/calc.rs:195:30 [INFO] [stdout] | [INFO] [stdout] 5 | assert_eq!(cot_of_x.call(PI/2.), 0.); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these constants [INFO] [stdout] | [INFO] [stdout] 2 + use std::f128::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f16::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/functions/calc.rs - functions::calc::nth_root (line 361) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `nth_root` in this scope [INFO] [stdout] --> src/functions/calc.rs:363:25 [INFO] [stdout] | [INFO] [stdout] 4 | let nth_root_of_x = nth_root(x, 3); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use number_diff::nth_root; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `function` [INFO] [stdout] --> src/functions/calc.rs:362:9 [INFO] [stdout] | [INFO] [stdout] 3 | let x = function::default(); [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `function` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `function`, use `cargo add function` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/functions/calc.rs - functions::calc::factorial (line 346) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `factorial` in this scope [INFO] [stdout] --> src/functions/calc.rs:348:26 [INFO] [stdout] | [INFO] [stdout] 4 | let factorial_of_x = factorial(x); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use number_diff::factorial; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `function` [INFO] [stdout] --> src/functions/calc.rs:347:9 [INFO] [stdout] | [INFO] [stdout] 3 | let x = function::default(); [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `function` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `function`, use `cargo add function` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/functions/calc.rs - functions::calc::Function (line 471) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Function` [INFO] [stdout] --> src/functions/calc.rs:473:12 [INFO] [stdout] | [INFO] [stdout] 4 | let func = Function::from("sin(x)"); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Function` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use number_diff::Function; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Function` [INFO] [stdout] --> src/functions/calc.rs:480:22 [INFO] [stdout] | [INFO] [stdout] 11 | let func_expansion = Function::from(expansion); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Function` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use number_diff::Function; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/functions/calc.rs - functions::calc::Function (line 438) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Function` [INFO] [stdout] --> src/functions/calc.rs:439:12 [INFO] [stdout] | [INFO] [stdout] 3 | let func = Function::from("sin(ln(x))"); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Function` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use number_diff::Function; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/functions/calc.rs - functions::calc::csc (line 177) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Function` [INFO] [stdout] --> src/functions/calc.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 3 | let x = Function::default(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Function` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use number_diff::Function; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `csc` in this scope [INFO] [stdout] --> src/functions/calc.rs:179:20 [INFO] [stdout] | [INFO] [stdout] 4 | let csc_of_x = csc(x); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use number_diff::csc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PI` in this scope [INFO] [stdout] --> src/functions/calc.rs:180:38 [INFO] [stdout] | [INFO] [stdout] 5 | assert_eq!(csc_of_x.call(3./2. * PI), -1.); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these constants [INFO] [stdout] | [INFO] [stdout] 2 + use std::f128::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f16::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/functions/calc.rs - functions::calc::sec (line 162) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Function` [INFO] [stdout] --> src/functions/calc.rs:163:9 [INFO] [stdout] | [INFO] [stdout] 3 | let x = Function::default(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Function` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use number_diff::Function; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `sec` in this scope [INFO] [stdout] --> src/functions/calc.rs:164:20 [INFO] [stdout] | [INFO] [stdout] 4 | let sec_of_x = sec(x); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use number_diff::sec; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PI` in this scope [INFO] [stdout] --> src/functions/calc.rs:165:30 [INFO] [stdout] | [INFO] [stdout] 5 | assert_eq!(sec_of_x.call(PI), -1.); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these constants [INFO] [stdout] | [INFO] [stdout] 2 + use std::f128::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f16::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/functions/calc.rs - functions::calc::sin (line 117) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Function` [INFO] [stdout] --> src/functions/calc.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 3 | let x = Function::default(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Function` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use number_diff::Function; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `sin` in this scope [INFO] [stdout] --> src/functions/calc.rs:119:20 [INFO] [stdout] | [INFO] [stdout] 4 | let sin_of_x = sin(x); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use number_diff::sin; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PI` in this scope [INFO] [stdout] --> src/functions/calc.rs:120:30 [INFO] [stdout] | [INFO] [stdout] 5 | assert_eq!(sin_of_x.call(PI / 2.), 1.); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these constants [INFO] [stdout] | [INFO] [stdout] 2 + use std::f128::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f16::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/functions/calc.rs - functions::calc::ln (line 316) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `ln` in this scope [INFO] [stdout] --> src/functions/calc.rs:318:19 [INFO] [stdout] | [INFO] [stdout] 4 | let ln_of_x = ln(x); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use number_diff::ln; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `E` in this scope [INFO] [stdout] --> src/functions/calc.rs:319:29 [INFO] [stdout] | [INFO] [stdout] 5 | assert_eq!(ln_of_x.call(E), 1.); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 5 - assert_eq!(ln_of_x.call(E), 1.); [INFO] [stdout] 5 + assert_eq!(ln_of_x.call(x), 1.); [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these constants [INFO] [stdout] | [INFO] [stdout] 2 + use std::f128::consts::E; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f16::consts::E; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f32::consts::E; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f64::consts::E; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `function` [INFO] [stdout] --> src/functions/calc.rs:317:9 [INFO] [stdout] | [INFO] [stdout] 3 | let x = function::default(); [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `function` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `function`, use `cargo add function` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/functions/calc.rs - functions::calc::tanh (line 285) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `tanh` in this scope [INFO] [stdout] --> src/functions/calc.rs:287:21 [INFO] [stdout] | [INFO] [stdout] 4 | let tanh_of_x = tanh(x); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use number_diff::tanh; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `function` [INFO] [stdout] --> src/functions/calc.rs:286:9 [INFO] [stdout] | [INFO] [stdout] 3 | let x = function::default(); [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `function` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `function`, use `cargo add function` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/functions/calc.rs - functions::calc::atan (line 238) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `atan` in this scope [INFO] [stdout] --> src/functions/calc.rs:240:21 [INFO] [stdout] | [INFO] [stdout] 4 | let atan_of_x = atan(x); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use number_diff::atan; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PI` in this scope [INFO] [stdout] --> src/functions/calc.rs:241:36 [INFO] [stdout] | [INFO] [stdout] 5 | assert_eq!(atan_of_x.call(1.), PI/4.); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these constants [INFO] [stdout] | [INFO] [stdout] 2 + use std::f128::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f16::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `function` [INFO] [stdout] --> src/functions/calc.rs:239:9 [INFO] [stdout] | [INFO] [stdout] 3 | let x = function::default(); [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `function` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `function`, use `cargo add function` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/functions/calc.rs - functions::calc::sinh (line 255) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `sinh` in this scope [INFO] [stdout] --> src/functions/calc.rs:257:21 [INFO] [stdout] | [INFO] [stdout] 4 | let sinh_of_x = sinh(x); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use number_diff::sinh; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `function` [INFO] [stdout] --> src/functions/calc.rs:256:9 [INFO] [stdout] | [INFO] [stdout] 3 | let x = function::default(); [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `function` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `function`, use `cargo add function` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/functions/integration.rs - functions::integration::Integrate::integrate (line 10) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Function` [INFO] [stdout] --> src/functions/integration.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 3 | let function = Function::from("sin(x)"); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Function` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use number_diff::Function; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PI` in this scope [INFO] [stdout] --> src/functions/integration.rs:17:22 [INFO] [stdout] | [INFO] [stdout] 9 | .set_upper_bound(PI / 2.) [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these constants [INFO] [stdout] | [INFO] [stdout] 2 + use std::f128::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f16::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/functions/utils/useful_functions.rs - functions::utils::useful_functions::Round::round_to (line 161) stdout ---- [INFO] [stdout] error[E0599]: no method named `round_to` found for type `{float}` in the current scope [INFO] [stdout] --> src/functions/utils/useful_functions.rs:162:20 [INFO] [stdout] | [INFO] [stdout] 3 | assert_eq!(23.3274.round_to(2), 23.33); [INFO] [stdout] | ^^^^^^^^ method not found in `{float}` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `round_to` found for type `{float}` in the current scope [INFO] [stdout] --> src/functions/utils/useful_functions.rs:164:22 [INFO] [stdout] | [INFO] [stdout] 5 | assert_eq!((1. / 3.).round_to(5), 0.33333); [INFO] [stdout] | ^^^^^^^^ method not found in `{float}` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `round_to` found for type `u8` in the current scope [INFO] [stdout] --> src/functions/utils/useful_functions.rs:167:19 [INFO] [stdout] | [INFO] [stdout] 8 | assert_eq!(100_u8.round_to(10), 100.); [INFO] [stdout] | ^^^^^^^^ method not found in `u8` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/functions/calc.rs - functions::calc::tan (line 147) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Function` [INFO] [stdout] --> src/functions/calc.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 3 | let x = Function::default(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Function` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use number_diff::Function; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `tan` in this scope [INFO] [stdout] --> src/functions/calc.rs:149:20 [INFO] [stdout] | [INFO] [stdout] 4 | let tan_of_x = tan(x); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use number_diff::tan; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PI` in this scope [INFO] [stdout] --> src/functions/calc.rs:150:30 [INFO] [stdout] | [INFO] [stdout] 5 | assert_eq!(tan_of_x.call(PI / 4.), 1.); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these constants [INFO] [stdout] | [INFO] [stdout] 2 + use std::f128::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f16::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/functions/utils/useful_functions.rs - functions::utils::useful_functions::Round::with_significant_figures (line 173) stdout ---- [INFO] [stdout] error[E0599]: no method named `with_significant_figures` found for type `u128` in the current scope [INFO] [stdout] --> src/functions/utils/useful_functions.rs:174:29 [INFO] [stdout] | [INFO] [stdout] 3 | assert_eq!(14912387964_u128.with_significant_figures(5), 14912000000); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `u128` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `with_significant_figures` found for type `i32` in the current scope [INFO] [stdout] --> src/functions/utils/useful_functions.rs:176:22 [INFO] [stdout] | [INFO] [stdout] 5 | assert_eq!(-4095_i32.with_significant_figures(1), -4000); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `i32` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `with_significant_figures` found for type `f64` in the current scope [INFO] [stdout] --> src/functions/utils/useful_functions.rs:178:26 [INFO] [stdout] | [INFO] [stdout] 7 | assert_eq!(1234.5678_f64.with_significant_figures(6), 1234.57) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `f64` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/functions/integration.rs - functions::integration::Integrate::evaluate_integral (line 40) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Function` [INFO] [stdout] --> src/functions/integration.rs:41:16 [INFO] [stdout] | [INFO] [stdout] 3 | let function = Function::from("cos(x)"); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Function` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use number_diff::Function; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PI` in this scope [INFO] [stdout] --> src/functions/integration.rs:47:44 [INFO] [stdout] | [INFO] [stdout] 9 | let value = function.evaluate_integral(0., PI); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these constants [INFO] [stdout] | [INFO] [stdout] 2 + use std::f128::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f16::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/functions/calc.rs - functions::calc::sqrt (line 331) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `sqrt` in this scope [INFO] [stdout] --> src/functions/calc.rs:333:21 [INFO] [stdout] | [INFO] [stdout] 4 | let sqrt_of_x = sqrt(x); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 2 + use core::f32::math::sqrt; [INFO] [stdout] | [INFO] [stdout] 2 + use core::f64::math::sqrt; [INFO] [stdout] | [INFO] [stdout] 2 + use number_diff::sqrt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `function` [INFO] [stdout] --> src/functions/calc.rs:332:9 [INFO] [stdout] | [INFO] [stdout] 3 | let x = function::default(); [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `function` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `function`, use `cargo add function` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/functions/differentiation.rs - functions::differentiation::derivative_of (line 188) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Function` [INFO] [stdout] --> src/functions/differentiation.rs:189:11 [INFO] [stdout] | [INFO] [stdout] 3 | let sin = Function::from("sin(x)"); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Function` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use number_diff::Function; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `derivative_of` in this scope [INFO] [stdout] --> src/functions/differentiation.rs:191:22 [INFO] [stdout] | [INFO] [stdout] 5 | let sin_derivative = derivative_of(&sin); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use number_diff::derivative_of; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/functions/calc.rs - functions::calc::Function (line 438) [INFO] [stdout] src/functions/calc.rs - functions::calc::Function (line 471) [INFO] [stdout] src/functions/calc.rs - functions::calc::Function::differentiate (line 391) [INFO] [stdout] src/functions/calc.rs - functions::calc::abs (line 300) [INFO] [stdout] src/functions/calc.rs - functions::calc::acos (line 223) [INFO] [stdout] src/functions/calc.rs - functions::calc::asin (line 208) [INFO] [stdout] src/functions/calc.rs - functions::calc::atan (line 238) [INFO] [stdout] src/functions/calc.rs - functions::calc::cos (line 132) [INFO] [stdout] src/functions/calc.rs - functions::calc::cosh (line 270) [INFO] [stdout] src/functions/calc.rs - functions::calc::cot (line 192) [INFO] [stdout] src/functions/calc.rs - functions::calc::csc (line 177) [INFO] [stdout] src/functions/calc.rs - functions::calc::factorial (line 346) [INFO] [stdout] src/functions/calc.rs - functions::calc::ln (line 316) [INFO] [stdout] src/functions/calc.rs - functions::calc::nth_root (line 361) [INFO] [stdout] src/functions/calc.rs - functions::calc::sec (line 162) [INFO] [stdout] src/functions/calc.rs - functions::calc::sin (line 117) [INFO] [stdout] src/functions/calc.rs - functions::calc::sinh (line 255) [INFO] [stdout] src/functions/calc.rs - functions::calc::sqrt (line 331) [INFO] [stdout] src/functions/calc.rs - functions::calc::tan (line 147) [INFO] [stdout] src/functions/calc.rs - functions::calc::tanh (line 285) [INFO] [stdout] src/functions/differentiation.rs - functions::differentiation::derivative_of (line 188) [INFO] [stdout] src/functions/integration.rs - functions::integration::Integrate::evaluate_integral (line 40) [INFO] [stdout] src/functions/integration.rs - functions::integration::Integrate::integrate (line 10) [INFO] [stdout] src/functions/utils/useful_functions.rs - functions::utils::useful_functions::Round::round_to (line 161) [INFO] [stdout] src/functions/utils/useful_functions.rs - functions::utils::useful_functions::Round::with_significant_figures (line 173) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 25 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.22s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "d1a5da99bfb30b1dc7c231f3f673cdca33a8bf601bca9ea9c3f433c639c7f41a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d1a5da99bfb30b1dc7c231f3f673cdca33a8bf601bca9ea9c3f433c639c7f41a", kill_on_drop: false }` [INFO] [stdout] d1a5da99bfb30b1dc7c231f3f673cdca33a8bf601bca9ea9c3f433c639c7f41a