[INFO] fetching crate const-trig 0.0.2... [INFO] testing const-trig-0.0.2 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate const-trig 0.0.2 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate const-trig 0.0.2 [INFO] finished tweaking crates.io crate const-trig 0.0.2 [INFO] tweaked toml for crates.io crate const-trig 0.0.2 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate const-trig 0.0.2 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c0f25cf000b91c175f50b3c2bc3693cf0d9a2665474144c58753a6f0534937c9 [INFO] running `Command { std: "docker" "start" "-a" "c0f25cf000b91c175f50b3c2bc3693cf0d9a2665474144c58753a6f0534937c9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c0f25cf000b91c175f50b3c2bc3693cf0d9a2665474144c58753a6f0534937c9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c0f25cf000b91c175f50b3c2bc3693cf0d9a2665474144c58753a6f0534937c9", kill_on_drop: false }` [INFO] [stdout] c0f25cf000b91c175f50b3c2bc3693cf0d9a2665474144c58753a6f0534937c9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 055cfe9a4b053b40cc1892914d5a5504c2db4391a9666b2776d5763b236ce60d [INFO] running `Command { std: "docker" "start" "-a" "055cfe9a4b053b40cc1892914d5a5504c2db4391a9666b2776d5763b236ce60d", kill_on_drop: false }` [INFO] [stderr] Compiling const-trig v0.0.2 (/opt/rustwide/workdir) [INFO] [stdout] error[E0658]: use of unstable const library feature `const_ops` [INFO] [stdout] --> src/pow.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | ~const Add + [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | trait is not stable as const yet [INFO] [stdout] | [INFO] [stdout] = note: see issue #90080 for more information [INFO] [stdout] = help: add `#![feature(const_ops)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-06-19; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable const library feature `const_ops` [INFO] [stdout] --> src/pow.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | ~const Add + [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | trait is not stable as const yet [INFO] [stdout] | [INFO] [stdout] = note: see issue #90080 for more information [INFO] [stdout] = help: add `#![feature(const_ops)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-06-19; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable const library feature `const_ops` [INFO] [stdout] --> src/sine_cosine.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | ~const Add + [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | trait is not stable as const yet [INFO] [stdout] | [INFO] [stdout] = note: see issue #90080 for more information [INFO] [stdout] = help: add `#![feature(const_ops)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-06-19; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable const library feature `const_ops` [INFO] [stdout] --> src/sine_cosine.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | ~const Add + [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | trait is not stable as const yet [INFO] [stdout] | [INFO] [stdout] = note: see issue #90080 for more information [INFO] [stdout] = help: add `#![feature(const_ops)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-06-19; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable const library feature `const_ops` [INFO] [stdout] --> src/sine_cosine.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | ~const Add + [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | trait is not stable as const yet [INFO] [stdout] | [INFO] [stdout] = note: see issue #90080 for more information [INFO] [stdout] = help: add `#![feature(const_ops)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-06-19; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable const library feature `const_ops` [INFO] [stdout] --> src/roots.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | ~const Add + [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | trait is not stable as const yet [INFO] [stdout] | [INFO] [stdout] = note: see issue #90080 for more information [INFO] [stdout] = help: add `#![feature(const_ops)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-06-19; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable const library feature `const_ops` [INFO] [stdout] --> src/log.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | ~const Add + [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | trait is not stable as const yet [INFO] [stdout] | [INFO] [stdout] = note: see issue #90080 for more information [INFO] [stdout] = help: add `#![feature(const_ops)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-06-19; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable const library feature `const_ops` [INFO] [stdout] --> src/log.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | ~const Add + [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | trait is not stable as const yet [INFO] [stdout] | [INFO] [stdout] = note: see issue #90080 for more information [INFO] [stdout] = help: add `#![feature(const_ops)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-06-19; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable const library feature `const_ops` [INFO] [stdout] --> src/log.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | ~const Add + [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | trait is not stable as const yet [INFO] [stdout] | [INFO] [stdout] = note: see issue #90080 for more information [INFO] [stdout] = help: add `#![feature(const_ops)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-06-19; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable const library feature `const_ops` [INFO] [stdout] --> src/log.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | ~const Add + [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | trait is not stable as const yet [INFO] [stdout] | [INFO] [stdout] = note: see issue #90080 for more information [INFO] [stdout] = help: add `#![feature(const_ops)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-06-19; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_mut_refs` has been stable since 1.83.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | #![feature(const_mut_refs)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/pow.rs:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | pub const fn pow (x: T, n: usize) -> T { [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::MulAssign` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::MulAssign` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:866:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/pow.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | ~const From + [INFO] [stdout] | ^^^^^^ can't be applied to `From` [INFO] [stdout] | [INFO] [stdout] note: `From` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/convert/mod.rs:583:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/pow.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | ~const Mul + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::Mul` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::Mul` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:318:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/pow.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | ~const MulAssign + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::MulAssign` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::MulAssign` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:866:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/pow.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | ~const AddAssign + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::AddAssign` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::AddAssign` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:741:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/pow.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | ~const Sub + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::Sub` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::Sub` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:188:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/pow.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | ~const Div + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::Div` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::Div` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:452:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/pow.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | ~const From + [INFO] [stdout] | ^^^^^^ can't be applied to `From` [INFO] [stdout] | [INFO] [stdout] note: `From` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/convert/mod.rs:583:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/pow.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | ~const Mul + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::Mul` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::Mul` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:318:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/pow.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | ~const MulAssign + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::MulAssign` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::MulAssign` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:866:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/pow.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | ~const AddAssign + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::AddAssign` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::AddAssign` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:741:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/pow.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | ~const Sub + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::Sub` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::Sub` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:188:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/pow.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | ~const Div + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::Div` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::Div` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:452:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/sine_cosine.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | ~const From + [INFO] [stdout] | ^^^^^^ can't be applied to `From` [INFO] [stdout] | [INFO] [stdout] note: `From` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/convert/mod.rs:583:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/sine_cosine.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | ~const Mul + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::Mul` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::Mul` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:318:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/sine_cosine.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | ~const MulAssign + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::MulAssign` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::MulAssign` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:866:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/sine_cosine.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | ~const DivAssign + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::DivAssign` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::DivAssign` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:924:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/sine_cosine.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | ~const AddAssign + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::AddAssign` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::AddAssign` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:741:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/sine_cosine.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | ~const Neg + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::Neg` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::Neg` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:668:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/sine_cosine.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | ~const From + [INFO] [stdout] | ^^^^^^ can't be applied to `From` [INFO] [stdout] | [INFO] [stdout] note: `From` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/convert/mod.rs:583:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/sine_cosine.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | ~const Mul + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::Mul` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::Mul` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:318:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/sine_cosine.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | ~const MulAssign + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::MulAssign` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::MulAssign` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:866:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/sine_cosine.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | ~const DivAssign + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::DivAssign` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::DivAssign` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:924:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/sine_cosine.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | ~const AddAssign + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::AddAssign` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::AddAssign` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:741:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/sine_cosine.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | ~const Neg + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::Neg` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::Neg` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:668:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/sine_cosine.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | ~const From + [INFO] [stdout] | ^^^^^^ can't be applied to `From` [INFO] [stdout] | [INFO] [stdout] note: `From` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/convert/mod.rs:583:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/sine_cosine.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | ~const Mul + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::Mul` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::Mul` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:318:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/sine_cosine.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | ~const MulAssign + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::MulAssign` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::MulAssign` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:866:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/sine_cosine.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | ~const DivAssign + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::DivAssign` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::DivAssign` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:924:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/sine_cosine.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | ~const AddAssign + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::AddAssign` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::AddAssign` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:741:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/sine_cosine.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | ~const Neg + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::Neg` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::Neg` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:668:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `ToDegrees` which is not marked with `#[const_trait]` [INFO] [stdout] --> src/rads_degs.rs:40:19 [INFO] [stdout] | [INFO] [stdout] 40 | pub trait $trait { [INFO] [stdout] | ___________________^ [INFO] [stdout] 41 | | type Output: Copy; [INFO] [stdout] 42 | | [INFO] [stdout] 43 | | fn $little(self) -> $big ; [INFO] [stdout] ... | [INFO] [stdout] 46 | | impl const $trait for T { [INFO] [stdout] | |_______________________________________^ this trait is not `const` [INFO] [stdout] ... [INFO] [stdout] 56 | declare!(@base Degrees degrees ToDegrees IsNotDegrees); [INFO] [stdout] | ------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `#[const_trait]` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `declare` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `ToDegrees` as `#[const_trait]` to allow it to have `const` implementations [INFO] [stdout] | [INFO] [stdout] 40 | #[const_trait] pub trait $trait { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `ToRadians` which is not marked with `#[const_trait]` [INFO] [stdout] --> src/rads_degs.rs:40:19 [INFO] [stdout] | [INFO] [stdout] 40 | pub trait $trait { [INFO] [stdout] | ___________________^ [INFO] [stdout] 41 | | type Output: Copy; [INFO] [stdout] 42 | | [INFO] [stdout] 43 | | fn $little(self) -> $big ; [INFO] [stdout] ... | [INFO] [stdout] 46 | | impl const $trait for T { [INFO] [stdout] | |_______________________________________^ this trait is not `const` [INFO] [stdout] ... [INFO] [stdout] 57 | declare!(@base Radians radians ToRadians IsNotRadians); [INFO] [stdout] | ------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `#[const_trait]` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `declare` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `ToRadians` as `#[const_trait]` to allow it to have `const` implementations [INFO] [stdout] | [INFO] [stdout] 40 | #[const_trait] pub trait $trait { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `ToRadians` which is not marked with `#[const_trait]` [INFO] [stdout] --> src/rads_degs.rs:10:76 [INFO] [stdout] | [INFO] [stdout] 10 | impl + ~const Mul > const $trait for $big { [INFO] [stdout] | ^^^^^^ this trait is not `const` [INFO] [stdout] ... [INFO] [stdout] 58 | declare!(@cross ToRadians radians IsNotDegrees Degrees Radians PI / 180.0); [INFO] [stdout] | -------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `#[const_trait]` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `declare` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `ToRadians` as `#[const_trait]` to allow it to have `const` implementations [INFO] [stdout] | [INFO] [stdout] 40 | #[const_trait] pub trait $trait { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `ToDegrees` which is not marked with `#[const_trait]` [INFO] [stdout] --> src/rads_degs.rs:10:76 [INFO] [stdout] | [INFO] [stdout] 10 | impl + ~const Mul > const $trait for $big { [INFO] [stdout] | ^^^^^^ this trait is not `const` [INFO] [stdout] ... [INFO] [stdout] 59 | declare!(@cross ToDegrees degrees IsNotRadians Radians Degrees 180.0 / PI); [INFO] [stdout] | -------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `#[const_trait]` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `declare` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `ToDegrees` as `#[const_trait]` to allow it to have `const` implementations [INFO] [stdout] | [INFO] [stdout] 40 | #[const_trait] pub trait $trait { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `From` which is not marked with `#[const_trait]` [INFO] [stdout] --> src/rads_degs.rs:28:30 [INFO] [stdout] | [INFO] [stdout] 28 | impl const From for $big { [INFO] [stdout] | ^^^^^^^^ this trait is not `const` [INFO] [stdout] ... [INFO] [stdout] 56 | declare!(@base Degrees degrees ToDegrees IsNotDegrees); [INFO] [stdout] | ------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `#[const_trait]` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `declare` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `From` which is not marked with `#[const_trait]` [INFO] [stdout] --> src/rads_degs.rs:28:30 [INFO] [stdout] | [INFO] [stdout] 28 | impl const From for $big { [INFO] [stdout] | ^^^^^^^^ this trait is not `const` [INFO] [stdout] ... [INFO] [stdout] 57 | declare!(@base Radians radians ToRadians IsNotRadians); [INFO] [stdout] | ------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `#[const_trait]` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `declare` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/rads_degs.rs:10:25 [INFO] [stdout] | [INFO] [stdout] 10 | impl + ~const Mul > const $trait for $big { [INFO] [stdout] | ^^^^^^ can't be applied to `From` [INFO] [stdout] ... [INFO] [stdout] 59 | declare!(@cross ToDegrees degrees IsNotRadians Radians Degrees 180.0 / PI); [INFO] [stdout] | -------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `From` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/convert/mod.rs:583:1 [INFO] [stdout] = note: this error originates in the macro `declare` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/rads_degs.rs:10:45 [INFO] [stdout] | [INFO] [stdout] 10 | impl + ~const Mul > const $trait for $big { [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::Mul` [INFO] [stdout] ... [INFO] [stdout] 59 | declare!(@cross ToDegrees degrees IsNotRadians Radians Degrees 180.0 / PI); [INFO] [stdout] | -------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `core::ops::Mul` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:318:1 [INFO] [stdout] = note: this error originates in the macro `declare` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/rads_degs.rs:10:25 [INFO] [stdout] | [INFO] [stdout] 10 | impl + ~const Mul > const $trait for $big { [INFO] [stdout] | ^^^^^^ can't be applied to `From` [INFO] [stdout] ... [INFO] [stdout] 58 | declare!(@cross ToRadians radians IsNotDegrees Degrees Radians PI / 180.0); [INFO] [stdout] | -------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `From` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/convert/mod.rs:583:1 [INFO] [stdout] = note: this error originates in the macro `declare` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/rads_degs.rs:10:45 [INFO] [stdout] | [INFO] [stdout] 10 | impl + ~const Mul > const $trait for $big { [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::Mul` [INFO] [stdout] ... [INFO] [stdout] 58 | declare!(@cross ToRadians radians IsNotDegrees Degrees Radians PI / 180.0); [INFO] [stdout] | -------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `core::ops::Mul` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:318:1 [INFO] [stdout] = note: this error originates in the macro `declare` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/roots.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | ~const From + [INFO] [stdout] | ^^^^^^ can't be applied to `From` [INFO] [stdout] | [INFO] [stdout] note: `From` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/convert/mod.rs:583:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/roots.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | ~const Mul + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::Mul` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::Mul` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:318:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/roots.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | ~const Div + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::Div` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::Div` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:452:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/roots.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | ~const MulAssign + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::MulAssign` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::MulAssign` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:866:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/roots.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | ~const AddAssign + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::AddAssign` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::AddAssign` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:741:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/roots.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | ~const Sub + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::Sub` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::Sub` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:188:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/roots.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | ~const From + [INFO] [stdout] | ^^^^^^ can't be applied to `From` [INFO] [stdout] | [INFO] [stdout] note: `From` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/convert/mod.rs:583:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/roots.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | ~const Mul + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::Mul` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::Mul` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:318:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/roots.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | ~const Div + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::Div` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::Div` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:452:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/log.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | ~const From + [INFO] [stdout] | ^^^^^^ can't be applied to `From` [INFO] [stdout] | [INFO] [stdout] note: `From` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/convert/mod.rs:583:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/log.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | ~const Mul + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::Mul` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::Mul` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:318:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/log.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | ~const MulAssign + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::MulAssign` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::MulAssign` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:866:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/log.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | ~const AddAssign + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::AddAssign` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::AddAssign` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:741:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/log.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | ~const Sub + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::Sub` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::Sub` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:188:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/log.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | ~const Div + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::Div` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::Div` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:452:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/log.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | ~const From + [INFO] [stdout] | ^^^^^^ can't be applied to `From` [INFO] [stdout] | [INFO] [stdout] note: `From` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/convert/mod.rs:583:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/log.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | ~const Mul + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::Mul` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::Mul` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:318:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/log.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | ~const MulAssign + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::MulAssign` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::MulAssign` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:866:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/log.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | ~const AddAssign + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::AddAssign` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::AddAssign` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:741:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/log.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | ~const Sub + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::Sub` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::Sub` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:188:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/log.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | ~const Div + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::Div` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::Div` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:452:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/log.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | ~const From + [INFO] [stdout] | ^^^^^^ can't be applied to `From` [INFO] [stdout] | [INFO] [stdout] note: `From` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/convert/mod.rs:583:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/log.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | ~const Mul + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::Mul` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::Mul` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:318:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/log.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | ~const MulAssign + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::MulAssign` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::MulAssign` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:866:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/log.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | ~const AddAssign + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::AddAssign` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::AddAssign` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:741:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/log.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | ~const Sub + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::Sub` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::Sub` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:188:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/log.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | ~const Div + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::Div` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::Div` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:452:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/log.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | ~const From + [INFO] [stdout] | ^^^^^^ can't be applied to `From` [INFO] [stdout] | [INFO] [stdout] note: `From` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/convert/mod.rs:583:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/log.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | ~const Mul + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::Mul` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::Mul` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:318:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/log.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | ~const MulAssign + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::MulAssign` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::MulAssign` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:866:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/log.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | ~const AddAssign + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::AddAssign` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::AddAssign` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:741:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/log.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | ~const Sub + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::Sub` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::Sub` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:188:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/log.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | ~const Div + [INFO] [stdout] | ^^^^^^ can't be applied to `core::ops::Div` [INFO] [stdout] | [INFO] [stdout] note: `core::ops::Div` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:452:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> src/pow.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | result *= x; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const associated function `>::from` in constant functions [INFO] [stdout] --> src/pow.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | exp(T::from(a) * ln(x, precision), precision) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> src/pow.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | exp(T::from(a) * ln(x, precision), precision) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const associated function `>::from` in constant functions [INFO] [stdout] --> src/pow.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | let mut n = T::from(0.0); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const associated function `>::from` in constant functions [INFO] [stdout] --> src/pow.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | let mut a = T::from(1.0); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const associated function `>::from` in constant functions [INFO] [stdout] --> src/pow.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let mut b = T::from(1.0); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const associated function `>::from` in constant functions [INFO] [stdout] --> src/lib.rs:91:23 [INFO] [stdout] | [INFO] [stdout] 91 | let mut sum = T::from(0.0); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/pow.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | / Σ!(precision => { [INFO] [stdout] 54 | | let calculated = a / b; [INFO] [stdout] 55 | | a *= x; [INFO] [stdout] 56 | | n += T::from(1.0); [INFO] [stdout] 57 | | b *= n; [INFO] [stdout] 58 | | calculated [INFO] [stdout] 59 | | }) [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = note: this error originates in the macro `Σ` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> src/pow.rs:54:26 [INFO] [stdout] | [INFO] [stdout] 54 | let calculated = a / b; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> src/pow.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | a *= x; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const associated function `>::from` in constant functions [INFO] [stdout] --> src/pow.rs:56:14 [INFO] [stdout] | [INFO] [stdout] 56 | n += T::from(1.0); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> src/pow.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | n += T::from(1.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> src/pow.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | b *= n; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> src/lib.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | / sum += { [INFO] [stdout] 95 | | $( $tt )* [INFO] [stdout] 96 | | }; [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/pow.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | / Σ!(precision => { [INFO] [stdout] 54 | | let calculated = a / b; [INFO] [stdout] 55 | | a *= x; [INFO] [stdout] 56 | | n += T::from(1.0); [INFO] [stdout] 57 | | b *= n; [INFO] [stdout] 58 | | calculated [INFO] [stdout] 59 | | }) [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = note: this error originates in the macro `Σ` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const associated function `>::from` in constant functions [INFO] [stdout] --> src/sine_cosine.rs:23:53 [INFO] [stdout] | [INFO] [stdout] 23 | sine_cosine_helper(rads, precision, rads.get(), T::from(1.0)) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const associated function `>::from` in constant functions [INFO] [stdout] --> src/sine_cosine.rs:45:41 [INFO] [stdout] | [INFO] [stdout] 45 | sine_cosine_helper(rads, precision, T::from(1.0), T::from(0.0)) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const associated function `>::from` in constant functions [INFO] [stdout] --> src/sine_cosine.rs:45:55 [INFO] [stdout] | [INFO] [stdout] 45 | sine_cosine_helper(rads, precision, T::from(1.0), T::from(0.0)) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> src/sine_cosine.rs:66:26 [INFO] [stdout] | [INFO] [stdout] 66 | let neg_x_squared = -(rads * rads); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> src/sine_cosine.rs:66:25 [INFO] [stdout] | [INFO] [stdout] 66 | let neg_x_squared = -(rads * rads); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const associated function `>::from` in constant functions [INFO] [stdout] --> src/lib.rs:91:23 [INFO] [stdout] | [INFO] [stdout] 91 | let mut sum = T::from(0.0); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/sine_cosine.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | / Σ!(precision => { [INFO] [stdout] 69 | | let calculated = fraction; [INFO] [stdout] 70 | | fraction *= neg_x_squared; [INFO] [stdout] 71 | | fraction /= (current_fac + T::from(1.0)) * (current_fac + T::from(2.0)); [INFO] [stdout] 72 | | current_fac += T::from(2.0); [INFO] [stdout] 73 | | calculated [INFO] [stdout] 74 | | }) [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = note: this error originates in the macro `Σ` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> src/sine_cosine.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | fraction *= neg_x_squared; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const associated function `>::from` in constant functions [INFO] [stdout] --> src/sine_cosine.rs:71:36 [INFO] [stdout] | [INFO] [stdout] 71 | fraction /= (current_fac + T::from(1.0)) * (current_fac + T::from(2.0)); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `core::ops::Add` is not yet stable as a const trait [INFO] [stdout] --> src/sine_cosine.rs:71:21 [INFO] [stdout] | [INFO] [stdout] 71 | fraction /= (current_fac + T::from(1.0)) * (current_fac + T::from(2.0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: add `#![feature(const_ops)]` to the crate attributes to enable [INFO] [stdout] --> src/lib.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 71 + #![feature(const_ops)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const associated function `>::from` in constant functions [INFO] [stdout] --> src/sine_cosine.rs:71:67 [INFO] [stdout] | [INFO] [stdout] 71 | fraction /= (current_fac + T::from(1.0)) * (current_fac + T::from(2.0)); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `core::ops::Add` is not yet stable as a const trait [INFO] [stdout] --> src/sine_cosine.rs:71:52 [INFO] [stdout] | [INFO] [stdout] 71 | fraction /= (current_fac + T::from(1.0)) * (current_fac + T::from(2.0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: add `#![feature(const_ops)]` to the crate attributes to enable [INFO] [stdout] --> src/lib.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 71 + #![feature(const_ops)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> src/sine_cosine.rs:71:21 [INFO] [stdout] | [INFO] [stdout] 71 | fraction /= (current_fac + T::from(1.0)) * (current_fac + T::from(2.0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> src/sine_cosine.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | fraction /= (current_fac + T::from(1.0)) * (current_fac + T::from(2.0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const associated function `>::from` in constant functions [INFO] [stdout] --> src/sine_cosine.rs:72:24 [INFO] [stdout] | [INFO] [stdout] 72 | current_fac += T::from(2.0); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> src/sine_cosine.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | current_fac += T::from(2.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> src/lib.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | / sum += { [INFO] [stdout] 95 | | $( $tt )* [INFO] [stdout] 96 | | }; [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/sine_cosine.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | / Σ!(precision => { [INFO] [stdout] 69 | | let calculated = fraction; [INFO] [stdout] 70 | | fraction *= neg_x_squared; [INFO] [stdout] 71 | | fraction /= (current_fac + T::from(1.0)) * (current_fac + T::from(2.0)); [INFO] [stdout] 72 | | current_fac += T::from(2.0); [INFO] [stdout] 73 | | calculated [INFO] [stdout] 74 | | }) [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = note: this error originates in the macro `Σ` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const associated function ` as From>::from` in constant functions [INFO] [stdout] --> src/rads_degs.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | $big::from(self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | declare!(@base Degrees degrees ToDegrees IsNotDegrees); [INFO] [stdout] | ------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = note: this error originates in the macro `declare` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const associated function ` as From>::from` in constant functions [INFO] [stdout] --> src/rads_degs.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | $big::from(self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | declare!(@base Radians radians ToRadians IsNotRadians); [INFO] [stdout] | ------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = note: this error originates in the macro `declare` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const associated function `>::from` in constant functions [INFO] [stdout] --> src/rads_degs.rs:19:30 [INFO] [stdout] | [INFO] [stdout] 19 | $op(self.0 * T::from(F)) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | declare!(@cross ToRadians radians IsNotDegrees Degrees Radians PI / 180.0); [INFO] [stdout] | -------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = note: this error originates in the macro `declare` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> src/rads_degs.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | $op(self.0 * T::from(F)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | declare!(@cross ToRadians radians IsNotDegrees Degrees Radians PI / 180.0); [INFO] [stdout] | -------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = note: this error originates in the macro `declare` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const associated function `>::from` in constant functions [INFO] [stdout] --> src/rads_degs.rs:19:30 [INFO] [stdout] | [INFO] [stdout] 19 | $op(self.0 * T::from(F)) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | declare!(@cross ToDegrees degrees IsNotRadians Radians Degrees 180.0 / PI); [INFO] [stdout] | -------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = note: this error originates in the macro `declare` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> src/rads_degs.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | $op(self.0 * T::from(F)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | declare!(@cross ToDegrees degrees IsNotRadians Radians Degrees 180.0 / PI); [INFO] [stdout] | -------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = note: this error originates in the macro `declare` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const associated function `>::from` in constant functions [INFO] [stdout] --> src/roots.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 34 | let mut a = x * T::from(0.5); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> src/roots.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | let mut a = x * T::from(0.5); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> src/roots.rs:38:15 [INFO] [stdout] | [INFO] [stdout] 38 | dx = (x / crate::pow(a, n - 1) - a) / T::from(n as f32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> src/roots.rs:38:14 [INFO] [stdout] | [INFO] [stdout] 38 | dx = (x / crate::pow(a, n - 1) - a) / T::from(n as f32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const associated function `>::from` in constant functions [INFO] [stdout] --> src/roots.rs:38:47 [INFO] [stdout] | [INFO] [stdout] 38 | dx = (x / crate::pow(a, n - 1) - a) / T::from(n as f32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> src/roots.rs:38:14 [INFO] [stdout] | [INFO] [stdout] 38 | dx = (x / crate::pow(a, n - 1) - a) / T::from(n as f32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> src/roots.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | a += dx; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const associated function `>::from` in constant functions [INFO] [stdout] --> src/roots.rs:68:18 [INFO] [stdout] | [INFO] [stdout] 68 | result = T::from(0.5) * (result + x / result); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> src/roots.rs:68:43 [INFO] [stdout] | [INFO] [stdout] 68 | result = T::from(0.5) * (result + x / result); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `core::ops::Add` is not yet stable as a const trait [INFO] [stdout] --> src/roots.rs:68:33 [INFO] [stdout] | [INFO] [stdout] 68 | result = T::from(0.5) * (result + x / result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: add `#![feature(const_ops)]` to the crate attributes to enable [INFO] [stdout] --> src/lib.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 71 + #![feature(const_ops)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> src/roots.rs:68:18 [INFO] [stdout] | [INFO] [stdout] 68 | result = T::from(0.5) * (result + x / result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> src/log.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | ln(a, precision) / ln(b, precision) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const associated function `>::from` in constant functions [INFO] [stdout] --> src/log.rs:41:24 [INFO] [stdout] | [INFO] [stdout] 41 | ln(x, precision) * T::from(core::f32::consts::LOG2_E) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> src/log.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | ln(x, precision) * T::from(core::f32::consts::LOG2_E) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const associated function `>::from` in constant functions [INFO] [stdout] --> src/log.rs:61:24 [INFO] [stdout] | [INFO] [stdout] 61 | ln(x, precision) * T::from(core::f32::consts::LOG10_E) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> src/log.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | ln(x, precision) * T::from(core::f32::consts::LOG10_E) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const associated function `>::from` in constant functions [INFO] [stdout] --> src/log.rs:86:18 [INFO] [stdout] | [INFO] [stdout] 86 | let x = (x - T::from(1.0)) / (x + T::from(1.0)); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> src/log.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | let x = (x - T::from(1.0)) / (x + T::from(1.0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const associated function `>::from` in constant functions [INFO] [stdout] --> src/log.rs:86:39 [INFO] [stdout] | [INFO] [stdout] 86 | let x = (x - T::from(1.0)) / (x + T::from(1.0)); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `core::ops::Add` is not yet stable as a const trait [INFO] [stdout] --> src/log.rs:86:34 [INFO] [stdout] | [INFO] [stdout] 86 | let x = (x - T::from(1.0)) / (x + T::from(1.0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: add `#![feature(const_ops)]` to the crate attributes to enable [INFO] [stdout] --> src/lib.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 71 + #![feature(const_ops)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> src/log.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | let x = (x - T::from(1.0)) / (x + T::from(1.0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> src/log.rs:87:14 [INFO] [stdout] | [INFO] [stdout] 87 | let xx = x * x; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const associated function `>::from` in constant functions [INFO] [stdout] --> src/log.rs:89:23 [INFO] [stdout] | [INFO] [stdout] 89 | let mut cur_div = T::from(1.0); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const associated function `>::from` in constant functions [INFO] [stdout] --> src/log.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | T::from(2.0) * Σ!(precision => { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const associated function `>::from` in constant functions [INFO] [stdout] --> src/lib.rs:91:23 [INFO] [stdout] | [INFO] [stdout] 91 | let mut sum = T::from(0.0); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/log.rs:91:20 [INFO] [stdout] | [INFO] [stdout] 91 | T::from(2.0) * Σ!(precision => { [INFO] [stdout] | ____________________- [INFO] [stdout] 92 | | let calculated = fraction / cur_div; [INFO] [stdout] 93 | | cur_div += T::from(2.0); [INFO] [stdout] 94 | | fraction *= xx; [INFO] [stdout] 95 | | calculated [INFO] [stdout] 96 | | }) [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = note: this error originates in the macro `Σ` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> src/log.rs:92:26 [INFO] [stdout] | [INFO] [stdout] 92 | let calculated = fraction / cur_div; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const associated function `>::from` in constant functions [INFO] [stdout] --> src/log.rs:93:20 [INFO] [stdout] | [INFO] [stdout] 93 | cur_div += T::from(2.0); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> src/log.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | cur_div += T::from(2.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> src/log.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | fraction *= xx; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> src/lib.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | / sum += { [INFO] [stdout] 95 | | $( $tt )* [INFO] [stdout] 96 | | }; [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/log.rs:91:20 [INFO] [stdout] | [INFO] [stdout] 91 | T::from(2.0) * Σ!(precision => { [INFO] [stdout] | _____________________- [INFO] [stdout] 92 | | let calculated = fraction / cur_div; [INFO] [stdout] 93 | | cur_div += T::from(2.0); [INFO] [stdout] 94 | | fraction *= xx; [INFO] [stdout] 95 | | calculated [INFO] [stdout] 96 | | }) [INFO] [stdout] | |_______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = note: this error originates in the macro `Σ` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> src/log.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | / T::from(2.0) * Σ!(precision => { [INFO] [stdout] 92 | | let calculated = fraction / cur_div; [INFO] [stdout] 93 | | cur_div += T::from(2.0); [INFO] [stdout] 94 | | fraction *= xx; [INFO] [stdout] 95 | | calculated [INFO] [stdout] 96 | | }) [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0015, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0015`. [INFO] [stdout] [INFO] [stderr] error: could not compile `const-trig` (lib) due to 150 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "055cfe9a4b053b40cc1892914d5a5504c2db4391a9666b2776d5763b236ce60d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "055cfe9a4b053b40cc1892914d5a5504c2db4391a9666b2776d5763b236ce60d", kill_on_drop: false }` [INFO] [stdout] 055cfe9a4b053b40cc1892914d5a5504c2db4391a9666b2776d5763b236ce60d