[INFO] cloning repository https://github.com/ink-feather-org/bounded_math [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ink-feather-org/bounded_math" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fink-feather-org%2Fbounded_math", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fink-feather-org%2Fbounded_math'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 56bfa905f2ac45d978cfdd8d842034cfab00e7e3 [INFO] checking ink-feather-org/bounded_math against master#b0696a5160711c068cb1f01b7437db7990d15750 for pr-121848 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fink-feather-org%2Fbounded_math" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ink-feather-org/bounded_math on toolchain b0696a5160711c068cb1f01b7437db7990d15750 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b0696a5160711c068cb1f01b7437db7990d15750" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-2-tc1/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/ink-feather-org/bounded_math [INFO] finished tweaking git repo https://github.com/ink-feather-org/bounded_math [INFO] tweaked toml for git repo https://github.com/ink-feather-org/bounded_math written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ink-feather-org/bounded_math already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b0696a5160711c068cb1f01b7437db7990d15750" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+b0696a5160711c068cb1f01b7437db7990d15750" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 251848ab8cfad5fcc973df8f39510ec832aa3caec5f6957a80e797f97f6f9ef7 [INFO] running `Command { std: "docker" "start" "-a" "251848ab8cfad5fcc973df8f39510ec832aa3caec5f6957a80e797f97f6f9ef7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "251848ab8cfad5fcc973df8f39510ec832aa3caec5f6957a80e797f97f6f9ef7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "251848ab8cfad5fcc973df8f39510ec832aa3caec5f6957a80e797f97f6f9ef7", kill_on_drop: false }` [INFO] [stdout] 251848ab8cfad5fcc973df8f39510ec832aa3caec5f6957a80e797f97f6f9ef7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+b0696a5160711c068cb1f01b7437db7990d15750" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2ea19fa0f78f5e93383062c8cfee21d27e45ab816c85a9be6a026824e6482e38 [INFO] running `Command { std: "docker" "start" "-a" "2ea19fa0f78f5e93383062c8cfee21d27e45ab816c85a9be6a026824e6482e38", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Checking bounded_math v0.0.1 (/opt/rustwide/workdir/bounded_math) [INFO] [stdout] error[E0635]: unknown feature `const_convert` [INFO] [stdout] --> bounded_math/src/lib.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | #![feature(const_convert)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `const_result_drop` [INFO] [stdout] --> bounded_math/src/lib.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | #![feature(const_result_drop)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> bounded_math/src/num.rs:82:39 [INFO] [stdout] | [INFO] [stdout] 82 | pub trait IntegerRange: Copy + ~const Into { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> bounded_math/src/num.rs:95:41 [INFO] [stdout] | [INFO] [stdout] 95 | fn to>(self) -> T [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> bounded_math/src/num.rs:107:45 [INFO] [stdout] | [INFO] [stdout] 107 | fn try_to>(self) -> Option [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> bounded_math/src/inner_rep.rs:15:36 [INFO] [stdout] | [INFO] [stdout] 15 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> bounded_math/src/inner_rep.rs:15:59 [INFO] [stdout] | [INFO] [stdout] 15 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> bounded_math/src/inner_rep.rs:68:40 [INFO] [stdout] | [INFO] [stdout] 68 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:68:63 [INFO] [stdout] | [INFO] [stdout] 68 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:87:42 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:87:65 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:87:42 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:87:65 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:87:42 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:87:65 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:87:42 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:87:65 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:87:42 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:87:65 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `>::into` in constants [INFO] [stdout] --> bounded_math/src/inner_rep.rs:90:42 [INFO] [stdout] | [INFO] [stdout] 90 | const RET: bool = VAL <= Self::MAX.into(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `>::into` in constants [INFO] [stdout] --> bounded_math/src/inner_rep.rs:90:42 [INFO] [stdout] | [INFO] [stdout] 90 | const RET: bool = VAL <= Self::MAX.into(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `>::into` in constants [INFO] [stdout] --> bounded_math/src/inner_rep.rs:90:42 [INFO] [stdout] | [INFO] [stdout] 90 | const RET: bool = VAL <= Self::MAX.into(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `>::into` in constants [INFO] [stdout] --> bounded_math/src/inner_rep.rs:90:42 [INFO] [stdout] | [INFO] [stdout] 90 | const RET: bool = VAL <= Self::MAX.into(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `>::into` in constants [INFO] [stdout] --> bounded_math/src/inner_rep.rs:90:42 [INFO] [stdout] | [INFO] [stdout] 90 | const RET: bool = VAL <= Self::MAX.into(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/impls.rs:22:55 [INFO] [stdout] | [INFO] [stdout] 22 | impl [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | impl_op! {Add, add |lhs, rhs| { (lhs.start() + rhs.start())..=(lhs.end() + rhs.end()) }} [INFO] [stdout] | ---------------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/impls.rs:22:55 [INFO] [stdout] | [INFO] [stdout] 22 | impl [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | / impl_op! {Sub, sub |lhs, rhs| { [INFO] [stdout] 43 | | (lhs.start() - rhs.end()) [INFO] [stdout] 44 | | ..= [INFO] [stdout] 45 | | (lhs.end() - rhs.start()) [INFO] [stdout] 46 | | }} [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/impls.rs:22:55 [INFO] [stdout] | [INFO] [stdout] 22 | impl [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | / impl_op! {Mul, mul |lhs, rhs| { [INFO] [stdout] 48 | | i128::min(i128::min(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::min(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] 49 | | ..= [INFO] [stdout] 50 | | i128::max(i128::max(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::max(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] 51 | | }} [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/impls.rs:22:55 [INFO] [stdout] | [INFO] [stdout] 22 | impl [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | / impl_op! {Div, div |lhs, rhs| { [INFO] [stdout] 54 | | assert!(!(*rhs.start() == 0 && *rhs.end() == 0), "tried to divide by Integer<0..=0>"); [INFO] [stdout] 55 | | let effective_end = if *rhs.end() == 0 { -1 } else {*rhs.end()}; [INFO] [stdout] 56 | | let effective_start = if *rhs.start() == 0 { 1 } else {*rhs.start() }; [INFO] [stdout] ... | [INFO] [stdout] 86 | | [INFO] [stdout] 87 | | }} [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/impls.rs:22:55 [INFO] [stdout] | [INFO] [stdout] 22 | impl [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | / impl_op! {Rem, rem |lhs, rhs| { [INFO] [stdout] 90 | | assert!(!(*rhs.start() == 0 && *rhs.end() == 0), "tried to get remainder of division by Integer(0..=0)"); [INFO] [stdout] 91 | | let eff_rhs = rhs.start().abs().max(rhs.end().abs()); [INFO] [stdout] 92 | | [INFO] [stdout] ... | [INFO] [stdout] 96 | | start..=end [INFO] [stdout] 97 | | }} [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/impls.rs:99:68 [INFO] [stdout] | [INFO] [stdout] 99 | const fn ranges_overlap() -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/impls.rs:106:49 [INFO] [stdout] | [INFO] [stdout] 106 | impl const PartialEq [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/impls.rs:111:71 [INFO] [stdout] | [INFO] [stdout] 111 | const fn must_be_equal() -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/impls.rs:128:49 [INFO] [stdout] | [INFO] [stdout] 128 | impl const PartialOrd [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/num.rs:9:33 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Integer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/num.rs:13:19 [INFO] [stdout] | [INFO] [stdout] 13 | impl Integer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/num.rs:22:19 [INFO] [stdout] | [INFO] [stdout] 22 | impl ContainsRet for Integer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/num.rs:27:19 [INFO] [stdout] | [INFO] [stdout] 27 | impl ValInRange for Integer where [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/num.rs:31:47 [INFO] [stdout] | [INFO] [stdout] 31 | pub trait RangeInRange { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/num.rs:34:46 [INFO] [stdout] | [INFO] [stdout] 34 | impl RangeInRange for T { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/num.rs:39:19 [INFO] [stdout] | [INFO] [stdout] 39 | impl Debug for Integer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/num.rs:53:19 [INFO] [stdout] | [INFO] [stdout] 53 | impl IsExact for Integer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/num.rs:57:19 [INFO] [stdout] | [INFO] [stdout] 57 | impl Integer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/num.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | impl const IntegerRange for Integer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/num.rs:130:19 [INFO] [stdout] | [INFO] [stdout] 130 | impl const From> for i128 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/num.rs:136:19 [INFO] [stdout] | [INFO] [stdout] 136 | impl const TryFrom for Integer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `RangeInclusive::::contains::` in constants [INFO] [stdout] --> bounded_math/src/num.rs:23:27 [INFO] [stdout] | [INFO] [stdout] 23 | const RET: bool = RANGE.contains(&VALUE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/inner_rep.rs:11:33 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct IntRepr(::Repr); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/inner_rep.rs:20:19 [INFO] [stdout] | [INFO] [stdout] 20 | impl const IntRepresentation for IntRepr { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/inner_rep.rs:41:19 [INFO] [stdout] | [INFO] [stdout] 41 | impl Debug for IntRepr { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/inner_rep.rs:46:19 [INFO] [stdout] | [INFO] [stdout] 46 | impl Display for IntRepr { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/inner_rep.rs:73:23 [INFO] [stdout] | [INFO] [stdout] 73 | impl const $largest_prim_tr for IntRepr [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/inner_rep.rs:93:23 [INFO] [stdout] | [INFO] [stdout] 93 | impl const $cur_prim_tr for IntRepr [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/inner_rep.rs:100:23 [INFO] [stdout] | [INFO] [stdout] 100 | impl const $cur_prim_tr for IntRepr { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/inner_rep.rs:93:23 [INFO] [stdout] | [INFO] [stdout] 93 | impl const $cur_prim_tr for IntRepr [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/inner_rep.rs:100:23 [INFO] [stdout] | [INFO] [stdout] 100 | impl const $cur_prim_tr for IntRepr { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/inner_rep.rs:93:23 [INFO] [stdout] | [INFO] [stdout] 93 | impl const $cur_prim_tr for IntRepr [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/inner_rep.rs:100:23 [INFO] [stdout] | [INFO] [stdout] 100 | impl const $cur_prim_tr for IntRepr { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/inner_rep.rs:93:23 [INFO] [stdout] | [INFO] [stdout] 93 | impl const $cur_prim_tr for IntRepr [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/inner_rep.rs:100:23 [INFO] [stdout] | [INFO] [stdout] 100 | impl const $cur_prim_tr for IntRepr { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/inner_rep.rs:93:23 [INFO] [stdout] | [INFO] [stdout] 93 | impl const $cur_prim_tr for IntRepr [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/inner_rep.rs:100:23 [INFO] [stdout] | [INFO] [stdout] 100 | impl const $cur_prim_tr for IntRepr { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `RangeInclusive::::is_empty` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:17:36 [INFO] [stdout] | [INFO] [stdout] 17 | debug_assert!(!$lhs_name.is_empty() && !$rhs_name.is_empty()); // Guaranteed by the type system [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | impl_op! {Add, add |lhs, rhs| { (lhs.start() + rhs.start())..=(lhs.end() + rhs.end()) }} [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 `impl_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `RangeInclusive::::is_empty` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:17:61 [INFO] [stdout] | [INFO] [stdout] 17 | debug_assert!(!$lhs_name.is_empty() && !$rhs_name.is_empty()); // Guaranteed by the type system [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | impl_op! {Add, add |lhs, rhs| { (lhs.start() + rhs.start())..=(lhs.end() + rhs.end()) }} [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 `impl_op` (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] --> bounded_math/src/impls.rs:41:33 [INFO] [stdout] | [INFO] [stdout] 41 | impl_op! {Add, add |lhs, rhs| { (lhs.start() + rhs.start())..=(lhs.end() + rhs.end()) }} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:41:63 [INFO] [stdout] | [INFO] [stdout] 41 | impl_op! {Add, add |lhs, rhs| { (lhs.start() + rhs.start())..=(lhs.end() + rhs.end()) }} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `RangeInclusive::::is_empty` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:17:36 [INFO] [stdout] | [INFO] [stdout] 17 | debug_assert!(!$lhs_name.is_empty() && !$rhs_name.is_empty()); // Guaranteed by the type system [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | / impl_op! {Sub, sub |lhs, rhs| { [INFO] [stdout] 43 | | (lhs.start() - rhs.end()) [INFO] [stdout] 44 | | ..= [INFO] [stdout] 45 | | (lhs.end() - rhs.start()) [INFO] [stdout] 46 | | }} [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 `impl_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `RangeInclusive::::is_empty` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:17:61 [INFO] [stdout] | [INFO] [stdout] 17 | debug_assert!(!$lhs_name.is_empty() && !$rhs_name.is_empty()); // Guaranteed by the type system [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | / impl_op! {Sub, sub |lhs, rhs| { [INFO] [stdout] 43 | | (lhs.start() - rhs.end()) [INFO] [stdout] 44 | | ..= [INFO] [stdout] 45 | | (lhs.end() - rhs.start()) [INFO] [stdout] 46 | | }} [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 `impl_op` (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] --> bounded_math/src/impls.rs:43:3 [INFO] [stdout] | [INFO] [stdout] 43 | (lhs.start() - rhs.end()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:45:3 [INFO] [stdout] | [INFO] [stdout] 45 | (lhs.end() - rhs.start()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `RangeInclusive::::is_empty` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:17:36 [INFO] [stdout] | [INFO] [stdout] 17 | debug_assert!(!$lhs_name.is_empty() && !$rhs_name.is_empty()); // Guaranteed by the type system [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | / impl_op! {Mul, mul |lhs, rhs| { [INFO] [stdout] 48 | | i128::min(i128::min(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::min(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] 49 | | ..= [INFO] [stdout] 50 | | i128::max(i128::max(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::max(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] 51 | | }} [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 `impl_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `RangeInclusive::::is_empty` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:17:61 [INFO] [stdout] | [INFO] [stdout] 17 | debug_assert!(!$lhs_name.is_empty() && !$rhs_name.is_empty()); // Guaranteed by the type system [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | / impl_op! {Mul, mul |lhs, rhs| { [INFO] [stdout] 48 | | i128::min(i128::min(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::min(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] 49 | | ..= [INFO] [stdout] 50 | | i128::max(i128::max(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::max(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] 51 | | }} [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 `impl_op` (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] --> bounded_math/src/impls.rs:48:23 [INFO] [stdout] | [INFO] [stdout] 48 | i128::min(i128::min(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::min(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:48:50 [INFO] [stdout] | [INFO] [stdout] 48 | i128::min(i128::min(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::min(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::min` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | i128::min(i128::min(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::min(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:48:86 [INFO] [stdout] | [INFO] [stdout] 48 | i128::min(i128::min(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::min(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:48:111 [INFO] [stdout] | [INFO] [stdout] 48 | i128::min(i128::min(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::min(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::min` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:48:76 [INFO] [stdout] | [INFO] [stdout] 48 | i128::min(i128::min(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::min(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::min` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:48:3 [INFO] [stdout] | [INFO] [stdout] 48 | i128::min(i128::min(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::min(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:50:23 [INFO] [stdout] | [INFO] [stdout] 50 | i128::max(i128::max(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::max(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:50:50 [INFO] [stdout] | [INFO] [stdout] 50 | i128::max(i128::max(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::max(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::max` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | i128::max(i128::max(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::max(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:50:86 [INFO] [stdout] | [INFO] [stdout] 50 | i128::max(i128::max(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::max(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:50:111 [INFO] [stdout] | [INFO] [stdout] 50 | i128::max(i128::max(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::max(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::max` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:50:76 [INFO] [stdout] | [INFO] [stdout] 50 | i128::max(i128::max(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::max(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::max` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:50:3 [INFO] [stdout] | [INFO] [stdout] 50 | i128::max(i128::max(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::max(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `RangeInclusive::::is_empty` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:17:36 [INFO] [stdout] | [INFO] [stdout] 17 | debug_assert!(!$lhs_name.is_empty() && !$rhs_name.is_empty()); // Guaranteed by the type system [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | / impl_op! {Div, div |lhs, rhs| { [INFO] [stdout] 54 | | assert!(!(*rhs.start() == 0 && *rhs.end() == 0), "tried to divide by Integer<0..=0>"); [INFO] [stdout] 55 | | let effective_end = if *rhs.end() == 0 { -1 } else {*rhs.end()}; [INFO] [stdout] 56 | | let effective_start = if *rhs.start() == 0 { 1 } else {*rhs.start() }; [INFO] [stdout] ... | [INFO] [stdout] 86 | | [INFO] [stdout] 87 | | }} [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 `impl_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `RangeInclusive::::is_empty` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:17:61 [INFO] [stdout] | [INFO] [stdout] 17 | debug_assert!(!$lhs_name.is_empty() && !$rhs_name.is_empty()); // Guaranteed by the type system [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | / impl_op! {Div, div |lhs, rhs| { [INFO] [stdout] 54 | | assert!(!(*rhs.start() == 0 && *rhs.end() == 0), "tried to divide by Integer<0..=0>"); [INFO] [stdout] 55 | | let effective_end = if *rhs.end() == 0 { -1 } else {*rhs.end()}; [INFO] [stdout] 56 | | let effective_start = if *rhs.start() == 0 { 1 } else {*rhs.start() }; [INFO] [stdout] ... | [INFO] [stdout] 86 | | [INFO] [stdout] 87 | | }} [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 `impl_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::min` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:61:22 [INFO] [stdout] | [INFO] [stdout] 61 | let mut min = val1.min(val2); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::max` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:62:22 [INFO] [stdout] | [INFO] [stdout] 62 | let mut max = val1.max(val2); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::min` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:67:22 [INFO] [stdout] | [INFO] [stdout] 67 | min = min.min(val1.min(val2)); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::min` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | min = min.min(val1.min(val2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::max` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:68:22 [INFO] [stdout] | [INFO] [stdout] 68 | max = max.max(val1.max(val2)); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::max` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | max = max.max(val1.max(val2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `RangeInclusive::::contains::` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:70:34 [INFO] [stdout] | [INFO] [stdout] 70 | if effective_start != 1 && rhs.contains(&1) { [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 fn `::min` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:74:24 [INFO] [stdout] | [INFO] [stdout] 74 | min = min.min(val1.min(val2)); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::min` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:74:15 [INFO] [stdout] | [INFO] [stdout] 74 | min = min.min(val1.min(val2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::max` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:75:24 [INFO] [stdout] | [INFO] [stdout] 75 | max = max.max(val1.max(val2)); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::max` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:75:15 [INFO] [stdout] | [INFO] [stdout] 75 | max = max.max(val1.max(val2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `RangeInclusive::::contains::` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:77:33 [INFO] [stdout] | [INFO] [stdout] 77 | if effective_end != -1 && rhs.contains(&-1) { [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 fn `::min` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:81:24 [INFO] [stdout] | [INFO] [stdout] 81 | min = min.min(val1.min(val2)); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::min` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:81:15 [INFO] [stdout] | [INFO] [stdout] 81 | min = min.min(val1.min(val2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::max` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:82:24 [INFO] [stdout] | [INFO] [stdout] 82 | max = max.max(val1.max(val2)); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::max` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:82:15 [INFO] [stdout] | [INFO] [stdout] 82 | max = max.max(val1.max(val2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `RangeInclusive::::is_empty` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:17:36 [INFO] [stdout] | [INFO] [stdout] 17 | debug_assert!(!$lhs_name.is_empty() && !$rhs_name.is_empty()); // Guaranteed by the type system [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | / impl_op! {Rem, rem |lhs, rhs| { [INFO] [stdout] 90 | | assert!(!(*rhs.start() == 0 && *rhs.end() == 0), "tried to get remainder of division by Integer(0..=0)"); [INFO] [stdout] 91 | | let eff_rhs = rhs.start().abs().max(rhs.end().abs()); [INFO] [stdout] 92 | | [INFO] [stdout] ... | [INFO] [stdout] 96 | | start..=end [INFO] [stdout] 97 | | }} [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 `impl_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `RangeInclusive::::is_empty` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:17:61 [INFO] [stdout] | [INFO] [stdout] 17 | debug_assert!(!$lhs_name.is_empty() && !$rhs_name.is_empty()); // Guaranteed by the type system [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | / impl_op! {Rem, rem |lhs, rhs| { [INFO] [stdout] 90 | | assert!(!(*rhs.start() == 0 && *rhs.end() == 0), "tried to get remainder of division by Integer(0..=0)"); [INFO] [stdout] 91 | | let eff_rhs = rhs.start().abs().max(rhs.end().abs()); [INFO] [stdout] 92 | | [INFO] [stdout] ... | [INFO] [stdout] 96 | | start..=end [INFO] [stdout] 97 | | }} [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 `impl_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::max` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:91:35 [INFO] [stdout] | [INFO] [stdout] 91 | let eff_rhs = rhs.start().abs().max(rhs.end().abs()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `RangeInclusive::::contains::` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:100:42 [INFO] [stdout] | [INFO] [stdout] 100 | let lhs_contains_rhs_start = LHS_RANGE.contains(RHS::RANGE.start()); [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 fn `RangeInclusive::::contains::` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:101:40 [INFO] [stdout] | [INFO] [stdout] 101 | let lhs_contains_rhs_end = LHS_RANGE.contains(RHS::RANGE.end()); [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 fn `RangeInclusive::::contains::` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:102:43 [INFO] [stdout] | [INFO] [stdout] 102 | let rhs_contains_lhs_start = RHS::RANGE.contains(LHS_RANGE.start()); [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] --> bounded_math/src/impls.rs:112:23 [INFO] [stdout] | [INFO] [stdout] 112 | let lhs_exact = LHS_RANGE.start() == LHS_RANGE.end(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] help: consider dereferencing here [INFO] [stdout] | [INFO] [stdout] 112 | let lhs_exact = *LHS_RANGE.start() == *LHS_RANGE.end(); [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `const_num_from_num` [INFO] [stdout] --> bounded_math/src/lib.rs:17:33 [INFO] [stdout] | [INFO] [stdout] 17 | #![cfg_attr(test, feature(test, const_num_from_num))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `const_convert` [INFO] [stdout] --> bounded_math/src/lib.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | #![feature(const_convert)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:113:23 [INFO] [stdout] | [INFO] [stdout] 113 | let rhs_exact = RHS::RANGE.start() == RHS::RANGE.end(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] help: consider dereferencing here [INFO] [stdout] | [INFO] [stdout] 113 | let rhs_exact = *RHS::RANGE.start() == *RHS::RANGE.end(); [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `const_result_drop` [INFO] [stdout] --> bounded_math/src/lib.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | #![feature(const_result_drop)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:114:24 [INFO] [stdout] | [INFO] [stdout] 114 | let same_start = LHS_RANGE.start() == RHS::RANGE.start(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] help: consider dereferencing here [INFO] [stdout] | [INFO] [stdout] 114 | let same_start = *LHS_RANGE.start() == *RHS::RANGE.start(); [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> bounded_math/src/num.rs:82:39 [INFO] [stdout] | [INFO] [stdout] 82 | pub trait IntegerRange: Copy + ~const Into { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> bounded_math/src/num.rs:95:41 [INFO] [stdout] | [INFO] [stdout] 95 | fn to>(self) -> T [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn ` as TryFrom>::try_from` in constants [INFO] [stdout] --> bounded_math/src/num.rs:14:25 [INFO] [stdout] | [INFO] [stdout] 14 | pub const MIN: Self = Self::try_from(*RANGE.start()).ok().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> bounded_math/src/num.rs:107:45 [INFO] [stdout] | [INFO] [stdout] 107 | fn try_to>(self) -> Option [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `Result::, ()>::ok` in constants [INFO] [stdout] --> bounded_math/src/num.rs:14:56 [INFO] [stdout] | [INFO] [stdout] 14 | pub const MIN: Self = Self::try_from(*RANGE.start()).ok().unwrap(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn ` as TryFrom>::try_from` in constants [INFO] [stdout] --> bounded_math/src/num.rs:15:25 [INFO] [stdout] | [INFO] [stdout] 15 | pub const MAX: Self = Self::try_from(*RANGE.end()).ok().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> bounded_math/src/inner_rep.rs:15:36 [INFO] [stdout] | [INFO] [stdout] 15 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `Result::, ()>::ok` in constants [INFO] [stdout] --> bounded_math/src/num.rs:15:54 [INFO] [stdout] | [INFO] [stdout] 15 | pub const MAX: Self = Self::try_from(*RANGE.end()).ok().unwrap(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> bounded_math/src/inner_rep.rs:15:59 [INFO] [stdout] | [INFO] [stdout] 15 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> bounded_math/src/inner_rep.rs:68:40 [INFO] [stdout] | [INFO] [stdout] 68 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `RangeInclusive::::contains::` in constants [INFO] [stdout] --> bounded_math/src/num.rs:36:14 [INFO] [stdout] | [INFO] [stdout] 36 | T::RANGE.contains(CONTAINED_RANGE.start()) && T::RANGE.contains(CONTAINED_RANGE.end()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> bounded_math/src/inner_rep.rs:68:63 [INFO] [stdout] | [INFO] [stdout] 68 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `RangeInclusive::::contains::` in constants [INFO] [stdout] --> bounded_math/src/num.rs:36:60 [INFO] [stdout] | [INFO] [stdout] 36 | T::RANGE.contains(CONTAINED_RANGE.start()) && T::RANGE.contains(CONTAINED_RANGE.end()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> bounded_math/src/inner_rep.rs:87:42 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:87:65 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:87:42 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:87:65 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:87:42 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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 constants [INFO] [stdout] --> bounded_math/src/num.rs:54:23 [INFO] [stdout] | [INFO] [stdout] 54 | const EXACT: bool = RANGE.start() == RANGE.end(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] help: consider dereferencing here [INFO] [stdout] | [INFO] [stdout] 54 | const EXACT: bool = *RANGE.start() == *RANGE.end(); [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> bounded_math/src/inner_rep.rs:87:65 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:87:42 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn ` as IntRepresentation>::from_i128_unchecked` in constant functions [INFO] [stdout] --> bounded_math/src/num.rs:65:21 [INFO] [stdout] | [INFO] [stdout] 65 | val: unsafe { IntRepr::::from_i128_unchecked(VALUE) }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> bounded_math/src/inner_rep.rs:87:65 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn ` as IntRepresentation>::from_i128_unchecked` in constant functions [INFO] [stdout] --> bounded_math/src/num.rs:75:21 [INFO] [stdout] | [INFO] [stdout] 75 | val: unsafe { IntRepr::::from_i128_unchecked(*RANGE.start()) }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> bounded_math/src/inner_rep.rs:87:42 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:87:65 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::get_value` in constant functions [INFO] [stdout] --> bounded_math/src/num.rs:88:24 [INFO] [stdout] | [INFO] [stdout] 88 | let Ok(ret) = self.get_value().try_into() else { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `>>::try_into` in constant functions [INFO] [stdout] --> bounded_math/src/num.rs:88:36 [INFO] [stdout] | [INFO] [stdout] 88 | let Ok(ret) = self.get_value().try_into() else { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::get_value` in constant functions [INFO] [stdout] --> bounded_math/src/num.rs:100:24 [INFO] [stdout] | [INFO] [stdout] 100 | let Ok(ret) = self.get_value().try_into() else { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `>::try_into` in constant functions [INFO] [stdout] --> bounded_math/src/num.rs:100:36 [INFO] [stdout] | [INFO] [stdout] 100 | let Ok(ret) = self.get_value().try_into() else { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0493]: destructor of `Result>::Error>` cannot be evaluated at compile-time [INFO] [stdout] --> bounded_math/src/num.rs:100:19 [INFO] [stdout] | [INFO] [stdout] 100 | let Ok(ret) = self.get_value().try_into() else { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the destructor for this type cannot be evaluated in constant functions [INFO] [stdout] 101 | unreachable!() [INFO] [stdout] 102 | }; [INFO] [stdout] | - value is dropped here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `RangeInclusive::::contains::` in constant functions [INFO] [stdout] --> bounded_math/src/num.rs:111:20 [INFO] [stdout] | [INFO] [stdout] 111 | if Self::RANGE.contains(T::RANGE.start()) && Self::RANGE.contains(T::RANGE.end()) [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 fn `RangeInclusive::::contains::` in constant functions [INFO] [stdout] --> bounded_math/src/num.rs:111:62 [INFO] [stdout] | [INFO] [stdout] 111 | if Self::RANGE.contains(T::RANGE.start()) && Self::RANGE.contains(T::RANGE.end()) [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 fn `>::into` in constant functions [INFO] [stdout] --> bounded_math/src/num.rs:112:37 [INFO] [stdout] | [INFO] [stdout] 112 | || Self::RANGE.contains(&self.into()) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `RangeInclusive::::contains::` in constant functions [INFO] [stdout] --> bounded_math/src/num.rs:112:22 [INFO] [stdout] | [INFO] [stdout] 112 | || Self::RANGE.contains(&self.into()) [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 fn `::get_value` in constant functions [INFO] [stdout] --> bounded_math/src/num.rs:114:17 [INFO] [stdout] | [INFO] [stdout] 114 | Some(self.get_value().try_into().ok()?) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `>::try_into` in constant functions [INFO] [stdout] --> bounded_math/src/num.rs:114:29 [INFO] [stdout] | [INFO] [stdout] 114 | Some(self.get_value().try_into().ok()?) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `Result::>::Error>::ok` in constant functions [INFO] [stdout] --> bounded_math/src/num.rs:114:40 [INFO] [stdout] | [INFO] [stdout] 114 | Some(self.get_value().try_into().ok()?) [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 determine the branch of `Option` in constant functions [INFO] [stdout] --> bounded_math/src/num.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | Some(self.get_value().try_into().ok()?) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: impl defined here, but it is not `const` [INFO] [stdout] --> /rustc/b0696a5160711c068cb1f01b7437db7990d15750/library/core/src/option.rs:2475:1 [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: `?` cannot convert from residual of `Option` in constant functions [INFO] [stdout] --> bounded_math/src/num.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | Some(self.get_value().try_into().ok()?) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: impl defined here, but it is not `const` [INFO] [stdout] --> /rustc/b0696a5160711c068cb1f01b7437db7990d15750/library/core/src/option.rs:2494:1 [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 135 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0015, E0493, E0635, E0741. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0015`. [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `>::into` in constants [INFO] [stdout] --> bounded_math/src/inner_rep.rs:90:42 [INFO] [stdout] | [INFO] [stdout] 90 | const RET: bool = VAL <= Self::MAX.into(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `bounded_math` (lib) due to 136 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0015]: cannot call non-const fn `>::into` in constants [INFO] [stdout] --> bounded_math/src/inner_rep.rs:90:42 [INFO] [stdout] | [INFO] [stdout] 90 | const RET: bool = VAL <= Self::MAX.into(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `>::into` in constants [INFO] [stdout] --> bounded_math/src/inner_rep.rs:90:42 [INFO] [stdout] | [INFO] [stdout] 90 | const RET: bool = VAL <= Self::MAX.into(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `>::into` in constants [INFO] [stdout] --> bounded_math/src/inner_rep.rs:90:42 [INFO] [stdout] | [INFO] [stdout] 90 | const RET: bool = VAL <= Self::MAX.into(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `>::into` in constants [INFO] [stdout] --> bounded_math/src/inner_rep.rs:90:42 [INFO] [stdout] | [INFO] [stdout] 90 | const RET: bool = VAL <= Self::MAX.into(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/impls.rs:22:55 [INFO] [stdout] | [INFO] [stdout] 22 | impl [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | impl_op! {Add, add |lhs, rhs| { (lhs.start() + rhs.start())..=(lhs.end() + rhs.end()) }} [INFO] [stdout] | ---------------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/impls.rs:22:55 [INFO] [stdout] | [INFO] [stdout] 22 | impl [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | / impl_op! {Sub, sub |lhs, rhs| { [INFO] [stdout] 43 | | (lhs.start() - rhs.end()) [INFO] [stdout] 44 | | ..= [INFO] [stdout] 45 | | (lhs.end() - rhs.start()) [INFO] [stdout] 46 | | }} [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/impls.rs:22:55 [INFO] [stdout] | [INFO] [stdout] 22 | impl [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | / impl_op! {Mul, mul |lhs, rhs| { [INFO] [stdout] 48 | | i128::min(i128::min(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::min(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] 49 | | ..= [INFO] [stdout] 50 | | i128::max(i128::max(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::max(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] 51 | | }} [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/impls.rs:22:55 [INFO] [stdout] | [INFO] [stdout] 22 | impl [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | / impl_op! {Div, div |lhs, rhs| { [INFO] [stdout] 54 | | assert!(!(*rhs.start() == 0 && *rhs.end() == 0), "tried to divide by Integer<0..=0>"); [INFO] [stdout] 55 | | let effective_end = if *rhs.end() == 0 { -1 } else {*rhs.end()}; [INFO] [stdout] 56 | | let effective_start = if *rhs.start() == 0 { 1 } else {*rhs.start() }; [INFO] [stdout] ... | [INFO] [stdout] 86 | | [INFO] [stdout] 87 | | }} [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/impls.rs:22:55 [INFO] [stdout] | [INFO] [stdout] 22 | impl [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | / impl_op! {Rem, rem |lhs, rhs| { [INFO] [stdout] 90 | | assert!(!(*rhs.start() == 0 && *rhs.end() == 0), "tried to get remainder of division by Integer(0..=0)"); [INFO] [stdout] 91 | | let eff_rhs = rhs.start().abs().max(rhs.end().abs()); [INFO] [stdout] 92 | | [INFO] [stdout] ... | [INFO] [stdout] 96 | | start..=end [INFO] [stdout] 97 | | }} [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/impls.rs:99:68 [INFO] [stdout] | [INFO] [stdout] 99 | const fn ranges_overlap() -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/impls.rs:106:49 [INFO] [stdout] | [INFO] [stdout] 106 | impl const PartialEq [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/impls.rs:111:71 [INFO] [stdout] | [INFO] [stdout] 111 | const fn must_be_equal() -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/impls.rs:128:49 [INFO] [stdout] | [INFO] [stdout] 128 | impl const PartialOrd [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/num.rs:9:33 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Integer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/num.rs:13:19 [INFO] [stdout] | [INFO] [stdout] 13 | impl Integer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/num.rs:22:19 [INFO] [stdout] | [INFO] [stdout] 22 | impl ContainsRet for Integer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/num.rs:27:19 [INFO] [stdout] | [INFO] [stdout] 27 | impl ValInRange for Integer where [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/num.rs:31:47 [INFO] [stdout] | [INFO] [stdout] 31 | pub trait RangeInRange { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/num.rs:34:46 [INFO] [stdout] | [INFO] [stdout] 34 | impl RangeInRange for T { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/num.rs:39:19 [INFO] [stdout] | [INFO] [stdout] 39 | impl Debug for Integer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/num.rs:53:19 [INFO] [stdout] | [INFO] [stdout] 53 | impl IsExact for Integer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/num.rs:57:19 [INFO] [stdout] | [INFO] [stdout] 57 | impl Integer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/num.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | impl const IntegerRange for Integer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/num.rs:130:19 [INFO] [stdout] | [INFO] [stdout] 130 | impl const From> for i128 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/num.rs:136:19 [INFO] [stdout] | [INFO] [stdout] 136 | impl const TryFrom for Integer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `RangeInclusive::::contains::` in constants [INFO] [stdout] --> bounded_math/src/num.rs:23:27 [INFO] [stdout] | [INFO] [stdout] 23 | const RET: bool = RANGE.contains(&VALUE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/inner_rep.rs:11:33 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct IntRepr(::Repr); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/inner_rep.rs:20:19 [INFO] [stdout] | [INFO] [stdout] 20 | impl const IntRepresentation for IntRepr { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/inner_rep.rs:41:19 [INFO] [stdout] | [INFO] [stdout] 41 | impl Debug for IntRepr { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/inner_rep.rs:46:19 [INFO] [stdout] | [INFO] [stdout] 46 | impl Display for IntRepr { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/inner_rep.rs:73:23 [INFO] [stdout] | [INFO] [stdout] 73 | impl const $largest_prim_tr for IntRepr [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/inner_rep.rs:93:23 [INFO] [stdout] | [INFO] [stdout] 93 | impl const $cur_prim_tr for IntRepr [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/inner_rep.rs:100:23 [INFO] [stdout] | [INFO] [stdout] 100 | impl const $cur_prim_tr for IntRepr { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/inner_rep.rs:93:23 [INFO] [stdout] | [INFO] [stdout] 93 | impl const $cur_prim_tr for IntRepr [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/inner_rep.rs:100:23 [INFO] [stdout] | [INFO] [stdout] 100 | impl const $cur_prim_tr for IntRepr { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/inner_rep.rs:93:23 [INFO] [stdout] | [INFO] [stdout] 93 | impl const $cur_prim_tr for IntRepr [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/inner_rep.rs:100:23 [INFO] [stdout] | [INFO] [stdout] 100 | impl const $cur_prim_tr for IntRepr { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/inner_rep.rs:93:23 [INFO] [stdout] | [INFO] [stdout] 93 | impl const $cur_prim_tr for IntRepr [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/inner_rep.rs:100:23 [INFO] [stdout] | [INFO] [stdout] 100 | impl const $cur_prim_tr for IntRepr { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/inner_rep.rs:93:23 [INFO] [stdout] | [INFO] [stdout] 93 | impl const $cur_prim_tr for IntRepr [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0741]: `RangeInclusive` must implement `ConstParamTy` to be used as the type of a const generic parameter [INFO] [stdout] --> bounded_math/src/inner_rep.rs:100:23 [INFO] [stdout] | [INFO] [stdout] 100 | impl const $cur_prim_tr for IntRepr { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `RangeInclusive::::is_empty` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:17:36 [INFO] [stdout] | [INFO] [stdout] 17 | debug_assert!(!$lhs_name.is_empty() && !$rhs_name.is_empty()); // Guaranteed by the type system [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | impl_op! {Add, add |lhs, rhs| { (lhs.start() + rhs.start())..=(lhs.end() + rhs.end()) }} [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 `impl_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `RangeInclusive::::is_empty` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:17:61 [INFO] [stdout] | [INFO] [stdout] 17 | debug_assert!(!$lhs_name.is_empty() && !$rhs_name.is_empty()); // Guaranteed by the type system [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | impl_op! {Add, add |lhs, rhs| { (lhs.start() + rhs.start())..=(lhs.end() + rhs.end()) }} [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 `impl_op` (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] --> bounded_math/src/impls.rs:41:33 [INFO] [stdout] | [INFO] [stdout] 41 | impl_op! {Add, add |lhs, rhs| { (lhs.start() + rhs.start())..=(lhs.end() + rhs.end()) }} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:41:63 [INFO] [stdout] | [INFO] [stdout] 41 | impl_op! {Add, add |lhs, rhs| { (lhs.start() + rhs.start())..=(lhs.end() + rhs.end()) }} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `RangeInclusive::::is_empty` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:17:36 [INFO] [stdout] | [INFO] [stdout] 17 | debug_assert!(!$lhs_name.is_empty() && !$rhs_name.is_empty()); // Guaranteed by the type system [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | / impl_op! {Sub, sub |lhs, rhs| { [INFO] [stdout] 43 | | (lhs.start() - rhs.end()) [INFO] [stdout] 44 | | ..= [INFO] [stdout] 45 | | (lhs.end() - rhs.start()) [INFO] [stdout] 46 | | }} [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 `impl_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `RangeInclusive::::is_empty` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:17:61 [INFO] [stdout] | [INFO] [stdout] 17 | debug_assert!(!$lhs_name.is_empty() && !$rhs_name.is_empty()); // Guaranteed by the type system [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | / impl_op! {Sub, sub |lhs, rhs| { [INFO] [stdout] 43 | | (lhs.start() - rhs.end()) [INFO] [stdout] 44 | | ..= [INFO] [stdout] 45 | | (lhs.end() - rhs.start()) [INFO] [stdout] 46 | | }} [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 `impl_op` (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] --> bounded_math/src/impls.rs:43:3 [INFO] [stdout] | [INFO] [stdout] 43 | (lhs.start() - rhs.end()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:45:3 [INFO] [stdout] | [INFO] [stdout] 45 | (lhs.end() - rhs.start()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `RangeInclusive::::is_empty` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:17:36 [INFO] [stdout] | [INFO] [stdout] 17 | debug_assert!(!$lhs_name.is_empty() && !$rhs_name.is_empty()); // Guaranteed by the type system [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | / impl_op! {Mul, mul |lhs, rhs| { [INFO] [stdout] 48 | | i128::min(i128::min(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::min(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] 49 | | ..= [INFO] [stdout] 50 | | i128::max(i128::max(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::max(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] 51 | | }} [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 `impl_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `RangeInclusive::::is_empty` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:17:61 [INFO] [stdout] | [INFO] [stdout] 17 | debug_assert!(!$lhs_name.is_empty() && !$rhs_name.is_empty()); // Guaranteed by the type system [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | / impl_op! {Mul, mul |lhs, rhs| { [INFO] [stdout] 48 | | i128::min(i128::min(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::min(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] 49 | | ..= [INFO] [stdout] 50 | | i128::max(i128::max(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::max(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] 51 | | }} [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 `impl_op` (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] --> bounded_math/src/impls.rs:48:23 [INFO] [stdout] | [INFO] [stdout] 48 | i128::min(i128::min(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::min(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:48:50 [INFO] [stdout] | [INFO] [stdout] 48 | i128::min(i128::min(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::min(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::min` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | i128::min(i128::min(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::min(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:48:86 [INFO] [stdout] | [INFO] [stdout] 48 | i128::min(i128::min(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::min(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:48:111 [INFO] [stdout] | [INFO] [stdout] 48 | i128::min(i128::min(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::min(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::min` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:48:76 [INFO] [stdout] | [INFO] [stdout] 48 | i128::min(i128::min(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::min(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::min` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:48:3 [INFO] [stdout] | [INFO] [stdout] 48 | i128::min(i128::min(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::min(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:50:23 [INFO] [stdout] | [INFO] [stdout] 50 | i128::max(i128::max(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::max(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:50:50 [INFO] [stdout] | [INFO] [stdout] 50 | i128::max(i128::max(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::max(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::max` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | i128::max(i128::max(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::max(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:50:86 [INFO] [stdout] | [INFO] [stdout] 50 | i128::max(i128::max(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::max(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:50:111 [INFO] [stdout] | [INFO] [stdout] 50 | i128::max(i128::max(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::max(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::max` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:50:76 [INFO] [stdout] | [INFO] [stdout] 50 | i128::max(i128::max(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::max(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::max` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:50:3 [INFO] [stdout] | [INFO] [stdout] 50 | i128::max(i128::max(lhs.start() * rhs.start(), lhs.start() * rhs.end()), i128::max(lhs.end() * rhs.start(), lhs.end() * rhs.end())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `RangeInclusive::::is_empty` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:17:36 [INFO] [stdout] | [INFO] [stdout] 17 | debug_assert!(!$lhs_name.is_empty() && !$rhs_name.is_empty()); // Guaranteed by the type system [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | / impl_op! {Div, div |lhs, rhs| { [INFO] [stdout] 54 | | assert!(!(*rhs.start() == 0 && *rhs.end() == 0), "tried to divide by Integer<0..=0>"); [INFO] [stdout] 55 | | let effective_end = if *rhs.end() == 0 { -1 } else {*rhs.end()}; [INFO] [stdout] 56 | | let effective_start = if *rhs.start() == 0 { 1 } else {*rhs.start() }; [INFO] [stdout] ... | [INFO] [stdout] 86 | | [INFO] [stdout] 87 | | }} [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 `impl_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `RangeInclusive::::is_empty` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:17:61 [INFO] [stdout] | [INFO] [stdout] 17 | debug_assert!(!$lhs_name.is_empty() && !$rhs_name.is_empty()); // Guaranteed by the type system [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | / impl_op! {Div, div |lhs, rhs| { [INFO] [stdout] 54 | | assert!(!(*rhs.start() == 0 && *rhs.end() == 0), "tried to divide by Integer<0..=0>"); [INFO] [stdout] 55 | | let effective_end = if *rhs.end() == 0 { -1 } else {*rhs.end()}; [INFO] [stdout] 56 | | let effective_start = if *rhs.start() == 0 { 1 } else {*rhs.start() }; [INFO] [stdout] ... | [INFO] [stdout] 86 | | [INFO] [stdout] 87 | | }} [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 `impl_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::min` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:61:22 [INFO] [stdout] | [INFO] [stdout] 61 | let mut min = val1.min(val2); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::max` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:62:22 [INFO] [stdout] | [INFO] [stdout] 62 | let mut max = val1.max(val2); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::min` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:67:22 [INFO] [stdout] | [INFO] [stdout] 67 | min = min.min(val1.min(val2)); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::min` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | min = min.min(val1.min(val2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::max` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:68:22 [INFO] [stdout] | [INFO] [stdout] 68 | max = max.max(val1.max(val2)); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::max` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | max = max.max(val1.max(val2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `RangeInclusive::::contains::` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:70:34 [INFO] [stdout] | [INFO] [stdout] 70 | if effective_start != 1 && rhs.contains(&1) { [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 fn `::min` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:74:24 [INFO] [stdout] | [INFO] [stdout] 74 | min = min.min(val1.min(val2)); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::min` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:74:15 [INFO] [stdout] | [INFO] [stdout] 74 | min = min.min(val1.min(val2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::max` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:75:24 [INFO] [stdout] | [INFO] [stdout] 75 | max = max.max(val1.max(val2)); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::max` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:75:15 [INFO] [stdout] | [INFO] [stdout] 75 | max = max.max(val1.max(val2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `RangeInclusive::::contains::` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:77:33 [INFO] [stdout] | [INFO] [stdout] 77 | if effective_end != -1 && rhs.contains(&-1) { [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 fn `::min` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:81:24 [INFO] [stdout] | [INFO] [stdout] 81 | min = min.min(val1.min(val2)); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::min` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:81:15 [INFO] [stdout] | [INFO] [stdout] 81 | min = min.min(val1.min(val2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::max` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:82:24 [INFO] [stdout] | [INFO] [stdout] 82 | max = max.max(val1.max(val2)); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::max` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:82:15 [INFO] [stdout] | [INFO] [stdout] 82 | max = max.max(val1.max(val2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `RangeInclusive::::is_empty` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:17:36 [INFO] [stdout] | [INFO] [stdout] 17 | debug_assert!(!$lhs_name.is_empty() && !$rhs_name.is_empty()); // Guaranteed by the type system [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | / impl_op! {Rem, rem |lhs, rhs| { [INFO] [stdout] 90 | | assert!(!(*rhs.start() == 0 && *rhs.end() == 0), "tried to get remainder of division by Integer(0..=0)"); [INFO] [stdout] 91 | | let eff_rhs = rhs.start().abs().max(rhs.end().abs()); [INFO] [stdout] 92 | | [INFO] [stdout] ... | [INFO] [stdout] 96 | | start..=end [INFO] [stdout] 97 | | }} [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 `impl_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `RangeInclusive::::is_empty` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:17:61 [INFO] [stdout] | [INFO] [stdout] 17 | debug_assert!(!$lhs_name.is_empty() && !$rhs_name.is_empty()); // Guaranteed by the type system [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | / impl_op! {Rem, rem |lhs, rhs| { [INFO] [stdout] 90 | | assert!(!(*rhs.start() == 0 && *rhs.end() == 0), "tried to get remainder of division by Integer(0..=0)"); [INFO] [stdout] 91 | | let eff_rhs = rhs.start().abs().max(rhs.end().abs()); [INFO] [stdout] 92 | | [INFO] [stdout] ... | [INFO] [stdout] 96 | | start..=end [INFO] [stdout] 97 | | }} [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 `impl_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::max` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:91:35 [INFO] [stdout] | [INFO] [stdout] 91 | let eff_rhs = rhs.start().abs().max(rhs.end().abs()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `>::into` in constants [INFO] [stdout] --> bounded_math/src/test.rs:140:40 [INFO] [stdout] | [INFO] [stdout] 140 | mem::size_of::>(), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `>::into` in constants [INFO] [stdout] --> bounded_math/src/test.rs:140:60 [INFO] [stdout] | [INFO] [stdout] 140 | mem::size_of::>(), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `>::into` in constants [INFO] [stdout] --> bounded_math/src/test.rs:144:40 [INFO] [stdout] | [INFO] [stdout] 144 | mem::size_of::>(), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `>::into` in constants [INFO] [stdout] --> bounded_math/src/test.rs:144:60 [INFO] [stdout] | [INFO] [stdout] 144 | mem::size_of::>(), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `>::into` in constants [INFO] [stdout] --> bounded_math/src/test.rs:148:40 [INFO] [stdout] | [INFO] [stdout] 148 | mem::size_of::>(), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `>::into` in constants [INFO] [stdout] --> bounded_math/src/test.rs:148:60 [INFO] [stdout] | [INFO] [stdout] 148 | mem::size_of::>(), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `>::into` in constants [INFO] [stdout] --> bounded_math/src/test.rs:154:40 [INFO] [stdout] | [INFO] [stdout] 154 | mem::size_of::>(), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `>::from` in constants [INFO] [stdout] --> bounded_math/src/test.rs:154:51 [INFO] [stdout] | [INFO] [stdout] 154 | mem::size_of::>(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `>::from` in constants [INFO] [stdout] --> bounded_math/src/test.rs:154:74 [INFO] [stdout] | [INFO] [stdout] 154 | mem::size_of::>(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `>::into` in constants [INFO] [stdout] --> bounded_math/src/test.rs:159:40 [INFO] [stdout] | [INFO] [stdout] 159 | mem::size_of::>(), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `>::into` in constants [INFO] [stdout] --> bounded_math/src/test.rs:159:60 [INFO] [stdout] | [INFO] [stdout] 159 | mem::size_of::>(), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constants [INFO] [stdout] --> bounded_math/src/num.rs:54:23 [INFO] [stdout] | [INFO] [stdout] 54 | const EXACT: bool = RANGE.start() == RANGE.end(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] help: consider dereferencing here [INFO] [stdout] | [INFO] [stdout] 54 | const EXACT: bool = *RANGE.start() == *RANGE.end(); [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `RangeInclusive::::contains::` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:100:42 [INFO] [stdout] | [INFO] [stdout] 100 | let lhs_contains_rhs_start = LHS_RANGE.contains(RHS::RANGE.start()); [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 fn `RangeInclusive::::contains::` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:101:40 [INFO] [stdout] | [INFO] [stdout] 101 | let lhs_contains_rhs_end = LHS_RANGE.contains(RHS::RANGE.end()); [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 fn `RangeInclusive::::contains::` in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:102:43 [INFO] [stdout] | [INFO] [stdout] 102 | let rhs_contains_lhs_start = RHS::RANGE.contains(LHS_RANGE.start()); [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] --> bounded_math/src/impls.rs:112:23 [INFO] [stdout] | [INFO] [stdout] 112 | let lhs_exact = LHS_RANGE.start() == LHS_RANGE.end(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] help: consider dereferencing here [INFO] [stdout] | [INFO] [stdout] 112 | let lhs_exact = *LHS_RANGE.start() == *LHS_RANGE.end(); [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:113:23 [INFO] [stdout] | [INFO] [stdout] 113 | let rhs_exact = RHS::RANGE.start() == RHS::RANGE.end(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] help: consider dereferencing here [INFO] [stdout] | [INFO] [stdout] 113 | let rhs_exact = *RHS::RANGE.start() == *RHS::RANGE.end(); [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constant functions [INFO] [stdout] --> bounded_math/src/impls.rs:114:24 [INFO] [stdout] | [INFO] [stdout] 114 | let same_start = LHS_RANGE.start() == RHS::RANGE.start(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] help: consider dereferencing here [INFO] [stdout] | [INFO] [stdout] 114 | let same_start = *LHS_RANGE.start() == *RHS::RANGE.start(); [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn ` as TryFrom>::try_from` in constants [INFO] [stdout] --> bounded_math/src/num.rs:14:25 [INFO] [stdout] | [INFO] [stdout] 14 | pub const MIN: Self = Self::try_from(*RANGE.start()).ok().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `Result::, ()>::ok` in constants [INFO] [stdout] --> bounded_math/src/num.rs:14:56 [INFO] [stdout] | [INFO] [stdout] 14 | pub const MIN: Self = Self::try_from(*RANGE.start()).ok().unwrap(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn ` as TryFrom>::try_from` in constants [INFO] [stdout] --> bounded_math/src/num.rs:15:25 [INFO] [stdout] | [INFO] [stdout] 15 | pub const MAX: Self = Self::try_from(*RANGE.end()).ok().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `Result::, ()>::ok` in constants [INFO] [stdout] --> bounded_math/src/num.rs:15:54 [INFO] [stdout] | [INFO] [stdout] 15 | pub const MAX: Self = Self::try_from(*RANGE.end()).ok().unwrap(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `RangeInclusive::::contains::` in constants [INFO] [stdout] --> bounded_math/src/num.rs:36:14 [INFO] [stdout] | [INFO] [stdout] 36 | T::RANGE.contains(CONTAINED_RANGE.start()) && T::RANGE.contains(CONTAINED_RANGE.end()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `RangeInclusive::::contains::` in constants [INFO] [stdout] --> bounded_math/src/num.rs:36:60 [INFO] [stdout] | [INFO] [stdout] 36 | T::RANGE.contains(CONTAINED_RANGE.start()) && T::RANGE.contains(CONTAINED_RANGE.end()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn ` as IntRepresentation>::from_i128_unchecked` in constant functions [INFO] [stdout] --> bounded_math/src/num.rs:65:21 [INFO] [stdout] | [INFO] [stdout] 65 | val: unsafe { IntRepr::::from_i128_unchecked(VALUE) }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn ` as IntRepresentation>::from_i128_unchecked` in constant functions [INFO] [stdout] --> bounded_math/src/num.rs:75:21 [INFO] [stdout] | [INFO] [stdout] 75 | val: unsafe { IntRepr::::from_i128_unchecked(*RANGE.start()) }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::get_value` in constant functions [INFO] [stdout] --> bounded_math/src/num.rs:88:24 [INFO] [stdout] | [INFO] [stdout] 88 | let Ok(ret) = self.get_value().try_into() else { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `>>::try_into` in constant functions [INFO] [stdout] --> bounded_math/src/num.rs:88:36 [INFO] [stdout] | [INFO] [stdout] 88 | let Ok(ret) = self.get_value().try_into() else { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::get_value` in constant functions [INFO] [stdout] --> bounded_math/src/num.rs:100:24 [INFO] [stdout] | [INFO] [stdout] 100 | let Ok(ret) = self.get_value().try_into() else { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `>::try_into` in constant functions [INFO] [stdout] --> bounded_math/src/num.rs:100:36 [INFO] [stdout] | [INFO] [stdout] 100 | let Ok(ret) = self.get_value().try_into() else { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0493]: destructor of `Result>::Error>` cannot be evaluated at compile-time [INFO] [stdout] --> bounded_math/src/num.rs:100:19 [INFO] [stdout] | [INFO] [stdout] 100 | let Ok(ret) = self.get_value().try_into() else { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the destructor for this type cannot be evaluated in constant functions [INFO] [stdout] 101 | unreachable!() [INFO] [stdout] 102 | }; [INFO] [stdout] | - value is dropped here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `RangeInclusive::::contains::` in constant functions [INFO] [stdout] --> bounded_math/src/num.rs:111:20 [INFO] [stdout] | [INFO] [stdout] 111 | if Self::RANGE.contains(T::RANGE.start()) && Self::RANGE.contains(T::RANGE.end()) [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 fn `RangeInclusive::::contains::` in constant functions [INFO] [stdout] --> bounded_math/src/num.rs:111:62 [INFO] [stdout] | [INFO] [stdout] 111 | if Self::RANGE.contains(T::RANGE.start()) && Self::RANGE.contains(T::RANGE.end()) [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 fn `>::into` in constant functions [INFO] [stdout] --> bounded_math/src/num.rs:112:37 [INFO] [stdout] | [INFO] [stdout] 112 | || Self::RANGE.contains(&self.into()) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `RangeInclusive::::contains::` in constant functions [INFO] [stdout] --> bounded_math/src/num.rs:112:22 [INFO] [stdout] | [INFO] [stdout] 112 | || Self::RANGE.contains(&self.into()) [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 fn `::get_value` in constant functions [INFO] [stdout] --> bounded_math/src/num.rs:114:17 [INFO] [stdout] | [INFO] [stdout] 114 | Some(self.get_value().try_into().ok()?) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `>::try_into` in constant functions [INFO] [stdout] --> bounded_math/src/num.rs:114:29 [INFO] [stdout] | [INFO] [stdout] 114 | Some(self.get_value().try_into().ok()?) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `Result::>::Error>::ok` in constant functions [INFO] [stdout] --> bounded_math/src/num.rs:114:40 [INFO] [stdout] | [INFO] [stdout] 114 | Some(self.get_value().try_into().ok()?) [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 determine the branch of `Option` in constant functions [INFO] [stdout] --> bounded_math/src/num.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | Some(self.get_value().try_into().ok()?) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: impl defined here, but it is not `const` [INFO] [stdout] --> /rustc/b0696a5160711c068cb1f01b7437db7990d15750/library/core/src/option.rs:2475:1 [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: `?` cannot convert from residual of `Option` in constant functions [INFO] [stdout] --> bounded_math/src/num.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | Some(self.get_value().try_into().ok()?) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: impl defined here, but it is not `const` [INFO] [stdout] --> /rustc/b0696a5160711c068cb1f01b7437db7990d15750/library/core/src/option.rs:2494:1 [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 147 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0015, E0493, E0635, E0741. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0015`. [INFO] [stdout] [INFO] [stderr] error: could not compile `bounded_math` (lib test) due to 148 previous errors [INFO] running `Command { std: "docker" "inspect" "2ea19fa0f78f5e93383062c8cfee21d27e45ab816c85a9be6a026824e6482e38", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2ea19fa0f78f5e93383062c8cfee21d27e45ab816c85a9be6a026824e6482e38", kill_on_drop: false }` [INFO] [stdout] 2ea19fa0f78f5e93383062c8cfee21d27e45ab816c85a9be6a026824e6482e38 [INFO] checking ink-feather-org/bounded_math against try#bfe97fcae016881ad333f0ff8cea2cadb9cf136c for pr-121848 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fink-feather-org%2Fbounded_math" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ink-feather-org/bounded_math on toolchain bfe97fcae016881ad333f0ff8cea2cadb9cf136c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bfe97fcae016881ad333f0ff8cea2cadb9cf136c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-2-tc2/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/ink-feather-org/bounded_math [INFO] finished tweaking git repo https://github.com/ink-feather-org/bounded_math [INFO] tweaked toml for git repo https://github.com/ink-feather-org/bounded_math written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ink-feather-org/bounded_math already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bfe97fcae016881ad333f0ff8cea2cadb9cf136c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+bfe97fcae016881ad333f0ff8cea2cadb9cf136c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1f891be6fd710ba8baee1480d8f274cac6d56aeac7e69c5e755554a1a9ac327f [INFO] running `Command { std: "docker" "start" "-a" "1f891be6fd710ba8baee1480d8f274cac6d56aeac7e69c5e755554a1a9ac327f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1f891be6fd710ba8baee1480d8f274cac6d56aeac7e69c5e755554a1a9ac327f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f891be6fd710ba8baee1480d8f274cac6d56aeac7e69c5e755554a1a9ac327f", kill_on_drop: false }` [INFO] [stdout] 1f891be6fd710ba8baee1480d8f274cac6d56aeac7e69c5e755554a1a9ac327f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+bfe97fcae016881ad333f0ff8cea2cadb9cf136c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5d22916e47ae73e156f95c98e9948e825249c9582e1ce34fcbd4383525ac2f94 [INFO] running `Command { std: "docker" "start" "-a" "5d22916e47ae73e156f95c98e9948e825249c9582e1ce34fcbd4383525ac2f94", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Checking bounded_math v0.0.1 (/opt/rustwide/workdir/bounded_math) [INFO] [stdout] error[E0635]: unknown feature `const_convert` [INFO] [stdout] --> bounded_math/src/lib.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | #![feature(const_convert)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `const_result_drop` [INFO] [stdout] --> bounded_math/src/lib.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | #![feature(const_result_drop)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> bounded_math/src/num.rs:82:39 [INFO] [stdout] | [INFO] [stdout] 82 | pub trait IntegerRange: Copy + ~const Into { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> bounded_math/src/num.rs:95:41 [INFO] [stdout] | [INFO] [stdout] 95 | fn to>(self) -> T [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> bounded_math/src/num.rs:107:45 [INFO] [stdout] | [INFO] [stdout] 107 | fn try_to>(self) -> Option [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> bounded_math/src/inner_rep.rs:15:36 [INFO] [stdout] | [INFO] [stdout] 15 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> bounded_math/src/inner_rep.rs:15:59 [INFO] [stdout] | [INFO] [stdout] 15 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> bounded_math/src/inner_rep.rs:68:40 [INFO] [stdout] | [INFO] [stdout] 68 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:68:63 [INFO] [stdout] | [INFO] [stdout] 68 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:87:42 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:87:65 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:87:42 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:87:65 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:87:42 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:87:65 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:87:42 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:87:65 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:87:42 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:87:65 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] thread 'rustc' panicked at compiler/rustc_middle/src/util/bug.rs:35:44: [INFO] [stdout] error: internal compiler error: compiler/rustc_trait_selection/src/solve/normalizes_to/mod.rs:276:25: associated const projection is not supported yet [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Box [INFO] [stderr] stack backtrace: [INFO] [stdout] error[E0635]: unknown feature `const_num_from_num` [INFO] [stdout] --> bounded_math/src/lib.rs:17:33 [INFO] [stdout] | [INFO] [stdout] 17 | #![cfg_attr(test, feature(test, const_num_from_num))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `const_convert` [INFO] [stdout] --> bounded_math/src/lib.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | #![feature(const_convert)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `const_result_drop` [INFO] [stdout] --> bounded_math/src/lib.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | #![feature(const_result_drop)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> bounded_math/src/num.rs:82:39 [INFO] [stdout] | [INFO] [stdout] 82 | pub trait IntegerRange: Copy + ~const Into { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> bounded_math/src/num.rs:95:41 [INFO] [stdout] | [INFO] [stdout] 95 | fn to>(self) -> T [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> bounded_math/src/num.rs:107:45 [INFO] [stdout] | [INFO] [stdout] 107 | fn try_to>(self) -> Option [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> bounded_math/src/inner_rep.rs:15:36 [INFO] [stdout] | [INFO] [stdout] 15 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> bounded_math/src/inner_rep.rs:15:59 [INFO] [stdout] | [INFO] [stdout] 15 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> bounded_math/src/inner_rep.rs:68:40 [INFO] [stdout] | [INFO] [stdout] 68 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:68:63 [INFO] [stdout] | [INFO] [stdout] 68 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:87:42 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:87:65 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:87:42 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:87:65 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:87:42 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:87:65 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:87:42 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:87:65 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:87:42 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (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] --> bounded_math/src/inner_rep.rs:87:65 [INFO] [stdout] | [INFO] [stdout] 87 | type Repr: Clone + Copy + ~const TryFrom + ~const Into; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | / repr_spec!( [INFO] [stdout] 113 | | IntRepresentation, [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | (u128, SpecIntReprU128), [INFO] [stdout] ... | [INFO] [stdout] 121 | | ) [INFO] [stdout] 122 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `repr_spec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: internal compiler error: compiler/rustc_trait_selection/src/solve/normalizes_to/mod.rs:276:25: associated const projection is not supported yet [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] thread 'rustc' panicked at compiler/rustc_middle/src/util/bug.rs:35:44: [INFO] [stderr] Box [INFO] [stderr] stack backtrace: [INFO] [stderr] 0: 0x7f326d58cc16 - std::backtrace_rs::backtrace::libunwind::trace::h31bf9e16c3129d88 [INFO] [stderr] at /rustc/bfe97fcae016881ad333f0ff8cea2cadb9cf136c/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5 [INFO] [stderr] 1: 0x7f326d58cc16 - std::backtrace_rs::backtrace::trace_unsynchronized::hfbf8ae71cff6d572 [INFO] [stderr] at /rustc/bfe97fcae016881ad333f0ff8cea2cadb9cf136c/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stderr] 2: 0x7f326d58cc16 - std::sys_common::backtrace::_print_fmt::h51a5c032426e5886 [INFO] [stderr] at /rustc/bfe97fcae016881ad333f0ff8cea2cadb9cf136c/library/std/src/sys_common/backtrace.rs:68:5 [INFO] [stderr] 3: 0x7f326d58cc16 - ::fmt::hc9ed9fb0e0178e64 [INFO] [stderr] at /rustc/bfe97fcae016881ad333f0ff8cea2cadb9cf136c/library/std/src/sys_common/backtrace.rs:44:22 [INFO] [stderr] 0: 0x7fe25ff8cc16 - std::backtrace_rs::backtrace::libunwind::trace::h31bf9e16c3129d88 [INFO] [stderr] at /rustc/bfe97fcae016881ad333f0ff8cea2cadb9cf136c/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5 [INFO] [stderr] 1: 0x7fe25ff8cc16 - std::backtrace_rs::backtrace::trace_unsynchronized::hfbf8ae71cff6d572 [INFO] [stderr] at /rustc/bfe97fcae016881ad333f0ff8cea2cadb9cf136c/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stderr] 2: 0x7fe25ff8cc16 - std::sys_common::backtrace::_print_fmt::h51a5c032426e5886 [INFO] [stderr] at /rustc/bfe97fcae016881ad333f0ff8cea2cadb9cf136c/library/std/src/sys_common/backtrace.rs:68:5 [INFO] [stderr] 3: 0x7fe25ff8cc16 - ::fmt::hc9ed9fb0e0178e64 [INFO] [stderr] at /rustc/bfe97fcae016881ad333f0ff8cea2cadb9cf136c/library/std/src/sys_common/backtrace.rs:44:22 [INFO] [stderr] 4: 0x7f326d5dd9ec - core::fmt::rt::Argument::fmt::h4294b4ebdfeb70b0 [INFO] [stderr] at /rustc/bfe97fcae016881ad333f0ff8cea2cadb9cf136c/library/core/src/fmt/rt.rs:142:9 [INFO] [stderr] 5: 0x7f326d5dd9ec - core::fmt::write::hecc5a1c31014825e [INFO] [stderr] at /rustc/bfe97fcae016881ad333f0ff8cea2cadb9cf136c/library/core/src/fmt/mod.rs:1120:17 [INFO] [stderr] 6: 0x7f326d5814bf - std::io::Write::write_fmt::hdd43e3748f3c18c1 [INFO] [stderr] at /rustc/bfe97fcae016881ad333f0ff8cea2cadb9cf136c/library/std/src/io/mod.rs:1846:15 [INFO] [stderr] 4: 0x7fe25ffdd9ec - core::fmt::rt::Argument::fmt::h4294b4ebdfeb70b0 [INFO] [stderr] at /rustc/bfe97fcae016881ad333f0ff8cea2cadb9cf136c/library/core/src/fmt/rt.rs:142:9 [INFO] [stderr] 5: 0x7fe25ffdd9ec - core::fmt::write::hecc5a1c31014825e [INFO] [stderr] at /rustc/bfe97fcae016881ad333f0ff8cea2cadb9cf136c/library/core/src/fmt/mod.rs:1120:17 [INFO] [stderr] 6: 0x7fe25ff814bf - std::io::Write::write_fmt::hdd43e3748f3c18c1 [INFO] [stderr] at /rustc/bfe97fcae016881ad333f0ff8cea2cadb9cf136c/library/std/src/io/mod.rs:1846:15 [INFO] [stderr] 7: 0x7f326d58c9c4 - std::sys_common::backtrace::_print::h1ef3744a6b3284d7 [INFO] [stderr] 7: 0x7fe25ff8c9c4 - std::sys_common::backtrace::_print::h1ef3744a6b3284d7 [INFO] [stderr] at /rustc/bfe97fcae016881ad333f0ff8cea2cadb9cf136c/library/std/src/sys_common/backtrace.rs:47:5 [INFO] [stderr] 8: 0x7f326d58c9c4 - std::sys_common::backtrace::print::h87f11e711d7ec1f2 [INFO] [stderr] at /rustc/bfe97fcae016881ad333f0ff8cea2cadb9cf136c/library/std/src/sys_common/backtrace.rs:47:5 [INFO] [stderr] at /rustc/bfe97fcae016881ad333f0ff8cea2cadb9cf136c/library/std/src/sys_common/backtrace.rs:34:9 [INFO] [stderr] 9: 0x7f326d58f6fb - std::panicking::default_hook::{{closure}}::hc671c6c8612bb33a [INFO] [stderr] 8: 0x7fe25ff8c9c4 - std::sys_common::backtrace::print::h87f11e711d7ec1f2 [INFO] [stderr] at /rustc/bfe97fcae016881ad333f0ff8cea2cadb9cf136c/library/std/src/sys_common/backtrace.rs:34:9 [INFO] [stderr] 9: 0x7fe25ff8f6fb - std::panicking::default_hook::{{closure}}::hc671c6c8612bb33a [INFO] [stderr] 10: 0x7f326d58f457 - std::panicking::default_hook::h7755299c777843b5 [INFO] [stderr] at /rustc/bfe97fcae016881ad333f0ff8cea2cadb9cf136c/library/std/src/panicking.rs:292:9 [INFO] [stderr] 10: 0x7fe25ff8f457 - std::panicking::default_hook::h7755299c777843b5 [INFO] [stderr] at /rustc/bfe97fcae016881ad333f0ff8cea2cadb9cf136c/library/std/src/panicking.rs:292:9 [INFO] [stderr] 11: 0x7fe262eedc1c - std[9aeb3b4f76503cc7]::panicking::update_hook::>::{closure#0} [INFO] [stderr] 11: 0x7f32704edc1c - std[9aeb3b4f76503cc7]::panicking::update_hook::>::{closure#0} [INFO] [stderr] 12: 0x7fe25ff8fe60 - as core::ops::function::Fn>::call::h7bd39a21c2bc03e1 [INFO] [stderr] 12: 0x7f326d58fe60 - as core::ops::function::Fn>::call::h7bd39a21c2bc03e1 [INFO] [stderr] at /rustc/bfe97fcae016881ad333f0ff8cea2cadb9cf136c/library/alloc/src/boxed.rs:2030:9 [INFO] [stderr] at /rustc/bfe97fcae016881ad333f0ff8cea2cadb9cf136c/library/alloc/src/boxed.rs:2030:9 [INFO] [stderr] 13: 0x7f326d58fe60 - std::panicking::rust_panic_with_hook::hf5c0a76956d1f55b [INFO] [stderr] 13: 0x7fe25ff8fe60 - std::panicking::rust_panic_with_hook::hf5c0a76956d1f55b [INFO] [stderr] at /rustc/bfe97fcae016881ad333f0ff8cea2cadb9cf136c/library/std/src/panicking.rs:783:13 [INFO] [stderr] at /rustc/bfe97fcae016881ad333f0ff8cea2cadb9cf136c/library/std/src/panicking.rs:783:13 [INFO] [stderr] 14: 0x7fe262f1a004 - std[9aeb3b4f76503cc7]::panicking::begin_panic::::{closure#0} [INFO] [stderr] 14: 0x7f327051a004 - std[9aeb3b4f76503cc7]::panicking::begin_panic::::{closure#0} [INFO] [stderr] 15: 0x7f3270516c56 - std[9aeb3b4f76503cc7]::sys_common::backtrace::__rust_end_short_backtrace::::{closure#0}, !> [INFO] [stderr] 15: 0x7fe262f16c56 - std[9aeb3b4f76503cc7]::sys_common::backtrace::__rust_end_short_backtrace::::{closure#0}, !> [INFO] [stderr] 16: 0x7f3270512476 - std[9aeb3b4f76503cc7]::panicking::begin_panic:: [INFO] [stderr] 16: 0x7fe262f12476 - std[9aeb3b4f76503cc7]::panicking::begin_panic:: [INFO] [stderr] 17: 0x7fe262f23511 - ::emit_producing_guarantee [INFO] [stderr] 17: 0x7f3270523511 - ::emit_producing_guarantee [INFO] [stderr] 18: 0x7fe2632f581c - ::bug:: [INFO] [stderr] 18: 0x7f32708f581c - ::bug:: [INFO] [stderr] 19: 0x7fe2633954db - rustc_middle[54c7c52dbea9abba]::util::bug::opt_span_bug_fmt::::{closure#0} [INFO] [stderr] 19: 0x7f32709954db - rustc_middle[54c7c52dbea9abba]::util::bug::opt_span_bug_fmt::::{closure#0} [INFO] [stderr] 20: 0x7fe263378c6a - rustc_middle[54c7c52dbea9abba]::ty::context::tls::with_opt::::{closure#0}, !>::{closure#0} [INFO] [stderr] 20: 0x7f3270978c6a - rustc_middle[54c7c52dbea9abba]::ty::context::tls::with_opt::::{closure#0}, !>::{closure#0} [INFO] [stderr] 21: 0x7fe263378ae8 - rustc_middle[54c7c52dbea9abba]::ty::context::tls::with_context_opt::::{closure#0}, !>::{closure#0}, !> [INFO] [stderr] 21: 0x7f3270978ae8 - rustc_middle[54c7c52dbea9abba]::ty::context::tls::with_context_opt::::{closure#0}, !>::{closure#0}, !> [INFO] [stderr] 22: 0x7f326ec92a80 - rustc_middle[54c7c52dbea9abba]::util::bug::bug_fmt [INFO] [stderr] 22: 0x7fe261692a80 - rustc_middle[54c7c52dbea9abba]::util::bug::bug_fmt [INFO] [stderr] 23: 0x7f3271c51f12 - ::consider_impl_candidate [INFO] [stderr] 23: 0x7fe264651f12 - ::consider_impl_candidate [INFO] [stderr] 24: 0x7f32724f8d65 - ::with_new_goal::<::evaluate_canonical_goal::{closure#0}::{closure#0}::{closure#0}>::{closure#3} [INFO] [stderr] 24: 0x7fe264ef8d65 - ::with_new_goal::<::evaluate_canonical_goal::{closure#0}::{closure#0}::{closure#0}>::{closure#3} [INFO] [stderr] 25: 0x7f3272399bfe - ::with_new_goal::<::evaluate_canonical_goal::{closure#0}::{closure#0}::{closure#0}> [INFO] [stderr] 25: 0x7fe264d99bfe - ::with_new_goal::<::evaluate_canonical_goal::{closure#0}::{closure#0}::{closure#0}> [INFO] [stderr] 26: 0x7fe264a5ba02 - ::evaluate_goal [INFO] [stderr] 27: 0x7fe264a5a85a - ::try_evaluate_added_goals [INFO] [stderr] 28: 0x7fe26468ea8d - ::try_normalize_term [INFO] [stderr] 26: 0x7f327205ba02 - ::evaluate_goal [INFO] [stderr] 29: 0x7fe264ef85c2 - ::with_new_goal::<::evaluate_canonical_goal::{closure#0}::{closure#0}::{closure#0}>::{closure#3} [INFO] [stderr] 27: 0x7f327205a85a - ::try_evaluate_added_goals [INFO] [stderr] 28: 0x7f3271c8ea8d - ::try_normalize_term [INFO] [stderr] 30: 0x7fe264d99bfe - ::with_new_goal::<::evaluate_canonical_goal::{closure#0}::{closure#0}::{closure#0}> [INFO] [stderr] 31: 0x7fe264a5ba02 - ::evaluate_goal [INFO] [stderr] 32: 0x7fe264a5a85a - ::try_evaluate_added_goals [INFO] [stderr] 29: 0x7f32724f85c2 - ::with_new_goal::<::evaluate_canonical_goal::{closure#0}::{closure#0}::{closure#0}>::{closure#3} [INFO] [stderr] 30: 0x7f3272399bfe - ::with_new_goal::<::evaluate_canonical_goal::{closure#0}::{closure#0}::{closure#0}> [INFO] [stderr] 33: 0x7fe264a41de3 - ::evaluate_added_goals_and_make_canonical_response [INFO] [stderr] 31: 0x7f327205ba02 - ::evaluate_goal [INFO] [stderr] 34: 0x7fe264efa0b6 - ::with_new_goal::<::evaluate_canonical_goal::{closure#0}::{closure#0}::{closure#0}>::{closure#3} [INFO] [stderr] 32: 0x7f327205a85a - ::try_evaluate_added_goals [INFO] [stderr] 33: 0x7f3272041de3 - ::evaluate_added_goals_and_make_canonical_response [INFO] [stderr] 35: 0x7fe264d99bfe - ::with_new_goal::<::evaluate_canonical_goal::{closure#0}::{closure#0}::{closure#0}> [INFO] [stderr] 36: 0x7fe264a5ba02 - ::evaluate_goal [INFO] [stderr] 37: 0x7fe264a5a85a - ::try_evaluate_added_goals [INFO] [stderr] 34: 0x7f32724fa0b6 - ::with_new_goal::<::evaluate_canonical_goal::{closure#0}::{closure#0}::{closure#0}>::{closure#3} [INFO] [stderr] 38: 0x7fe264a41de3 - ::evaluate_added_goals_and_make_canonical_response [INFO] [stderr] 39: 0x7fe264b268d1 - ::consider_impl_candidate [INFO] [stderr] 35: 0x7f3272399bfe - ::with_new_goal::<::evaluate_canonical_goal::{closure#0}::{closure#0}::{closure#0}> [INFO] [stderr] 40: 0x7fe264a3f847 - ::assemble_and_evaluate_candidates:: [INFO] [stderr] 36: 0x7f327205ba02 - ::evaluate_goal [INFO] [stderr] 37: 0x7f327205a85a - ::try_evaluate_added_goals [INFO] [stderr] 41: 0x7fe264ef825b - ::with_new_goal::<::evaluate_canonical_goal::{closure#0}::{closure#0}::{closure#0}>::{closure#3} [INFO] [stderr] 38: 0x7f3272041de3 - ::evaluate_added_goals_and_make_canonical_response [INFO] [stderr] 42: 0x7fe264d99bfe - ::with_new_goal::<::evaluate_canonical_goal::{closure#0}::{closure#0}::{closure#0}> [INFO] [stderr] 39: 0x7f32721268d1 - ::consider_impl_candidate [INFO] [stderr] 43: 0x7fe264a5ba02 - ::evaluate_goal [INFO] [stderr] 44: 0x7fe264a5a85a - ::try_evaluate_added_goals [INFO] [stderr] 40: 0x7f327203f847 - ::assemble_and_evaluate_candidates:: [INFO] [stderr] 45: 0x7fe264a41de3 - ::evaluate_added_goals_and_make_canonical_response [INFO] [stderr] 46: 0x7fe264651959 - ::consider_impl_candidate [INFO] [stderr] 41: 0x7f32724f825b - ::with_new_goal::<::evaluate_canonical_goal::{closure#0}::{closure#0}::{closure#0}>::{closure#3} [INFO] [stderr] 42: 0x7f3272399bfe - ::with_new_goal::<::evaluate_canonical_goal::{closure#0}::{closure#0}::{closure#0}> [INFO] [stderr] 47: 0x7fe264ef8d65 - ::with_new_goal::<::evaluate_canonical_goal::{closure#0}::{closure#0}::{closure#0}>::{closure#3} [INFO] [stderr] 43: 0x7f327205ba02 - ::evaluate_goal [INFO] [stderr] 48: 0x7fe264d99bfe - ::with_new_goal::<::evaluate_canonical_goal::{closure#0}::{closure#0}::{closure#0}> [INFO] [stderr] 44: 0x7f327205a85a - ::try_evaluate_added_goals [INFO] [stderr] 49: 0x7fe264a5ba02 - ::evaluate_goal [INFO] [stderr] 50: 0x7fe264a5a85a - ::try_evaluate_added_goals [INFO] [stderr] 45: 0x7f3272041de3 - ::evaluate_added_goals_and_make_canonical_response [INFO] [stderr] 51: 0x7fe26468e1c2 - ::commit_if_ok::::try_normalize_ty_recur::{closure#0}::{closure#0}> [INFO] [stderr] 46: 0x7f3271c51959 - ::consider_impl_candidate [INFO] [stderr] 52: 0x7fe26468eb66 - ::try_normalize_ty_recur [INFO] [stderr] 53: 0x7fe26468e923 - ::try_normalize_term [INFO] [stderr] 47: 0x7f32724f8d65 - ::with_new_goal::<::evaluate_canonical_goal::{closure#0}::{closure#0}::{closure#0}>::{closure#3} [INFO] [stderr] 54: 0x7fe264ef85c2 - ::with_new_goal::<::evaluate_canonical_goal::{closure#0}::{closure#0}::{closure#0}>::{closure#3} [INFO] [stderr] 48: 0x7f3272399bfe - ::with_new_goal::<::evaluate_canonical_goal::{closure#0}::{closure#0}::{closure#0}> [INFO] [stderr] 55: 0x7fe264d99bfe - ::with_new_goal::<::evaluate_canonical_goal::{closure#0}::{closure#0}::{closure#0}> [INFO] [stderr] 49: 0x7f327205ba02 - ::evaluate_goal [INFO] [stderr] 56: 0x7fe264a5ba02 - ::evaluate_goal [INFO] [stderr] 50: 0x7f327205a85a - ::try_evaluate_added_goals [INFO] [stderr] 57: 0x7fe264a5a85a - ::try_evaluate_added_goals [INFO] [stderr] 58: 0x7fe264a3dafc - ::structurally_normalize_ty [INFO] [stderr] 51: 0x7f3271c8e1c2 - ::commit_if_ok::::try_normalize_ty_recur::{closure#0}::{closure#0}> [INFO] [stderr] 59: 0x7fe264a3ea69 - ::assemble_and_evaluate_candidates:: [INFO] [stderr] 60: 0x7fe264ef825b - ::with_new_goal::<::evaluate_canonical_goal::{closure#0}::{closure#0}::{closure#0}>::{closure#3} [INFO] [stderr] 52: 0x7f3271c8eb66 - ::try_normalize_ty_recur [INFO] [stderr] 61: 0x7fe264d99bfe - ::with_new_goal::<::evaluate_canonical_goal::{closure#0}::{closure#0}::{closure#0}> [INFO] [stderr] 62: 0x7fe264a5ba02 - ::evaluate_goal [INFO] [stderr] 63: 0x7fe264a5a85a - ::try_evaluate_added_goals [INFO] [stderr] 53: 0x7f3271c8e923 - ::try_normalize_term [INFO] [stderr] 54: 0x7f32724f85c2 - ::with_new_goal::<::evaluate_canonical_goal::{closure#0}::{closure#0}::{closure#0}>::{closure#3} [INFO] [stderr] 64: 0x7fe264a41de3 - ::evaluate_added_goals_and_make_canonical_response [INFO] [stderr] 55: 0x7f3272399bfe - ::with_new_goal::<::evaluate_canonical_goal::{closure#0}::{closure#0}::{closure#0}> [INFO] [stderr] 56: 0x7f327205ba02 - ::evaluate_goal [INFO] [stderr] 57: 0x7f327205a85a - ::try_evaluate_added_goals [INFO] [stderr] 65: 0x7fe264a41242 - ::probe_misc_candidate::{closure#0}, core[abfb1cd715b352e6]::result::Result, rustc_middle[54c7c52dbea9abba]::traits::query::NoSolution>>>::enter::<::probe_and_evaluate_goal_for_constituent_tys::{closure#0}> [INFO] [stderr] 58: 0x7f327203dafc - ::structurally_normalize_ty [INFO] [stderr] 66: 0x7fe264a3f06f - ::assemble_and_evaluate_candidates:: [INFO] [stderr] 59: 0x7f327203ea69 - ::assemble_and_evaluate_candidates:: [INFO] [stderr] 67: 0x7fe264ef825b - ::with_new_goal::<::evaluate_canonical_goal::{closure#0}::{closure#0}::{closure#0}>::{closure#3} [INFO] [stderr] 68: 0x7fe264d99bfe - ::with_new_goal::<::evaluate_canonical_goal::{closure#0}::{closure#0}::{closure#0}> [INFO] [stderr] 60: 0x7f32724f825b - ::with_new_goal::<::evaluate_canonical_goal::{closure#0}::{closure#0}::{closure#0}>::{closure#3} [INFO] [stderr] 69: 0x7fe264a5ba02 - ::evaluate_goal [INFO] [stderr] 61: 0x7f3272399bfe - ::with_new_goal::<::evaluate_canonical_goal::{closure#0}::{closure#0}::{closure#0}> [INFO] [stderr] 62: 0x7f327205ba02 - ::evaluate_goal [INFO] [stderr] 63: 0x7f327205a85a - ::try_evaluate_added_goals [INFO] [stderr] 64: 0x7f3272041de3 - ::evaluate_added_goals_and_make_canonical_response [INFO] [stderr] 65: 0x7f3272041242 - ::probe_misc_candidate::{closure#0}, core[abfb1cd715b352e6]::result::Result, rustc_middle[54c7c52dbea9abba]::traits::query::NoSolution>>>::enter::<::probe_and_evaluate_goal_for_constituent_tys::{closure#0}> [INFO] [stderr] 66: 0x7f327203f06f - ::assemble_and_evaluate_candidates:: [INFO] [stderr] 67: 0x7f32724f825b - ::with_new_goal::<::evaluate_canonical_goal::{closure#0}::{closure#0}::{closure#0}>::{closure#3} [INFO] [stderr] 68: 0x7f3272399bfe - ::with_new_goal::<::evaluate_canonical_goal::{closure#0}::{closure#0}::{closure#0}> [INFO] [stderr] 69: 0x7f327205ba02 - ::evaluate_goal [INFO] [stderr] 70: 0x7fe264a59ff1 - ::enter_root::, ::evaluate_root_goal::{closure#0}> [INFO] [stderr] 71: 0x7fe264a5967c - ::select_where_possible [INFO] [stderr] 70: 0x7f3272059ff1 - ::enter_root::, ::evaluate_root_goal::{closure#0}> [INFO] [stderr] 72: 0x7fe264b28569 - rustc_trait_selection[f69a89d27d4f83ba]::traits::coherence::overlap [INFO] [stderr] 71: 0x7f327205967c - ::select_where_possible [INFO] [stderr] 73: 0x7fe264c4bbb3 - ::insert [INFO] [stderr] 72: 0x7f3272128569 - rustc_trait_selection[f69a89d27d4f83ba]::traits::coherence::overlap [INFO] [stderr] 74: 0x7fe264c4aa3d - ::insert [INFO] [stderr] 73: 0x7f327224bbb3 - ::insert [INFO] [stderr] 75: 0x7fe264c4ddf8 - rustc_trait_selection[f69a89d27d4f83ba]::traits::specialize::specialization_graph_provider [INFO] [stderr] 74: 0x7f327224aa3d - ::insert [INFO] [stderr] 75: 0x7f327224ddf8 - rustc_trait_selection[f69a89d27d4f83ba]::traits::specialize::specialization_graph_provider [INFO] [stderr] 76: 0x7fe264c4d88f - rustc_query_impl[e6278be6fc0fc4ac]::plumbing::__rust_begin_short_backtrace::> [INFO] [stderr] 76: 0x7f327224d88f - rustc_query_impl[e6278be6fc0fc4ac]::plumbing::__rust_begin_short_backtrace::> [INFO] [stderr] 77: 0x7fe26427e1e1 - rustc_query_system[b6ec95cd74be2618]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e6278be6fc0fc4ac]::plumbing::QueryCtxt, false> [INFO] [stderr] 77: 0x7f327187e1e1 - rustc_query_system[b6ec95cd74be2618]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e6278be6fc0fc4ac]::plumbing::QueryCtxt, false> [INFO] [stderr] 78: 0x7fe264b2c4b8 - rustc_query_impl[e6278be6fc0fc4ac]::query_impl::specialization_graph_of::get_query_non_incr::__rust_end_short_backtrace [INFO] [stderr] 78: 0x7f327212c4b8 - rustc_query_impl[e6278be6fc0fc4ac]::query_impl::specialization_graph_of::get_query_non_incr::__rust_end_short_backtrace [INFO] [stderr] 79: 0x7f327212c9ca - rustc_hir_analysis[4e9c317c5b90af14]::coherence::coherent_trait [INFO] [stderr] 79: 0x7fe264b2c9ca - rustc_hir_analysis[4e9c317c5b90af14]::coherence::coherent_trait [INFO] [stderr] 80: 0x7f327212c789 - rustc_query_impl[e6278be6fc0fc4ac]::plumbing::__rust_begin_short_backtrace::> [INFO] [stderr] 80: 0x7fe264b2c789 - rustc_query_impl[e6278be6fc0fc4ac]::plumbing::__rust_begin_short_backtrace::> [INFO] [stderr] 81: 0x7f32718ee996 - rustc_query_system[b6ec95cd74be2618]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e6278be6fc0fc4ac]::plumbing::QueryCtxt, false> [INFO] [stderr] 82: 0x7f3271f70409 - rustc_query_impl[e6278be6fc0fc4ac]::query_impl::coherent_trait::get_query_non_incr::__rust_end_short_backtrace [INFO] [stderr] 81: 0x7fe2642ee996 - rustc_query_system[b6ec95cd74be2618]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e6278be6fc0fc4ac]::plumbing::QueryCtxt, false> [INFO] [stderr] 82: 0x7fe264970409 - rustc_query_impl[e6278be6fc0fc4ac]::query_impl::coherent_trait::get_query_non_incr::__rust_end_short_backtrace [INFO] [stderr] 83: 0x7fe264aed77a - rustc_hir_analysis[4e9c317c5b90af14]::check_crate [INFO] [stderr] 83: 0x7f32720ed77a - rustc_hir_analysis[4e9c317c5b90af14]::check_crate [INFO] [stderr] 84: 0x7fe264e8cc2f - rustc_interface[2203536272661405]::passes::analysis [INFO] [stderr] 84: 0x7f327248cc2f - rustc_interface[2203536272661405]::passes::analysis [INFO] [stderr] 85: 0x7f327248c899 - rustc_query_impl[e6278be6fc0fc4ac]::plumbing::__rust_begin_short_backtrace::> [INFO] [stderr] 85: 0x7fe264e8c899 - rustc_query_impl[e6278be6fc0fc4ac]::plumbing::__rust_begin_short_backtrace::> [INFO] [stderr] 86: 0x7f327259dce5 - rustc_query_system[b6ec95cd74be2618]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e6278be6fc0fc4ac]::plumbing::QueryCtxt, false> [INFO] [stderr] 86: 0x7fe264f9dce5 - rustc_query_system[b6ec95cd74be2618]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e6278be6fc0fc4ac]::plumbing::QueryCtxt, false> [INFO] [stderr] 87: 0x7fe264f9da49 - rustc_query_impl[e6278be6fc0fc4ac]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace [INFO] [stderr] 87: 0x7f327259da49 - rustc_query_impl[e6278be6fc0fc4ac]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace [INFO] [stderr] 88: 0x7fe264fa73f6 - rustc_interface[2203536272661405]::interface::run_compiler::, rustc_driver_impl[d745cab55e0468a5]::run_compiler::{closure#0}>::{closure#0} [INFO] [stderr] 88: 0x7f32725a73f6 - rustc_interface[2203536272661405]::interface::run_compiler::, rustc_driver_impl[d745cab55e0468a5]::run_compiler::{closure#0}>::{closure#0} [INFO] [stderr] 89: 0x7fe26520cc05 - std[9aeb3b4f76503cc7]::sys_common::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl[d745cab55e0468a5]::run_compiler::{closure#0}>::{closure#0}, core[abfb1cd715b352e6]::result::Result<(), rustc_span[4d6cfb836fd7893c]::ErrorGuaranteed>>::{closure#0}, core[abfb1cd715b352e6]::result::Result<(), rustc_span[4d6cfb836fd7893c]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[abfb1cd715b352e6]::result::Result<(), rustc_span[4d6cfb836fd7893c]::ErrorGuaranteed>> [INFO] [stderr] 89: 0x7f327280cc05 - std[9aeb3b4f76503cc7]::sys_common::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl[d745cab55e0468a5]::run_compiler::{closure#0}>::{closure#0}, core[abfb1cd715b352e6]::result::Result<(), rustc_span[4d6cfb836fd7893c]::ErrorGuaranteed>>::{closure#0}, core[abfb1cd715b352e6]::result::Result<(), rustc_span[4d6cfb836fd7893c]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[abfb1cd715b352e6]::result::Result<(), rustc_span[4d6cfb836fd7893c]::ErrorGuaranteed>> [INFO] [stderr] 90: 0x7fe26520ca32 - <::spawn_unchecked_, rustc_driver_impl[d745cab55e0468a5]::run_compiler::{closure#0}>::{closure#0}, core[abfb1cd715b352e6]::result::Result<(), rustc_span[4d6cfb836fd7893c]::ErrorGuaranteed>>::{closure#0}, core[abfb1cd715b352e6]::result::Result<(), rustc_span[4d6cfb836fd7893c]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[abfb1cd715b352e6]::result::Result<(), rustc_span[4d6cfb836fd7893c]::ErrorGuaranteed>>::{closure#1} as core[abfb1cd715b352e6]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stderr] 90: 0x7f327280ca32 - <::spawn_unchecked_, rustc_driver_impl[d745cab55e0468a5]::run_compiler::{closure#0}>::{closure#0}, core[abfb1cd715b352e6]::result::Result<(), rustc_span[4d6cfb836fd7893c]::ErrorGuaranteed>>::{closure#0}, core[abfb1cd715b352e6]::result::Result<(), rustc_span[4d6cfb836fd7893c]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[abfb1cd715b352e6]::result::Result<(), rustc_span[4d6cfb836fd7893c]::ErrorGuaranteed>>::{closure#1} as core[abfb1cd715b352e6]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stderr] 91: 0x7fe25ff997d5 - as core::ops::function::FnOnce>::call_once::h603880526b859c81 [INFO] [stderr] at /rustc/bfe97fcae016881ad333f0ff8cea2cadb9cf136c/library/alloc/src/boxed.rs:2016:9 [INFO] [stderr] 91: 0x7f326d5997d5 - as core::ops::function::FnOnce>::call_once::h603880526b859c81 [INFO] [stderr] 92: 0x7fe25ff997d5 - as core::ops::function::FnOnce>::call_once::hdc1b81bdfa8011e7 [INFO] [stderr] at /rustc/bfe97fcae016881ad333f0ff8cea2cadb9cf136c/library/alloc/src/boxed.rs:2016:9 [INFO] [stderr] 92: 0x7f326d5997d5 - as core::ops::function::FnOnce>::call_once::hdc1b81bdfa8011e7 [INFO] [stderr] at /rustc/bfe97fcae016881ad333f0ff8cea2cadb9cf136c/library/alloc/src/boxed.rs:2016:9 [INFO] [stderr] at /rustc/bfe97fcae016881ad333f0ff8cea2cadb9cf136c/library/alloc/src/boxed.rs:2016:9 [INFO] [stderr] 93: 0x7fe25ff997d5 - std::sys::pal::unix::thread::Thread::new::thread_start::h310f823e9733573f [INFO] [stderr] 93: 0x7f326d5997d5 - std::sys::pal::unix::thread::Thread::new::thread_start::h310f823e9733573f [INFO] [stderr] at /rustc/bfe97fcae016881ad333f0ff8cea2cadb9cf136c/library/std/src/sys/pal/unix/thread.rs:108:17 [INFO] [stderr] at /rustc/bfe97fcae016881ad333f0ff8cea2cadb9cf136c/library/std/src/sys/pal/unix/thread.rs:108:17 [INFO] [stderr] 94: 0x7fe25fd44ac3 - [INFO] [stderr] 94: 0x7f326d344ac3 - [INFO] [stderr] 95: 0x7fe25fdd5bf4 - __clone [INFO] [stderr] 95: 0x7f326d3d5bf4 - __clone [INFO] [stderr] 96: 0x0 - [INFO] [stderr] 96: 0x0 - [INFO] [stderr] [INFO] [stderr] [INFO] [stderr] note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md [INFO] [stderr] [INFO] [stderr] warning: the ICE couldn't be written to `/opt/rustwide/workdir/rustc-ice-2024-03-12T23_20_14-14.txt`: Read-only file system (os error 30) [INFO] [stderr] [INFO] [stderr] note: rustc 1.78.0-nightly (bfe97fcae 2024-03-01) running on x86_64-unknown-linux-gnu [INFO] [stderr] [INFO] [stderr] note: compiler flags: -C embed-bitcode=no -C debuginfo=2 [INFO] [stderr] [INFO] [stderr] note: some of the compiler flags provided by cargo are hidden [INFO] [stderr] [INFO] [stderr] query stack during panic: [INFO] [stderr] note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md [INFO] [stderr] [INFO] [stderr] warning: the ICE couldn't be written to `/opt/rustwide/workdir/rustc-ice-2024-03-12T23_20_14-15.txt`: Read-only file system (os error 30) [INFO] [stderr] [INFO] [stderr] note: rustc 1.78.0-nightly (bfe97fcae 2024-03-01) running on x86_64-unknown-linux-gnu [INFO] [stderr] [INFO] [stderr] note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 [INFO] [stderr] [INFO] [stderr] note: some of the compiler flags provided by cargo are hidden [INFO] [stderr] [INFO] [stderr] query stack during panic: [INFO] [stderr] #0 [specialization_graph_of] building specialization graph of trait `core::cmp::PartialEq` [INFO] [stderr] #1 [coherent_trait] coherence checking all impls of trait `core::cmp::PartialEq` [INFO] [stderr] #0 [specialization_graph_of] building specialization graph of trait `core::cmp::PartialEq` [INFO] [stderr] #2 [analysis] running analysis passes on this crate [INFO] [stderr] end of query stack [INFO] [stderr] #1 [coherent_trait] coherence checking all impls of trait `core::cmp::PartialEq` [INFO] [stderr] #2 [analysis] running analysis passes on this crate [INFO] [stderr] end of query stack [INFO] [stdout] error: aborting due to 20 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0635`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 21 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0635`. [INFO] [stdout] [INFO] [stderr] error: could not compile `bounded_math` (lib) due to 20 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `bounded_math` (lib test) due to 21 previous errors [INFO] running `Command { std: "docker" "inspect" "5d22916e47ae73e156f95c98e9948e825249c9582e1ce34fcbd4383525ac2f94", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d22916e47ae73e156f95c98e9948e825249c9582e1ce34fcbd4383525ac2f94", kill_on_drop: false }` [INFO] [stdout] 5d22916e47ae73e156f95c98e9948e825249c9582e1ce34fcbd4383525ac2f94