[INFO] fetching crate midpoint 0.1.5... [INFO] checking midpoint-0.1.5 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate midpoint 0.1.5 into /workspace/builds/worker-3-tc2/source [INFO] started tweaking crates.io crate midpoint 0.1.5 [INFO] finished tweaking crates.io crate midpoint 0.1.5 [INFO] tweaked toml for crates.io crate midpoint 0.1.5 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate midpoint 0.1.5 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 75 packages to latest compatible versions [INFO] [stderr] Adding criterion v0.3.6 (available: v0.7.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a1c3cc025edfcb6821cfac364972ab9f830a97d201c8c7a4af3f8754a44e7371 [INFO] running `Command { std: "docker" "start" "-a" "a1c3cc025edfcb6821cfac364972ab9f830a97d201c8c7a4af3f8754a44e7371", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a1c3cc025edfcb6821cfac364972ab9f830a97d201c8c7a4af3f8754a44e7371", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a1c3cc025edfcb6821cfac364972ab9f830a97d201c8c7a4af3f8754a44e7371", kill_on_drop: false }` [INFO] [stdout] a1c3cc025edfcb6821cfac364972ab9f830a97d201c8c7a4af3f8754a44e7371 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 619dea1358579b2cb5f2967aab5597720311dd29cbe61aae319467e6640ecc15 [INFO] running `Command { std: "docker" "start" "-a" "619dea1358579b2cb5f2967aab5597720311dd29cbe61aae319467e6640ecc15", kill_on_drop: false }` [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Checking plotters-backend v0.3.7 [INFO] [stderr] Checking unicode-width v0.1.14 [INFO] [stderr] Checking regex-syntax v0.8.6 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking half v1.8.3 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking cast v0.3.0 [INFO] [stderr] Checking walkdir v2.5.0 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking epsi v0.1.1 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking oorandom v11.1.5 [INFO] [stderr] Checking primitive_promotion v0.1.4 [INFO] [stderr] Checking epui v0.1.1 [INFO] [stderr] Checking midpoint v0.1.5 (/opt/rustwide/workdir) [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking plotters-svg v0.3.7 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Checking csv-core v0.1.12 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking crossbeam-deque v0.8.6 [INFO] [stderr] Checking regex-automata v0.4.10 [INFO] [stderr] Checking plotters v0.3.7 [INFO] [stderr] Checking rayon v1.11.0 [INFO] [stderr] Checking criterion-plot v0.4.5 [INFO] [stderr] Checking serde_cbor v0.11.2 [INFO] [stderr] Checking csv v1.3.1 [INFO] [stderr] Checking regex v1.11.2 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking criterion v0.3.6 [INFO] [stdout] warning: the feature `const_fn_trait_bound` has been stable since 1.61.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | feature(const_fn_trait_bound) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `unchecked_math` has been stable since 1.79.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | feature(unchecked_math) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `const_inherent_unchecked_arith` [INFO] [stdout] --> src/lib.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | feature(const_inherent_unchecked_arith) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `[const]` can only be applied to `const` traits [INFO] [stdout] --> src/common_macros.rs:126:18 [INFO] [stdout] | [INFO] [stdout] 126 | where T: ~const $trait_name [INFO] [stdout] | ^^^^^^ can't be applied to `MidpointViaBitwiseOpsExt` [INFO] [stdout] | [INFO] [stdout] ::: src/bitwise.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / try_impl_generic_const_fn_for_trait!( [INFO] [stdout] 2 | | MidpointViaBitwiseOpsExt::midpoint_via_bitwise_ops [INFO] [stdout] 3 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `try_impl_generic_const_fn_for_trait` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaBitwiseOpsExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/bitwise.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[const_trait] pub trait MidpointViaBitwiseOpsExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaBitwiseOpsExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/bitwise.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | / impl_for_all_prim_ints!( [INFO] [stdout] 44 | | trait = MidpointViaBitwiseOpsExt, [INFO] [stdout] 45 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 46 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaBitwiseOpsExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/bitwise.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[const_trait] pub trait MidpointViaBitwiseOpsExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaBitwiseOpsExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/bitwise.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | / impl_for_all_prim_ints!( [INFO] [stdout] 44 | | trait = MidpointViaBitwiseOpsExt, [INFO] [stdout] 45 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 46 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaBitwiseOpsExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/bitwise.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[const_trait] pub trait MidpointViaBitwiseOpsExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaBitwiseOpsExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/bitwise.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | / impl_for_all_prim_ints!( [INFO] [stdout] 44 | | trait = MidpointViaBitwiseOpsExt, [INFO] [stdout] 45 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 46 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaBitwiseOpsExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/bitwise.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[const_trait] pub trait MidpointViaBitwiseOpsExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaBitwiseOpsExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/bitwise.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | / impl_for_all_prim_ints!( [INFO] [stdout] 44 | | trait = MidpointViaBitwiseOpsExt, [INFO] [stdout] 45 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 46 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaBitwiseOpsExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/bitwise.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[const_trait] pub trait MidpointViaBitwiseOpsExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaBitwiseOpsExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/bitwise.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | / impl_for_all_prim_ints!( [INFO] [stdout] 44 | | trait = MidpointViaBitwiseOpsExt, [INFO] [stdout] 45 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 46 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaBitwiseOpsExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/bitwise.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[const_trait] pub trait MidpointViaBitwiseOpsExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaBitwiseOpsExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/bitwise.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | / impl_for_all_prim_ints!( [INFO] [stdout] 44 | | trait = MidpointViaBitwiseOpsExt, [INFO] [stdout] 45 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 46 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaBitwiseOpsExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/bitwise.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[const_trait] pub trait MidpointViaBitwiseOpsExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaBitwiseOpsExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/bitwise.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | / impl_for_all_prim_ints!( [INFO] [stdout] 44 | | trait = MidpointViaBitwiseOpsExt, [INFO] [stdout] 45 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 46 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaBitwiseOpsExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/bitwise.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[const_trait] pub trait MidpointViaBitwiseOpsExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaBitwiseOpsExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/bitwise.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | / impl_for_all_prim_ints!( [INFO] [stdout] 44 | | trait = MidpointViaBitwiseOpsExt, [INFO] [stdout] 45 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 46 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaBitwiseOpsExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/bitwise.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[const_trait] pub trait MidpointViaBitwiseOpsExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaBitwiseOpsExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/bitwise.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | / impl_for_all_prim_ints!( [INFO] [stdout] 44 | | trait = MidpointViaBitwiseOpsExt, [INFO] [stdout] 45 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 46 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaBitwiseOpsExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/bitwise.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[const_trait] pub trait MidpointViaBitwiseOpsExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaBitwiseOpsExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/bitwise.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | / impl_for_all_prim_ints!( [INFO] [stdout] 44 | | trait = MidpointViaBitwiseOpsExt, [INFO] [stdout] 45 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 46 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaBitwiseOpsExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/bitwise.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[const_trait] pub trait MidpointViaBitwiseOpsExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaBitwiseOpsExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/bitwise.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | / impl_for_all_prim_ints!( [INFO] [stdout] 44 | | trait = MidpointViaBitwiseOpsExt, [INFO] [stdout] 45 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 46 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaBitwiseOpsExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/bitwise.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[const_trait] pub trait MidpointViaBitwiseOpsExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaBitwiseOpsExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/bitwise.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | / impl_for_all_prim_ints!( [INFO] [stdout] 44 | | trait = MidpointViaBitwiseOpsExt, [INFO] [stdout] 45 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 46 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaBitwiseOpsExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/bitwise.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[const_trait] pub trait MidpointViaBitwiseOpsExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `[const]` can only be applied to `const` traits [INFO] [stdout] --> src/common_macros.rs:126:18 [INFO] [stdout] | [INFO] [stdout] 126 | where T: ~const $trait_name [INFO] [stdout] | ^^^^^^ can't be applied to `MidpointViaCpp20StdImplementationExt` [INFO] [stdout] | [INFO] [stdout] ::: src/cpp_20_std.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / try_impl_generic_const_fn_for_trait!( [INFO] [stdout] 4 | | MidpointViaCpp20StdImplementationExt::midpoint_via_cpp_20_std_implementation [INFO] [stdout] 5 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `try_impl_generic_const_fn_for_trait` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaCpp20StdImplementationExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/cpp_20_std.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | #[const_trait] pub trait MidpointViaCpp20StdImplementationExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaCpp20StdImplementationExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/cpp_20_std.rs:55:1 [INFO] [stdout] | [INFO] [stdout] 55 | / impl_for_all_prim_ints!( [INFO] [stdout] 56 | | trait = MidpointViaCpp20StdImplementationExt, [INFO] [stdout] 57 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 58 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaCpp20StdImplementationExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/cpp_20_std.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | #[const_trait] pub trait MidpointViaCpp20StdImplementationExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaCpp20StdImplementationExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/cpp_20_std.rs:55:1 [INFO] [stdout] | [INFO] [stdout] 55 | / impl_for_all_prim_ints!( [INFO] [stdout] 56 | | trait = MidpointViaCpp20StdImplementationExt, [INFO] [stdout] 57 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 58 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaCpp20StdImplementationExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/cpp_20_std.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | #[const_trait] pub trait MidpointViaCpp20StdImplementationExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaCpp20StdImplementationExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/cpp_20_std.rs:55:1 [INFO] [stdout] | [INFO] [stdout] 55 | / impl_for_all_prim_ints!( [INFO] [stdout] 56 | | trait = MidpointViaCpp20StdImplementationExt, [INFO] [stdout] 57 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 58 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaCpp20StdImplementationExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/cpp_20_std.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | #[const_trait] pub trait MidpointViaCpp20StdImplementationExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaCpp20StdImplementationExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/cpp_20_std.rs:55:1 [INFO] [stdout] | [INFO] [stdout] 55 | / impl_for_all_prim_ints!( [INFO] [stdout] 56 | | trait = MidpointViaCpp20StdImplementationExt, [INFO] [stdout] 57 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 58 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaCpp20StdImplementationExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/cpp_20_std.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | #[const_trait] pub trait MidpointViaCpp20StdImplementationExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaCpp20StdImplementationExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/cpp_20_std.rs:55:1 [INFO] [stdout] | [INFO] [stdout] 55 | / impl_for_all_prim_ints!( [INFO] [stdout] 56 | | trait = MidpointViaCpp20StdImplementationExt, [INFO] [stdout] 57 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 58 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaCpp20StdImplementationExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/cpp_20_std.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | #[const_trait] pub trait MidpointViaCpp20StdImplementationExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaCpp20StdImplementationExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/cpp_20_std.rs:55:1 [INFO] [stdout] | [INFO] [stdout] 55 | / impl_for_all_prim_ints!( [INFO] [stdout] 56 | | trait = MidpointViaCpp20StdImplementationExt, [INFO] [stdout] 57 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 58 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaCpp20StdImplementationExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/cpp_20_std.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | #[const_trait] pub trait MidpointViaCpp20StdImplementationExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaCpp20StdImplementationExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/cpp_20_std.rs:55:1 [INFO] [stdout] | [INFO] [stdout] 55 | / impl_for_all_prim_ints!( [INFO] [stdout] 56 | | trait = MidpointViaCpp20StdImplementationExt, [INFO] [stdout] 57 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 58 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaCpp20StdImplementationExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/cpp_20_std.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | #[const_trait] pub trait MidpointViaCpp20StdImplementationExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaCpp20StdImplementationExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/cpp_20_std.rs:55:1 [INFO] [stdout] | [INFO] [stdout] 55 | / impl_for_all_prim_ints!( [INFO] [stdout] 56 | | trait = MidpointViaCpp20StdImplementationExt, [INFO] [stdout] 57 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 58 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaCpp20StdImplementationExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/cpp_20_std.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | #[const_trait] pub trait MidpointViaCpp20StdImplementationExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaCpp20StdImplementationExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/cpp_20_std.rs:55:1 [INFO] [stdout] | [INFO] [stdout] 55 | / impl_for_all_prim_ints!( [INFO] [stdout] 56 | | trait = MidpointViaCpp20StdImplementationExt, [INFO] [stdout] 57 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 58 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaCpp20StdImplementationExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/cpp_20_std.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | #[const_trait] pub trait MidpointViaCpp20StdImplementationExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaCpp20StdImplementationExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/cpp_20_std.rs:55:1 [INFO] [stdout] | [INFO] [stdout] 55 | / impl_for_all_prim_ints!( [INFO] [stdout] 56 | | trait = MidpointViaCpp20StdImplementationExt, [INFO] [stdout] 57 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 58 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaCpp20StdImplementationExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/cpp_20_std.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | #[const_trait] pub trait MidpointViaCpp20StdImplementationExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaCpp20StdImplementationExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/cpp_20_std.rs:55:1 [INFO] [stdout] | [INFO] [stdout] 55 | / impl_for_all_prim_ints!( [INFO] [stdout] 56 | | trait = MidpointViaCpp20StdImplementationExt, [INFO] [stdout] 57 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 58 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaCpp20StdImplementationExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/cpp_20_std.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | #[const_trait] pub trait MidpointViaCpp20StdImplementationExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaCpp20StdImplementationExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/cpp_20_std.rs:55:1 [INFO] [stdout] | [INFO] [stdout] 55 | / impl_for_all_prim_ints!( [INFO] [stdout] 56 | | trait = MidpointViaCpp20StdImplementationExt, [INFO] [stdout] 57 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 58 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaCpp20StdImplementationExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/cpp_20_std.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | #[const_trait] pub trait MidpointViaCpp20StdImplementationExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `[const]` can only be applied to `const` traits [INFO] [stdout] --> src/common_macros.rs:139:18 [INFO] [stdout] | [INFO] [stdout] 139 | where T: ~const $trait_name [INFO] [stdout] | ^^^^^^ can't be applied to `NaiveMidpointExt` [INFO] [stdout] | [INFO] [stdout] ::: src/naive.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / try_impl_unsafe_generic_const_fn_for_trait!( [INFO] [stdout] 2 | | NaiveMidpointExt::naive_midpoint [INFO] [stdout] 3 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `try_impl_unsafe_generic_const_fn_for_trait` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `NaiveMidpointExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/naive.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | #[const_trait] pub trait NaiveMidpointExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `NaiveMidpointExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/naive.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | / impl_for_all_prim_ints!( [INFO] [stdout] 54 | | trait = NaiveMidpointExt, [INFO] [stdout] 55 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 56 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `NaiveMidpointExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/naive.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | #[const_trait] pub trait NaiveMidpointExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `NaiveMidpointExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/naive.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | / impl_for_all_prim_ints!( [INFO] [stdout] 54 | | trait = NaiveMidpointExt, [INFO] [stdout] 55 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 56 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `NaiveMidpointExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/naive.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | #[const_trait] pub trait NaiveMidpointExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `NaiveMidpointExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/naive.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | / impl_for_all_prim_ints!( [INFO] [stdout] 54 | | trait = NaiveMidpointExt, [INFO] [stdout] 55 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 56 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `NaiveMidpointExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/naive.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | #[const_trait] pub trait NaiveMidpointExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `NaiveMidpointExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/naive.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | / impl_for_all_prim_ints!( [INFO] [stdout] 54 | | trait = NaiveMidpointExt, [INFO] [stdout] 55 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 56 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `NaiveMidpointExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/naive.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | #[const_trait] pub trait NaiveMidpointExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `NaiveMidpointExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/naive.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | / impl_for_all_prim_ints!( [INFO] [stdout] 54 | | trait = NaiveMidpointExt, [INFO] [stdout] 55 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 56 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `NaiveMidpointExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/naive.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | #[const_trait] pub trait NaiveMidpointExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `NaiveMidpointExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/naive.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | / impl_for_all_prim_ints!( [INFO] [stdout] 54 | | trait = NaiveMidpointExt, [INFO] [stdout] 55 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 56 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `NaiveMidpointExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/naive.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | #[const_trait] pub trait NaiveMidpointExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `NaiveMidpointExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/naive.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | / impl_for_all_prim_ints!( [INFO] [stdout] 54 | | trait = NaiveMidpointExt, [INFO] [stdout] 55 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 56 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `NaiveMidpointExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/naive.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | #[const_trait] pub trait NaiveMidpointExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `NaiveMidpointExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/naive.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | / impl_for_all_prim_ints!( [INFO] [stdout] 54 | | trait = NaiveMidpointExt, [INFO] [stdout] 55 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 56 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `NaiveMidpointExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/naive.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | #[const_trait] pub trait NaiveMidpointExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `NaiveMidpointExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/naive.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | / impl_for_all_prim_ints!( [INFO] [stdout] 54 | | trait = NaiveMidpointExt, [INFO] [stdout] 55 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 56 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `NaiveMidpointExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/naive.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | #[const_trait] pub trait NaiveMidpointExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `NaiveMidpointExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/naive.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | / impl_for_all_prim_ints!( [INFO] [stdout] 54 | | trait = NaiveMidpointExt, [INFO] [stdout] 55 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 56 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `NaiveMidpointExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/naive.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | #[const_trait] pub trait NaiveMidpointExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `NaiveMidpointExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/naive.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | / impl_for_all_prim_ints!( [INFO] [stdout] 54 | | trait = NaiveMidpointExt, [INFO] [stdout] 55 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 56 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `NaiveMidpointExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/naive.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | #[const_trait] pub trait NaiveMidpointExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `NaiveMidpointExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/naive.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | / impl_for_all_prim_ints!( [INFO] [stdout] 54 | | trait = NaiveMidpointExt, [INFO] [stdout] 55 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 56 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `NaiveMidpointExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/naive.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | #[const_trait] pub trait NaiveMidpointExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `[const]` can only be applied to `const` traits [INFO] [stdout] --> src/common_macros.rs:139:18 [INFO] [stdout] | [INFO] [stdout] 139 | where T: ~const $trait_name [INFO] [stdout] | ^^^^^^ can't be applied to `MidpointViaNaiveMidpointDiffExt` [INFO] [stdout] | [INFO] [stdout] ::: src/naive_midpoint_diff.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / try_impl_unsafe_generic_const_fn_for_trait!( [INFO] [stdout] 4 | | MidpointViaNaiveMidpointDiffExt::midpoint_via_naive_midpoint_diff [INFO] [stdout] 5 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `try_impl_unsafe_generic_const_fn_for_trait` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaNaiveMidpointDiffExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/naive_midpoint_diff.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[const_trait] pub trait MidpointViaNaiveMidpointDiffExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaNaiveMidpointDiffExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/naive_midpoint_diff.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | / impl_for_all_prim_ints!( [INFO] [stdout] 65 | | trait = MidpointViaNaiveMidpointDiffExt, [INFO] [stdout] 66 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 67 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaNaiveMidpointDiffExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/naive_midpoint_diff.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[const_trait] pub trait MidpointViaNaiveMidpointDiffExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaNaiveMidpointDiffExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/naive_midpoint_diff.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | / impl_for_all_prim_ints!( [INFO] [stdout] 65 | | trait = MidpointViaNaiveMidpointDiffExt, [INFO] [stdout] 66 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 67 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaNaiveMidpointDiffExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/naive_midpoint_diff.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[const_trait] pub trait MidpointViaNaiveMidpointDiffExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaNaiveMidpointDiffExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/naive_midpoint_diff.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | / impl_for_all_prim_ints!( [INFO] [stdout] 65 | | trait = MidpointViaNaiveMidpointDiffExt, [INFO] [stdout] 66 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 67 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaNaiveMidpointDiffExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/naive_midpoint_diff.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[const_trait] pub trait MidpointViaNaiveMidpointDiffExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaNaiveMidpointDiffExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/naive_midpoint_diff.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | / impl_for_all_prim_ints!( [INFO] [stdout] 65 | | trait = MidpointViaNaiveMidpointDiffExt, [INFO] [stdout] 66 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 67 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaNaiveMidpointDiffExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/naive_midpoint_diff.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[const_trait] pub trait MidpointViaNaiveMidpointDiffExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaNaiveMidpointDiffExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/naive_midpoint_diff.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | / impl_for_all_prim_ints!( [INFO] [stdout] 65 | | trait = MidpointViaNaiveMidpointDiffExt, [INFO] [stdout] 66 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 67 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaNaiveMidpointDiffExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/naive_midpoint_diff.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[const_trait] pub trait MidpointViaNaiveMidpointDiffExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaNaiveMidpointDiffExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/naive_midpoint_diff.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | / impl_for_all_prim_ints!( [INFO] [stdout] 65 | | trait = MidpointViaNaiveMidpointDiffExt, [INFO] [stdout] 66 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 67 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaNaiveMidpointDiffExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/naive_midpoint_diff.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[const_trait] pub trait MidpointViaNaiveMidpointDiffExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaNaiveMidpointDiffExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/naive_midpoint_diff.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | / impl_for_all_prim_ints!( [INFO] [stdout] 65 | | trait = MidpointViaNaiveMidpointDiffExt, [INFO] [stdout] 66 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 67 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaNaiveMidpointDiffExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/naive_midpoint_diff.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[const_trait] pub trait MidpointViaNaiveMidpointDiffExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaNaiveMidpointDiffExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/naive_midpoint_diff.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | / impl_for_all_prim_ints!( [INFO] [stdout] 65 | | trait = MidpointViaNaiveMidpointDiffExt, [INFO] [stdout] 66 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 67 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaNaiveMidpointDiffExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/naive_midpoint_diff.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[const_trait] pub trait MidpointViaNaiveMidpointDiffExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaNaiveMidpointDiffExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/naive_midpoint_diff.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | / impl_for_all_prim_ints!( [INFO] [stdout] 65 | | trait = MidpointViaNaiveMidpointDiffExt, [INFO] [stdout] 66 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 67 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaNaiveMidpointDiffExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/naive_midpoint_diff.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[const_trait] pub trait MidpointViaNaiveMidpointDiffExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaNaiveMidpointDiffExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/naive_midpoint_diff.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | / impl_for_all_prim_ints!( [INFO] [stdout] 65 | | trait = MidpointViaNaiveMidpointDiffExt, [INFO] [stdout] 66 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 67 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaNaiveMidpointDiffExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/naive_midpoint_diff.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[const_trait] pub trait MidpointViaNaiveMidpointDiffExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaNaiveMidpointDiffExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/naive_midpoint_diff.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | / impl_for_all_prim_ints!( [INFO] [stdout] 65 | | trait = MidpointViaNaiveMidpointDiffExt, [INFO] [stdout] 66 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 67 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaNaiveMidpointDiffExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/naive_midpoint_diff.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[const_trait] pub trait MidpointViaNaiveMidpointDiffExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaNaiveMidpointDiffExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/naive_midpoint_diff.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | / impl_for_all_prim_ints!( [INFO] [stdout] 65 | | trait = MidpointViaNaiveMidpointDiffExt, [INFO] [stdout] 66 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 67 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_all_prim_ints` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaNaiveMidpointDiffExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/naive_midpoint_diff.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[const_trait] pub trait MidpointViaNaiveMidpointDiffExt { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `[const]` can only be applied to `const` traits [INFO] [stdout] --> src/common_macros.rs:126:18 [INFO] [stdout] | [INFO] [stdout] 126 | where T: ~const $trait_name [INFO] [stdout] | ^^^^^^ can't be applied to `MidpointViaPrimitivePromotionExt` [INFO] [stdout] | [INFO] [stdout] ::: src/primitive_promotion.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / try_impl_generic_const_fn_for_trait!( [INFO] [stdout] 4 | | MidpointViaPrimitivePromotionExt::midpoint_via_primitive_promotion [INFO] [stdout] 5 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `try_impl_generic_const_fn_for_trait` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaPrimitivePromotionExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/primitive_promotion.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[const_trait] pub trait MidpointViaPrimitivePromotionExt: PP { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaPrimitivePromotionExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/primitive_promotion.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / impl_for_prim_ints_with_prim_promotion!( [INFO] [stdout] 45 | | trait = MidpointViaPrimitivePromotionExt, [INFO] [stdout] 46 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 47 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_prim_ints_with_prim_promotion` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaPrimitivePromotionExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/primitive_promotion.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[const_trait] pub trait MidpointViaPrimitivePromotionExt: PP { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaPrimitivePromotionExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/primitive_promotion.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / impl_for_prim_ints_with_prim_promotion!( [INFO] [stdout] 45 | | trait = MidpointViaPrimitivePromotionExt, [INFO] [stdout] 46 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 47 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_prim_ints_with_prim_promotion` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaPrimitivePromotionExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/primitive_promotion.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[const_trait] pub trait MidpointViaPrimitivePromotionExt: PP { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaPrimitivePromotionExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/primitive_promotion.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / impl_for_prim_ints_with_prim_promotion!( [INFO] [stdout] 45 | | trait = MidpointViaPrimitivePromotionExt, [INFO] [stdout] 46 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 47 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_prim_ints_with_prim_promotion` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaPrimitivePromotionExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/primitive_promotion.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[const_trait] pub trait MidpointViaPrimitivePromotionExt: PP { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaPrimitivePromotionExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/primitive_promotion.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / impl_for_prim_ints_with_prim_promotion!( [INFO] [stdout] 45 | | trait = MidpointViaPrimitivePromotionExt, [INFO] [stdout] 46 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 47 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_prim_ints_with_prim_promotion` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaPrimitivePromotionExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/primitive_promotion.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[const_trait] pub trait MidpointViaPrimitivePromotionExt: PP { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaPrimitivePromotionExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/primitive_promotion.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / impl_for_prim_ints_with_prim_promotion!( [INFO] [stdout] 45 | | trait = MidpointViaPrimitivePromotionExt, [INFO] [stdout] 46 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 47 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_prim_ints_with_prim_promotion` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaPrimitivePromotionExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/primitive_promotion.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[const_trait] pub trait MidpointViaPrimitivePromotionExt: PP { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaPrimitivePromotionExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/primitive_promotion.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / impl_for_prim_ints_with_prim_promotion!( [INFO] [stdout] 45 | | trait = MidpointViaPrimitivePromotionExt, [INFO] [stdout] 46 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 47 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_prim_ints_with_prim_promotion` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaPrimitivePromotionExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/primitive_promotion.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[const_trait] pub trait MidpointViaPrimitivePromotionExt: PP { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaPrimitivePromotionExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/primitive_promotion.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / impl_for_prim_ints_with_prim_promotion!( [INFO] [stdout] 45 | | trait = MidpointViaPrimitivePromotionExt, [INFO] [stdout] 46 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 47 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_prim_ints_with_prim_promotion` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaPrimitivePromotionExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/primitive_promotion.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[const_trait] pub trait MidpointViaPrimitivePromotionExt: PP { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `MidpointViaPrimitivePromotionExt` which is not `const` [INFO] [stdout] --> src/common_macros.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $trait_name for $t { [INFO] [stdout] | ^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/primitive_promotion.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / impl_for_prim_ints_with_prim_promotion!( [INFO] [stdout] 45 | | trait = MidpointViaPrimitivePromotionExt, [INFO] [stdout] 46 | | fn macro = impl_midpoint_fn_for_t [INFO] [stdout] 47 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `provide_trait_impl_for_t` which comes from the expansion of the macro `impl_for_prim_ints_with_prim_promotion` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `MidpointViaPrimitivePromotionExt` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/primitive_promotion.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[const_trait] pub trait MidpointViaPrimitivePromotionExt: PP { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `::midpoint_via_bitwise_ops` in constant functions [INFO] [stdout] --> src/common_macros.rs:128:17 [INFO] [stdout] | [INFO] [stdout] 128 | lhs.$fn_name(rhs) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/bitwise.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / try_impl_generic_const_fn_for_trait!( [INFO] [stdout] 2 | | MidpointViaBitwiseOpsExt::midpoint_via_bitwise_ops [INFO] [stdout] 3 | | ); [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 `try_impl_generic_const_fn_for_trait` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `::midpoint_via_cpp_20_std_implementation` in constant functions [INFO] [stdout] --> src/common_macros.rs:128:17 [INFO] [stdout] | [INFO] [stdout] 128 | lhs.$fn_name(rhs) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/cpp_20_std.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / try_impl_generic_const_fn_for_trait!( [INFO] [stdout] 4 | | MidpointViaCpp20StdImplementationExt::midpoint_via_cpp_20_std_implementation [INFO] [stdout] 5 | | ); [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 `try_impl_generic_const_fn_for_trait` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `::naive_midpoint` in constant functions [INFO] [stdout] --> src/common_macros.rs:141:17 [INFO] [stdout] | [INFO] [stdout] 141 | lhs.$fn_name(rhs) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/naive.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / try_impl_unsafe_generic_const_fn_for_trait!( [INFO] [stdout] 2 | | NaiveMidpointExt::naive_midpoint [INFO] [stdout] 3 | | ); [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 `try_impl_unsafe_generic_const_fn_for_trait` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `::midpoint_via_naive_midpoint_diff` in constant functions [INFO] [stdout] --> src/common_macros.rs:141:17 [INFO] [stdout] | [INFO] [stdout] 141 | lhs.$fn_name(rhs) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/naive_midpoint_diff.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / try_impl_unsafe_generic_const_fn_for_trait!( [INFO] [stdout] 4 | | MidpointViaNaiveMidpointDiffExt::midpoint_via_naive_midpoint_diff [INFO] [stdout] 5 | | ); [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 `try_impl_unsafe_generic_const_fn_for_trait` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `::midpoint_via_primitive_promotion` in constant functions [INFO] [stdout] --> src/common_macros.rs:128:17 [INFO] [stdout] | [INFO] [stdout] 128 | lhs.$fn_name(rhs) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/primitive_promotion.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / try_impl_generic_const_fn_for_trait!( [INFO] [stdout] 4 | | MidpointViaPrimitivePromotionExt::midpoint_via_primitive_promotion [INFO] [stdout] 5 | | ); [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 `try_impl_generic_const_fn_for_trait` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0015, E0635. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0015`. [INFO] [stdout] [INFO] [stderr] error: could not compile `midpoint` (lib test) due to 67 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "619dea1358579b2cb5f2967aab5597720311dd29cbe61aae319467e6640ecc15", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "619dea1358579b2cb5f2967aab5597720311dd29cbe61aae319467e6640ecc15", kill_on_drop: false }` [INFO] [stdout] 619dea1358579b2cb5f2967aab5597720311dd29cbe61aae319467e6640ecc15