[INFO] fetching crate dxpr 0.2.3... [INFO] testing dxpr-0.2.3 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate dxpr 0.2.3 into /workspace/builds/worker-4-tc1/source [INFO] removed /workspace/builds/worker-4-tc1/source/.cargo/config.toml [INFO] removed /workspace/builds/worker-4-tc1/source/rust-toolchain.toml [INFO] started tweaking crates.io crate dxpr 0.2.3 [INFO] finished tweaking crates.io crate dxpr 0.2.3 [INFO] tweaked toml for crates.io crate dxpr 0.2.3 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate dxpr 0.2.3 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5b5ae6f9dc991a35c6027b0829c91877fddaa51ff156f4e738af93bea65e9fea [INFO] running `Command { std: "docker" "start" "-a" "5b5ae6f9dc991a35c6027b0829c91877fddaa51ff156f4e738af93bea65e9fea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5b5ae6f9dc991a35c6027b0829c91877fddaa51ff156f4e738af93bea65e9fea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5b5ae6f9dc991a35c6027b0829c91877fddaa51ff156f4e738af93bea65e9fea", kill_on_drop: false }` [INFO] [stdout] 5b5ae6f9dc991a35c6027b0829c91877fddaa51ff156f4e738af93bea65e9fea [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] f2ddb9577d80dba5c3216d95cdff63ebd9e09c3567249d1b272b2e4c438b8ff9 [INFO] running `Command { std: "docker" "start" "-a" "f2ddb9577d80dba5c3216d95cdff63ebd9e09c3567249d1b272b2e4c438b8ff9", kill_on_drop: false }` [INFO] [stderr] Compiling dxpr v0.2.3 (/opt/rustwide/workdir) [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/eval.rs:107:49 [INFO] [stdout] | [INFO] [stdout] 107 | pub struct $existing_fn<$($arg: ~const Eval),+> { $($arg: $crate::expr::Expr<$arg>),+ } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | op_from_fn!(shit(a: i32, b: i32) -> i32); [INFO] [stdout] | ---------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this item cannot have `~const` trait bounds [INFO] [stdout] = note: this error originates in the macro `op_from_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/eval.rs:108:30 [INFO] [stdout] | [INFO] [stdout] 108 | impl<$($arg: ~const Eval),+> $existing_fn<$($arg),+> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | op_from_fn!(shit(a: i32, b: i32) -> i32); [INFO] [stdout] | ---------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: inherent impls cannot have `~const` trait bounds [INFO] [stdout] --> src/eval.rs:108:17 [INFO] [stdout] | [INFO] [stdout] 108 | / impl<$($arg: ~const Eval),+> $existing_fn<$($arg),+> { [INFO] [stdout] 109 | | #[inline(always)] [INFO] [stdout] 110 | | pub const fn new($($arg: $crate::expr::Expr<$arg>),+) -> Self { [INFO] [stdout] 111 | | Self { $($arg),+ } [INFO] [stdout] 112 | | } [INFO] [stdout] 113 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] ... [INFO] [stdout] 136 | op_from_fn!(shit(a: i32, b: i32) -> i32); [INFO] [stdout] | ---------------------------------------- in this macro invocation [INFO] [stdout] = note: this error originates in the macro `op_from_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/expr.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Expr(pub(crate) T); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this item cannot have `~const` trait bounds [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/expr.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Expr(pub(crate) T); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: this impl is not `const`, so it cannot have `~const` trait bounds [INFO] [stdout] --> src/expr.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:19:29 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct $Name(T); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 184 | unary_op!(Neg, neg, "Arithmetic negation (e.g. `-4`)."); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this item cannot have `~const` trait bounds [INFO] [stdout] = note: this error originates in the macro `unary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:19:29 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct $Name(T); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 184 | unary_op!(Neg, neg, "Arithmetic negation (e.g. `-4`)."); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: this impl is not `const`, so it cannot have `~const` trait bounds [INFO] [stdout] --> src/ops/mod.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 184 | unary_op!(Neg, neg, "Arithmetic negation (e.g. `-4`)."); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this error originates in the macro `unary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:19:29 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct $Name(T); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | unary_op!(Not, not, "Logical negation (e.g. `!true`)."); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this item cannot have `~const` trait bounds [INFO] [stdout] = note: this error originates in the macro `unary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:19:29 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct $Name(T); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | unary_op!(Not, not, "Logical negation (e.g. `!true`)."); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: this impl is not `const`, so it cannot have `~const` trait bounds [INFO] [stdout] --> src/ops/mod.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | unary_op!(Not, not, "Logical negation (e.g. `!true`)."); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this error originates in the macro `unary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:29 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | binary_op!(Add, add, "Arithmetic addition (e.g. `a + b`"); [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this item cannot have `~const` trait bounds [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:45 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | binary_op!(Add, add, "Arithmetic addition (e.g. `a + b`"); [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this item cannot have `~const` trait bounds [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:29 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | binary_op!(Add, add, "Arithmetic addition (e.g. `a + b`"); [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: this impl is not `const`, so it cannot have `~const` trait bounds [INFO] [stdout] --> src/ops/mod.rs:90:18 [INFO] [stdout] | [INFO] [stdout] 90 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | binary_op!(Add, add, "Arithmetic addition (e.g. `a + b`"); [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:45 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | binary_op!(Add, add, "Arithmetic addition (e.g. `a + b`"); [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: this impl is not `const`, so it cannot have `~const` trait bounds [INFO] [stdout] --> src/ops/mod.rs:90:18 [INFO] [stdout] | [INFO] [stdout] 90 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | binary_op!(Add, add, "Arithmetic addition (e.g. `a + b`"); [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:29 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 191 | binary_op!(BitAnd, bitand, "Bitwise conjunction (e.g. `a & b`)"); [INFO] [stdout] | ---------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this item cannot have `~const` trait bounds [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:45 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 191 | binary_op!(BitAnd, bitand, "Bitwise conjunction (e.g. `a & b`)"); [INFO] [stdout] | ---------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this item cannot have `~const` trait bounds [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:29 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 191 | binary_op!(BitAnd, bitand, "Bitwise conjunction (e.g. `a & b`)"); [INFO] [stdout] | ---------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: this impl is not `const`, so it cannot have `~const` trait bounds [INFO] [stdout] --> src/ops/mod.rs:90:18 [INFO] [stdout] | [INFO] [stdout] 90 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 191 | binary_op!(BitAnd, bitand, "Bitwise conjunction (e.g. `a & b`)"); [INFO] [stdout] | ---------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:45 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 191 | binary_op!(BitAnd, bitand, "Bitwise conjunction (e.g. `a & b`)"); [INFO] [stdout] | ---------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: this impl is not `const`, so it cannot have `~const` trait bounds [INFO] [stdout] --> src/ops/mod.rs:90:18 [INFO] [stdout] | [INFO] [stdout] 90 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 191 | binary_op!(BitAnd, bitand, "Bitwise conjunction (e.g. `a & b`)"); [INFO] [stdout] | ---------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:29 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 192 | binary_op!(BitOr, bitor, "Bitwise inclusive-or (e.g. `a | b`)"); [INFO] [stdout] | --------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this item cannot have `~const` trait bounds [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:45 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 192 | binary_op!(BitOr, bitor, "Bitwise inclusive-or (e.g. `a | b`)"); [INFO] [stdout] | --------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this item cannot have `~const` trait bounds [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:29 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 192 | binary_op!(BitOr, bitor, "Bitwise inclusive-or (e.g. `a | b`)"); [INFO] [stdout] | --------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: this impl is not `const`, so it cannot have `~const` trait bounds [INFO] [stdout] --> src/ops/mod.rs:90:18 [INFO] [stdout] | [INFO] [stdout] 90 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 192 | binary_op!(BitOr, bitor, "Bitwise inclusive-or (e.g. `a | b`)"); [INFO] [stdout] | --------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:45 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 192 | binary_op!(BitOr, bitor, "Bitwise inclusive-or (e.g. `a | b`)"); [INFO] [stdout] | --------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: this impl is not `const`, so it cannot have `~const` trait bounds [INFO] [stdout] --> src/ops/mod.rs:90:18 [INFO] [stdout] | [INFO] [stdout] 90 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 192 | binary_op!(BitOr, bitor, "Bitwise inclusive-or (e.g. `a | b`)"); [INFO] [stdout] | --------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:29 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | binary_op!(BitXor, bitxor, "Bitwise exclusive-or (e.g. `a ^ b`)"); [INFO] [stdout] | ----------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this item cannot have `~const` trait bounds [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:45 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | binary_op!(BitXor, bitxor, "Bitwise exclusive-or (e.g. `a ^ b`)"); [INFO] [stdout] | ----------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this item cannot have `~const` trait bounds [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:29 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | binary_op!(BitXor, bitxor, "Bitwise exclusive-or (e.g. `a ^ b`)"); [INFO] [stdout] | ----------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: this impl is not `const`, so it cannot have `~const` trait bounds [INFO] [stdout] --> src/ops/mod.rs:90:18 [INFO] [stdout] | [INFO] [stdout] 90 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | binary_op!(BitXor, bitxor, "Bitwise exclusive-or (e.g. `a ^ b`)"); [INFO] [stdout] | ----------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:45 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | binary_op!(BitXor, bitxor, "Bitwise exclusive-or (e.g. `a ^ b`)"); [INFO] [stdout] | ----------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: this impl is not `const`, so it cannot have `~const` trait bounds [INFO] [stdout] --> src/ops/mod.rs:90:18 [INFO] [stdout] | [INFO] [stdout] 90 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | binary_op!(BitXor, bitxor, "Bitwise exclusive-or (e.g. `a ^ b`)"); [INFO] [stdout] | ----------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:29 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 194 | binary_op!(Div, div, "Arithmetic division (e.g. `a / b`)"); // TODO: quotient rule [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this item cannot have `~const` trait bounds [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:45 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 194 | binary_op!(Div, div, "Arithmetic division (e.g. `a / b`)"); // TODO: quotient rule [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this item cannot have `~const` trait bounds [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:29 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 194 | binary_op!(Div, div, "Arithmetic division (e.g. `a / b`)"); // TODO: quotient rule [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: this impl is not `const`, so it cannot have `~const` trait bounds [INFO] [stdout] --> src/ops/mod.rs:90:18 [INFO] [stdout] | [INFO] [stdout] 90 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 194 | binary_op!(Div, div, "Arithmetic division (e.g. `a / b`)"); // TODO: quotient rule [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:45 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 194 | binary_op!(Div, div, "Arithmetic division (e.g. `a / b`)"); // TODO: quotient rule [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: this impl is not `const`, so it cannot have `~const` trait bounds [INFO] [stdout] --> src/ops/mod.rs:90:18 [INFO] [stdout] | [INFO] [stdout] 90 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 194 | binary_op!(Div, div, "Arithmetic division (e.g. `a / b`)"); // TODO: quotient rule [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:29 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | binary_op!(Mul, mul, "Arithmetic multiplication (e.g. `a * b`)"); // TODO: product rule [INFO] [stdout] | ---------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this item cannot have `~const` trait bounds [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:45 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | binary_op!(Mul, mul, "Arithmetic multiplication (e.g. `a * b`)"); // TODO: product rule [INFO] [stdout] | ---------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this item cannot have `~const` trait bounds [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:29 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | binary_op!(Mul, mul, "Arithmetic multiplication (e.g. `a * b`)"); // TODO: product rule [INFO] [stdout] | ---------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: this impl is not `const`, so it cannot have `~const` trait bounds [INFO] [stdout] --> src/ops/mod.rs:90:18 [INFO] [stdout] | [INFO] [stdout] 90 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | binary_op!(Mul, mul, "Arithmetic multiplication (e.g. `a * b`)"); // TODO: product rule [INFO] [stdout] | ---------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:45 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | binary_op!(Mul, mul, "Arithmetic multiplication (e.g. `a * b`)"); // TODO: product rule [INFO] [stdout] | ---------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: this impl is not `const`, so it cannot have `~const` trait bounds [INFO] [stdout] --> src/ops/mod.rs:90:18 [INFO] [stdout] | [INFO] [stdout] 90 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | binary_op!(Mul, mul, "Arithmetic multiplication (e.g. `a * b`)"); // TODO: product rule [INFO] [stdout] | ---------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:29 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | binary_op!(Rem, rem, "Arithmetic remainder (e.g. `a % b`)"); //TODO: just the left argument [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this item cannot have `~const` trait bounds [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:45 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | binary_op!(Rem, rem, "Arithmetic remainder (e.g. `a % b`)"); //TODO: just the left argument [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this item cannot have `~const` trait bounds [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:29 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | binary_op!(Rem, rem, "Arithmetic remainder (e.g. `a % b`)"); //TODO: just the left argument [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: this impl is not `const`, so it cannot have `~const` trait bounds [INFO] [stdout] --> src/ops/mod.rs:90:18 [INFO] [stdout] | [INFO] [stdout] 90 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | binary_op!(Rem, rem, "Arithmetic remainder (e.g. `a % b`)"); //TODO: just the left argument [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:45 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | binary_op!(Rem, rem, "Arithmetic remainder (e.g. `a % b`)"); //TODO: just the left argument [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: this impl is not `const`, so it cannot have `~const` trait bounds [INFO] [stdout] --> src/ops/mod.rs:90:18 [INFO] [stdout] | [INFO] [stdout] 90 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | binary_op!(Rem, rem, "Arithmetic remainder (e.g. `a % b`)"); //TODO: just the left argument [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:29 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | binary_op!(Shl, shl, "Arithmetic left-shift (e.g. `a << b`)"); //TODO: more complicated [INFO] [stdout] | ------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this item cannot have `~const` trait bounds [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:45 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | binary_op!(Shl, shl, "Arithmetic left-shift (e.g. `a << b`)"); //TODO: more complicated [INFO] [stdout] | ------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this item cannot have `~const` trait bounds [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:29 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | binary_op!(Shl, shl, "Arithmetic left-shift (e.g. `a << b`)"); //TODO: more complicated [INFO] [stdout] | ------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: this impl is not `const`, so it cannot have `~const` trait bounds [INFO] [stdout] --> src/ops/mod.rs:90:18 [INFO] [stdout] | [INFO] [stdout] 90 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | binary_op!(Shl, shl, "Arithmetic left-shift (e.g. `a << b`)"); //TODO: more complicated [INFO] [stdout] | ------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:45 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | binary_op!(Shl, shl, "Arithmetic left-shift (e.g. `a << b`)"); //TODO: more complicated [INFO] [stdout] | ------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: this impl is not `const`, so it cannot have `~const` trait bounds [INFO] [stdout] --> src/ops/mod.rs:90:18 [INFO] [stdout] | [INFO] [stdout] 90 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | binary_op!(Shl, shl, "Arithmetic left-shift (e.g. `a << b`)"); //TODO: more complicated [INFO] [stdout] | ------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:29 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 198 | binary_op!(Shr, shr, "Arithmetic right-shift (e.g. `a << b`)"); //TODO: more complicated [INFO] [stdout] | -------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this item cannot have `~const` trait bounds [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:45 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 198 | binary_op!(Shr, shr, "Arithmetic right-shift (e.g. `a << b`)"); //TODO: more complicated [INFO] [stdout] | -------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this item cannot have `~const` trait bounds [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:29 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 198 | binary_op!(Shr, shr, "Arithmetic right-shift (e.g. `a << b`)"); //TODO: more complicated [INFO] [stdout] | -------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: this impl is not `const`, so it cannot have `~const` trait bounds [INFO] [stdout] --> src/ops/mod.rs:90:18 [INFO] [stdout] | [INFO] [stdout] 90 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 198 | binary_op!(Shr, shr, "Arithmetic right-shift (e.g. `a << b`)"); //TODO: more complicated [INFO] [stdout] | -------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:45 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 198 | binary_op!(Shr, shr, "Arithmetic right-shift (e.g. `a << b`)"); //TODO: more complicated [INFO] [stdout] | -------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: this impl is not `const`, so it cannot have `~const` trait bounds [INFO] [stdout] --> src/ops/mod.rs:90:18 [INFO] [stdout] | [INFO] [stdout] 90 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 198 | binary_op!(Shr, shr, "Arithmetic right-shift (e.g. `a << b`)"); //TODO: more complicated [INFO] [stdout] | -------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:29 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 199 | binary_op!(Sub, sub, "Arithmetic subtraction (e.g. `a - b`)"); //TODO: more complicated [INFO] [stdout] | ------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this item cannot have `~const` trait bounds [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:45 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 199 | binary_op!(Sub, sub, "Arithmetic subtraction (e.g. `a - b`)"); //TODO: more complicated [INFO] [stdout] | ------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this item cannot have `~const` trait bounds [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:29 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 199 | binary_op!(Sub, sub, "Arithmetic subtraction (e.g. `a - b`)"); //TODO: more complicated [INFO] [stdout] | ------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: this impl is not `const`, so it cannot have `~const` trait bounds [INFO] [stdout] --> src/ops/mod.rs:90:18 [INFO] [stdout] | [INFO] [stdout] 90 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 199 | binary_op!(Sub, sub, "Arithmetic subtraction (e.g. `a - b`)"); //TODO: more complicated [INFO] [stdout] | ------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` is not allowed here [INFO] [stdout] --> src/ops/mod.rs:92:45 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 199 | binary_op!(Sub, sub, "Arithmetic subtraction (e.g. `a - b`)"); //TODO: more complicated [INFO] [stdout] | ------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: this impl is not `const`, so it cannot have `~const` trait bounds [INFO] [stdout] --> src/ops/mod.rs:90:18 [INFO] [stdout] | [INFO] [stdout] 90 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 199 | binary_op!(Sub, sub, "Arithmetic subtraction (e.g. `a - b`)"); //TODO: more complicated [INFO] [stdout] | ------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable const library feature `const_ops` [INFO] [stdout] --> src/ops/mod.rs:92:20 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ____________________^ [INFO] [stdout] 93 | | impl< [INFO] [stdout] 94 | | L: ~const Eval>, [INFO] [stdout] 95 | | R: ~const Eval, [INFO] [stdout] 96 | | > const core::ops::$Name> for Expr [INFO] [stdout] | |_____________________________________________^ trait is not stable as const yet [INFO] [stdout] ... [INFO] [stdout] 190 | binary_op!(Add, add, "Arithmetic addition (e.g. `a + b`"); [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: see issue #90080 for more information [INFO] [stdout] = help: add `#![feature(const_ops)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-06-19; consider upgrading it if it is out of date [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable const library feature `const_ops` [INFO] [stdout] --> src/ops/mod.rs:92:20 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ____________________^ [INFO] [stdout] 93 | | impl< [INFO] [stdout] 94 | | L: ~const Eval>, [INFO] [stdout] | |___________________________________________------______________________________^ [INFO] [stdout] | | [INFO] [stdout] | trait is not stable as const yet [INFO] [stdout] ... [INFO] [stdout] 190 | binary_op!(Add, add, "Arithmetic addition (e.g. `a + b`"); [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: see issue #90080 for more information [INFO] [stdout] = help: add `#![feature(const_ops)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-06-19; consider upgrading it if it is out of date [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable const library feature `const_ops` [INFO] [stdout] --> src/ops/mod.rs:92:20 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ____________________^ [INFO] [stdout] 93 | | impl< [INFO] [stdout] 94 | | L: ~const Eval>, [INFO] [stdout] 95 | | R: ~const Eval, [INFO] [stdout] ... | [INFO] [stdout] 104 | | $crate::implement_eval!( [INFO] [stdout] 105 | | L: Eval>, R: Eval => [INFO] [stdout] | |________________________________------______________________________^ [INFO] [stdout] | | [INFO] [stdout] | trait is not stable as const yet [INFO] [stdout] ... [INFO] [stdout] 190 | binary_op!(Add, add, "Arithmetic addition (e.g. `a + b`"); [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: see issue #90080 for more information [INFO] [stdout] = help: add `#![feature(const_ops)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-06-19; consider upgrading it if it is out of date [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable const library feature `const_ops` [INFO] [stdout] --> src/ops/mod.rs:119:50 [INFO] [stdout] | [INFO] [stdout] 119 | L: ~const Eval> [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | trait is not stable as const yet [INFO] [stdout] ... [INFO] [stdout] 201 | binary_grad!(Add, Add); [INFO] [stdout] | ---------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: see issue #90080 for more information [INFO] [stdout] = help: add `#![feature(const_ops)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-06-19; consider upgrading it if it is out of date [INFO] [stdout] = note: this error originates in the macro `binary_grad` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable const library feature `const_ops` [INFO] [stdout] --> src/ops/mod.rs:122:47 [INFO] [stdout] | [INFO] [stdout] 122 | Evaluated: ~const core::ops::$Diff< [INFO] [stdout] | ________________________________________------_^ [INFO] [stdout] | | | [INFO] [stdout] | | trait is not stable as const yet [INFO] [stdout] 123 | | ::Evaluated, [INFO] [stdout] 124 | | >, [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 201 | binary_grad!(Add, Add); [INFO] [stdout] | ---------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: see issue #90080 for more information [INFO] [stdout] = help: add `#![feature(const_ops)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-06-19; consider upgrading it if it is out of date [INFO] [stdout] = note: this error originates in the macro `binary_grad` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable const library feature `const_ops` [INFO] [stdout] --> src/ops/mod.rs:119:61 [INFO] [stdout] | [INFO] [stdout] 119 | L: ~const Eval> [INFO] [stdout] | _____________________________________________________________^ [INFO] [stdout] 120 | | + ~const Grad< [INFO] [stdout] 121 | | Differentiated: ~const Eval< [INFO] [stdout] 122 | | Evaluated: ~const core::ops::$Diff< [INFO] [stdout] ... | [INFO] [stdout] 132 | | impl< [INFO] [stdout] 133 | | L: ~const Eval> [INFO] [stdout] | |___________________________________________------______________________________^ [INFO] [stdout] | | [INFO] [stdout] | trait is not stable as const yet [INFO] [stdout] ... [INFO] [stdout] 201 | binary_grad!(Add, Add); [INFO] [stdout] | ---------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: see issue #90080 for more information [INFO] [stdout] = help: add `#![feature(const_ops)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-06-19; consider upgrading it if it is out of date [INFO] [stdout] = note: this error originates in the macro `binary_grad` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable const library feature `const_ops` [INFO] [stdout] --> src/ops/mod.rs:122:58 [INFO] [stdout] | [INFO] [stdout] 122 | Evaluated: ~const core::ops::$Diff< [INFO] [stdout] | __________________________________________________________^ [INFO] [stdout] 123 | | ::Evaluated, [INFO] [stdout] 124 | | >, [INFO] [stdout] 125 | | >, [INFO] [stdout] ... | [INFO] [stdout] 136 | | Evaluated: ~const core::ops::$Diff< [INFO] [stdout] | | ------ trait is not stable as const yet [INFO] [stdout] 137 | | ::Evaluated, [INFO] [stdout] 138 | | >, [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 201 | binary_grad!(Add, Add); [INFO] [stdout] | ---------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: see issue #90080 for more information [INFO] [stdout] = help: add `#![feature(const_ops)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-06-19; consider upgrading it if it is out of date [INFO] [stdout] = note: this error originates in the macro `binary_grad` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable const library feature `const_ops` [INFO] [stdout] --> src/ops/mod.rs:119:61 [INFO] [stdout] | [INFO] [stdout] 119 | L: ~const Eval> [INFO] [stdout] | _____________________________________________________________^ [INFO] [stdout] 120 | | + ~const Grad< [INFO] [stdout] 121 | | Differentiated: ~const Eval< [INFO] [stdout] 122 | | Evaluated: ~const core::ops::$Diff< [INFO] [stdout] ... | [INFO] [stdout] 149 | | impl< [INFO] [stdout] 150 | | L: ~const Eval> [INFO] [stdout] | |___________________________________________------______________________________^ [INFO] [stdout] | | [INFO] [stdout] | trait is not stable as const yet [INFO] [stdout] ... [INFO] [stdout] 201 | binary_grad!(Add, Add); [INFO] [stdout] | ---------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: see issue #90080 for more information [INFO] [stdout] = help: add `#![feature(const_ops)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-06-19; consider upgrading it if it is out of date [INFO] [stdout] = note: this error originates in the macro `binary_grad` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable const library feature `const_ops` [INFO] [stdout] --> src/ops/mod.rs:122:58 [INFO] [stdout] | [INFO] [stdout] 122 | Evaluated: ~const core::ops::$Diff< [INFO] [stdout] | __________________________________________________________^ [INFO] [stdout] 123 | | ::Evaluated, [INFO] [stdout] 124 | | >, [INFO] [stdout] 125 | | >, [INFO] [stdout] ... | [INFO] [stdout] 153 | | Evaluated: ~const core::ops::$Diff< [INFO] [stdout] | | ------ trait is not stable as const yet [INFO] [stdout] 154 | | ::Evaluated, [INFO] [stdout] 155 | | >, [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 201 | binary_grad!(Add, Add); [INFO] [stdout] | ---------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: see issue #90080 for more information [INFO] [stdout] = help: add `#![feature(const_ops)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-06-19; consider upgrading it if it is out of date [INFO] [stdout] = note: this error originates in the macro `binary_grad` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable const library feature `const_ops` [INFO] [stdout] --> src/ops/mod.rs:119:61 [INFO] [stdout] | [INFO] [stdout] 119 | L: ~const Eval> [INFO] [stdout] | _____________________________________________________________^ [INFO] [stdout] 120 | | + ~const Grad< [INFO] [stdout] 121 | | Differentiated: ~const Eval< [INFO] [stdout] 122 | | Evaluated: ~const core::ops::$Diff< [INFO] [stdout] ... | [INFO] [stdout] 166 | | impl< [INFO] [stdout] 167 | | L: ~const Eval> [INFO] [stdout] | |___________________________________________------______________________________^ [INFO] [stdout] | | [INFO] [stdout] | trait is not stable as const yet [INFO] [stdout] ... [INFO] [stdout] 201 | binary_grad!(Add, Add); [INFO] [stdout] | ---------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: see issue #90080 for more information [INFO] [stdout] = help: add `#![feature(const_ops)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-06-19; consider upgrading it if it is out of date [INFO] [stdout] = note: this error originates in the macro `binary_grad` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable const library feature `const_ops` [INFO] [stdout] --> src/ops/mod.rs:122:58 [INFO] [stdout] | [INFO] [stdout] 122 | Evaluated: ~const core::ops::$Diff< [INFO] [stdout] | __________________________________________________________^ [INFO] [stdout] 123 | | ::Evaluated, [INFO] [stdout] 124 | | >, [INFO] [stdout] 125 | | >, [INFO] [stdout] ... | [INFO] [stdout] 170 | | Evaluated: ~const core::ops::$Diff< [INFO] [stdout] | | ------ trait is not stable as const yet [INFO] [stdout] 171 | | ::Evaluated, [INFO] [stdout] 172 | | >, [INFO] [stdout] | |_____________________________^ [INFO] [stdout] ... [INFO] [stdout] 201 | binary_grad!(Add, Add); [INFO] [stdout] | ---------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: see issue #90080 for more information [INFO] [stdout] = help: add `#![feature(const_ops)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-06-19; consider upgrading it if it is out of date [INFO] [stdout] = note: this error originates in the macro `binary_grad` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the feature `associated_type_bounds` has been stable since 1.79.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | associated_type_bounds, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | #![deny(warnings, missing_docs)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[deny(stable_features)]` implied by `#[deny(warnings)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `Neg` which is not marked with `#[const_trait]` [INFO] [stdout] --> src/ops/mod.rs:19:20 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct $Name(T); [INFO] [stdout] | ____________________^ [INFO] [stdout] 20 | | impl> const core::ops::$Name for Expr { [INFO] [stdout] | |_______________________________________________________________________^ this trait is not `const` [INFO] [stdout] ... [INFO] [stdout] 184 | unary_op!(Neg, neg, "Arithmetic negation (e.g. `-4`)."); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `#[const_trait]` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `unary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `Not` which is not marked with `#[const_trait]` [INFO] [stdout] --> src/ops/mod.rs:19:20 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct $Name(T); [INFO] [stdout] | ____________________^ [INFO] [stdout] 20 | | impl> const core::ops::$Name for Expr { [INFO] [stdout] | |_______________________________________________________________________^ this trait is not `const` [INFO] [stdout] ... [INFO] [stdout] 185 | unary_op!(Not, not, "Logical negation (e.g. `!true`)."); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `#[const_trait]` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `unary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `BitAnd` which is not marked with `#[const_trait]` [INFO] [stdout] --> src/ops/mod.rs:92:20 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ____________________^ [INFO] [stdout] 93 | | impl< [INFO] [stdout] 94 | | L: ~const Eval>, [INFO] [stdout] 95 | | R: ~const Eval, [INFO] [stdout] 96 | | > const core::ops::$Name> for Expr [INFO] [stdout] | |_____________________________________________^ this trait is not `const` [INFO] [stdout] ... [INFO] [stdout] 191 | binary_op!(BitAnd, bitand, "Bitwise conjunction (e.g. `a & b`)"); [INFO] [stdout] | ---------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `#[const_trait]` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `BitOr` which is not marked with `#[const_trait]` [INFO] [stdout] --> src/ops/mod.rs:92:20 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ____________________^ [INFO] [stdout] 93 | | impl< [INFO] [stdout] 94 | | L: ~const Eval>, [INFO] [stdout] 95 | | R: ~const Eval, [INFO] [stdout] 96 | | > const core::ops::$Name> for Expr [INFO] [stdout] | |_____________________________________________^ this trait is not `const` [INFO] [stdout] ... [INFO] [stdout] 192 | binary_op!(BitOr, bitor, "Bitwise inclusive-or (e.g. `a | b`)"); [INFO] [stdout] | --------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `#[const_trait]` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `BitXor` which is not marked with `#[const_trait]` [INFO] [stdout] --> src/ops/mod.rs:92:20 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ____________________^ [INFO] [stdout] 93 | | impl< [INFO] [stdout] 94 | | L: ~const Eval>, [INFO] [stdout] 95 | | R: ~const Eval, [INFO] [stdout] 96 | | > const core::ops::$Name> for Expr [INFO] [stdout] | |_____________________________________________^ this trait is not `const` [INFO] [stdout] ... [INFO] [stdout] 193 | binary_op!(BitXor, bitxor, "Bitwise exclusive-or (e.g. `a ^ b`)"); [INFO] [stdout] | ----------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `#[const_trait]` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `Div` which is not marked with `#[const_trait]` [INFO] [stdout] --> src/ops/mod.rs:92:20 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ____________________^ [INFO] [stdout] 93 | | impl< [INFO] [stdout] 94 | | L: ~const Eval>, [INFO] [stdout] 95 | | R: ~const Eval, [INFO] [stdout] 96 | | > const core::ops::$Name> for Expr [INFO] [stdout] | |_____________________________________________^ this trait is not `const` [INFO] [stdout] ... [INFO] [stdout] 194 | binary_op!(Div, div, "Arithmetic division (e.g. `a / b`)"); // TODO: quotient rule [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `#[const_trait]` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `Mul` which is not marked with `#[const_trait]` [INFO] [stdout] --> src/ops/mod.rs:92:20 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ____________________^ [INFO] [stdout] 93 | | impl< [INFO] [stdout] 94 | | L: ~const Eval>, [INFO] [stdout] 95 | | R: ~const Eval, [INFO] [stdout] 96 | | > const core::ops::$Name> for Expr [INFO] [stdout] | |_____________________________________________^ this trait is not `const` [INFO] [stdout] ... [INFO] [stdout] 195 | binary_op!(Mul, mul, "Arithmetic multiplication (e.g. `a * b`)"); // TODO: product rule [INFO] [stdout] | ---------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `#[const_trait]` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `Rem` which is not marked with `#[const_trait]` [INFO] [stdout] --> src/ops/mod.rs:92:20 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ____________________^ [INFO] [stdout] 93 | | impl< [INFO] [stdout] 94 | | L: ~const Eval>, [INFO] [stdout] 95 | | R: ~const Eval, [INFO] [stdout] 96 | | > const core::ops::$Name> for Expr [INFO] [stdout] | |_____________________________________________^ this trait is not `const` [INFO] [stdout] ... [INFO] [stdout] 196 | binary_op!(Rem, rem, "Arithmetic remainder (e.g. `a % b`)"); //TODO: just the left argument [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `#[const_trait]` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `Shl` which is not marked with `#[const_trait]` [INFO] [stdout] --> src/ops/mod.rs:92:20 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ____________________^ [INFO] [stdout] 93 | | impl< [INFO] [stdout] 94 | | L: ~const Eval>, [INFO] [stdout] 95 | | R: ~const Eval, [INFO] [stdout] 96 | | > const core::ops::$Name> for Expr [INFO] [stdout] | |_____________________________________________^ this trait is not `const` [INFO] [stdout] ... [INFO] [stdout] 197 | binary_op!(Shl, shl, "Arithmetic left-shift (e.g. `a << b`)"); //TODO: more complicated [INFO] [stdout] | ------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `#[const_trait]` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `Shr` which is not marked with `#[const_trait]` [INFO] [stdout] --> src/ops/mod.rs:92:20 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ____________________^ [INFO] [stdout] 93 | | impl< [INFO] [stdout] 94 | | L: ~const Eval>, [INFO] [stdout] 95 | | R: ~const Eval, [INFO] [stdout] 96 | | > const core::ops::$Name> for Expr [INFO] [stdout] | |_____________________________________________^ this trait is not `const` [INFO] [stdout] ... [INFO] [stdout] 198 | binary_op!(Shr, shr, "Arithmetic right-shift (e.g. `a << b`)"); //TODO: more complicated [INFO] [stdout] | -------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `#[const_trait]` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `Sub` which is not marked with `#[const_trait]` [INFO] [stdout] --> src/ops/mod.rs:92:20 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ____________________^ [INFO] [stdout] 93 | | impl< [INFO] [stdout] 94 | | L: ~const Eval>, [INFO] [stdout] 95 | | R: ~const Eval, [INFO] [stdout] 96 | | > const core::ops::$Name> for Expr [INFO] [stdout] | |_____________________________________________^ this trait is not `const` [INFO] [stdout] ... [INFO] [stdout] 199 | binary_op!(Sub, sub, "Arithmetic subtraction (e.g. `a - b`)"); //TODO: more complicated [INFO] [stdout] | ------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `#[const_trait]` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:20:40 [INFO] [stdout] | [INFO] [stdout] 20 | impl> const core::ops::$Name for Expr { [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::Neg` [INFO] [stdout] ... [INFO] [stdout] 184 | unary_op!(Neg, neg, "Arithmetic negation (e.g. `-4`)."); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::Neg` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:668:1 [INFO] [stdout] = note: this error originates in the macro `unary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:28:32 [INFO] [stdout] | [INFO] [stdout] 28 | T: Eval => [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::Neg` [INFO] [stdout] ... [INFO] [stdout] 184 | unary_op!(Neg, neg, "Arithmetic negation (e.g. `-4`)."); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::Neg` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:668:1 [INFO] [stdout] = note: this error originates in the macro `unary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:20:40 [INFO] [stdout] | [INFO] [stdout] 20 | impl> const core::ops::$Name for Expr { [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::Not` [INFO] [stdout] ... [INFO] [stdout] 185 | unary_op!(Not, not, "Logical negation (e.g. `!true`)."); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::Not` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/bit.rs:34:1 [INFO] [stdout] = note: this error originates in the macro `unary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:28:32 [INFO] [stdout] | [INFO] [stdout] 28 | T: Eval => [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::Not` [INFO] [stdout] ... [INFO] [stdout] 185 | unary_op!(Not, not, "Logical negation (e.g. `!true`)."); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::Not` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/bit.rs:34:1 [INFO] [stdout] = note: this error originates in the macro `unary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:43:43 [INFO] [stdout] | [INFO] [stdout] 43 | T: ~const Eval [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::Neg` [INFO] [stdout] ... [INFO] [stdout] 187 | unary_grad!(Neg, Neg); [INFO] [stdout] | --------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::Neg` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:668:1 [INFO] [stdout] = note: this error originates in the macro `unary_grad` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:44:74 [INFO] [stdout] | [INFO] [stdout] 44 | + ~const Grad>, [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::Neg` [INFO] [stdout] ... [INFO] [stdout] 187 | unary_grad!(Neg, Neg); [INFO] [stdout] | --------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::Neg` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:668:1 [INFO] [stdout] = note: this error originates in the macro `unary_grad` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:50:43 [INFO] [stdout] | [INFO] [stdout] 50 | T: ~const Eval [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::Neg` [INFO] [stdout] ... [INFO] [stdout] 187 | unary_grad!(Neg, Neg); [INFO] [stdout] | --------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::Neg` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:668:1 [INFO] [stdout] = note: this error originates in the macro `unary_grad` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:51:74 [INFO] [stdout] | [INFO] [stdout] 51 | + ~const Grad>, [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::Neg` [INFO] [stdout] ... [INFO] [stdout] 187 | unary_grad!(Neg, Neg); [INFO] [stdout] | --------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::Neg` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:668:1 [INFO] [stdout] = note: this error originates in the macro `unary_grad` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:60:43 [INFO] [stdout] | [INFO] [stdout] 60 | T: ~const Eval [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::Neg` [INFO] [stdout] ... [INFO] [stdout] 187 | unary_grad!(Neg, Neg); [INFO] [stdout] | --------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::Neg` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:668:1 [INFO] [stdout] = note: this error originates in the macro `unary_grad` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:61:74 [INFO] [stdout] | [INFO] [stdout] 61 | + ~const Grad>, [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::Neg` [INFO] [stdout] ... [INFO] [stdout] 187 | unary_grad!(Neg, Neg); [INFO] [stdout] | --------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::Neg` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:668:1 [INFO] [stdout] = note: this error originates in the macro `unary_grad` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:70:43 [INFO] [stdout] | [INFO] [stdout] 70 | T: ~const Eval [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::Neg` [INFO] [stdout] ... [INFO] [stdout] 187 | unary_grad!(Neg, Neg); [INFO] [stdout] | --------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::Neg` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:668:1 [INFO] [stdout] = note: this error originates in the macro `unary_grad` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:71:74 [INFO] [stdout] | [INFO] [stdout] 71 | + ~const Grad>, [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::Neg` [INFO] [stdout] ... [INFO] [stdout] 187 | unary_grad!(Neg, Neg); [INFO] [stdout] | --------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::Neg` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:668:1 [INFO] [stdout] = note: this error originates in the macro `unary_grad` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:94:43 [INFO] [stdout] | [INFO] [stdout] 94 | L: ~const Eval>, [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::BitAnd` [INFO] [stdout] ... [INFO] [stdout] 191 | binary_op!(BitAnd, bitand, "Bitwise conjunction (e.g. `a & b`)"); [INFO] [stdout] | ---------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::BitAnd` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/bit.rs:144:1 [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:105:32 [INFO] [stdout] | [INFO] [stdout] 105 | L: Eval>, R: Eval => [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::BitAnd` [INFO] [stdout] ... [INFO] [stdout] 191 | binary_op!(BitAnd, bitand, "Bitwise conjunction (e.g. `a & b`)"); [INFO] [stdout] | ---------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::BitAnd` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/bit.rs:144:1 [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:94:43 [INFO] [stdout] | [INFO] [stdout] 94 | L: ~const Eval>, [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::BitOr` [INFO] [stdout] ... [INFO] [stdout] 192 | binary_op!(BitOr, bitor, "Bitwise inclusive-or (e.g. `a | b`)"); [INFO] [stdout] | --------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::BitOr` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/bit.rs:244:1 [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:105:32 [INFO] [stdout] | [INFO] [stdout] 105 | L: Eval>, R: Eval => [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::BitOr` [INFO] [stdout] ... [INFO] [stdout] 192 | binary_op!(BitOr, bitor, "Bitwise inclusive-or (e.g. `a | b`)"); [INFO] [stdout] | --------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::BitOr` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/bit.rs:244:1 [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:94:43 [INFO] [stdout] | [INFO] [stdout] 94 | L: ~const Eval>, [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::BitXor` [INFO] [stdout] ... [INFO] [stdout] 193 | binary_op!(BitXor, bitxor, "Bitwise exclusive-or (e.g. `a ^ b`)"); [INFO] [stdout] | ----------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::BitXor` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/bit.rs:344:1 [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:105:32 [INFO] [stdout] | [INFO] [stdout] 105 | L: Eval>, R: Eval => [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::BitXor` [INFO] [stdout] ... [INFO] [stdout] 193 | binary_op!(BitXor, bitxor, "Bitwise exclusive-or (e.g. `a ^ b`)"); [INFO] [stdout] | ----------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::BitXor` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/bit.rs:344:1 [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:94:43 [INFO] [stdout] | [INFO] [stdout] 94 | L: ~const Eval>, [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::Div` [INFO] [stdout] ... [INFO] [stdout] 194 | binary_op!(Div, div, "Arithmetic division (e.g. `a / b`)"); // TODO: quotient rule [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::Div` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:452:1 [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:105:32 [INFO] [stdout] | [INFO] [stdout] 105 | L: Eval>, R: Eval => [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::Div` [INFO] [stdout] ... [INFO] [stdout] 194 | binary_op!(Div, div, "Arithmetic division (e.g. `a / b`)"); // TODO: quotient rule [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::Div` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:452:1 [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:94:43 [INFO] [stdout] | [INFO] [stdout] 94 | L: ~const Eval>, [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::Mul` [INFO] [stdout] ... [INFO] [stdout] 195 | binary_op!(Mul, mul, "Arithmetic multiplication (e.g. `a * b`)"); // TODO: product rule [INFO] [stdout] | ---------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::Mul` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:318:1 [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:105:32 [INFO] [stdout] | [INFO] [stdout] 105 | L: Eval>, R: Eval => [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::Mul` [INFO] [stdout] ... [INFO] [stdout] 195 | binary_op!(Mul, mul, "Arithmetic multiplication (e.g. `a * b`)"); // TODO: product rule [INFO] [stdout] | ---------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::Mul` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:318:1 [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:94:43 [INFO] [stdout] | [INFO] [stdout] 94 | L: ~const Eval>, [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::Rem` [INFO] [stdout] ... [INFO] [stdout] 196 | binary_op!(Rem, rem, "Arithmetic remainder (e.g. `a % b`)"); //TODO: just the left argument [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::Rem` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:554:1 [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:105:32 [INFO] [stdout] | [INFO] [stdout] 105 | L: Eval>, R: Eval => [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::Rem` [INFO] [stdout] ... [INFO] [stdout] 196 | binary_op!(Rem, rem, "Arithmetic remainder (e.g. `a % b`)"); //TODO: just the left argument [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::Rem` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:554:1 [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:94:43 [INFO] [stdout] | [INFO] [stdout] 94 | L: ~const Eval>, [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::Shl` [INFO] [stdout] ... [INFO] [stdout] 197 | binary_op!(Shl, shl, "Arithmetic left-shift (e.g. `a << b`)"); //TODO: more complicated [INFO] [stdout] | ------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::Shl` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/bit.rs:443:1 [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:105:32 [INFO] [stdout] | [INFO] [stdout] 105 | L: Eval>, R: Eval => [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::Shl` [INFO] [stdout] ... [INFO] [stdout] 197 | binary_op!(Shl, shl, "Arithmetic left-shift (e.g. `a << b`)"); //TODO: more complicated [INFO] [stdout] | ------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::Shl` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/bit.rs:443:1 [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:94:43 [INFO] [stdout] | [INFO] [stdout] 94 | L: ~const Eval>, [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::Shr` [INFO] [stdout] ... [INFO] [stdout] 198 | binary_op!(Shr, shr, "Arithmetic right-shift (e.g. `a << b`)"); //TODO: more complicated [INFO] [stdout] | -------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::Shr` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/bit.rs:561:1 [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:105:32 [INFO] [stdout] | [INFO] [stdout] 105 | L: Eval>, R: Eval => [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::Shr` [INFO] [stdout] ... [INFO] [stdout] 198 | binary_op!(Shr, shr, "Arithmetic right-shift (e.g. `a << b`)"); //TODO: more complicated [INFO] [stdout] | -------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::Shr` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/bit.rs:561:1 [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:94:43 [INFO] [stdout] | [INFO] [stdout] 94 | L: ~const Eval>, [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::Sub` [INFO] [stdout] ... [INFO] [stdout] 199 | binary_op!(Sub, sub, "Arithmetic subtraction (e.g. `a - b`)"); //TODO: more complicated [INFO] [stdout] | ------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::Sub` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:188:1 [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:105:32 [INFO] [stdout] | [INFO] [stdout] 105 | L: Eval>, R: Eval => [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::Sub` [INFO] [stdout] ... [INFO] [stdout] 199 | binary_op!(Sub, sub, "Arithmetic subtraction (e.g. `a - b`)"); //TODO: more complicated [INFO] [stdout] | ------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::Sub` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:188:1 [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:119:43 [INFO] [stdout] | [INFO] [stdout] 119 | L: ~const Eval> [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::Sub` [INFO] [stdout] ... [INFO] [stdout] 202 | binary_grad!(Sub, Sub); [INFO] [stdout] | ---------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::Sub` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:188:1 [INFO] [stdout] = note: this error originates in the macro `binary_grad` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:122:40 [INFO] [stdout] | [INFO] [stdout] 122 | Evaluated: ~const core::ops::$Diff< [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::Sub` [INFO] [stdout] ... [INFO] [stdout] 202 | binary_grad!(Sub, Sub); [INFO] [stdout] | ---------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::Sub` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:188:1 [INFO] [stdout] = note: this error originates in the macro `binary_grad` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:133:43 [INFO] [stdout] | [INFO] [stdout] 133 | L: ~const Eval> [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::Sub` [INFO] [stdout] ... [INFO] [stdout] 202 | binary_grad!(Sub, Sub); [INFO] [stdout] | ---------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::Sub` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:188:1 [INFO] [stdout] = note: this error originates in the macro `binary_grad` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:136:40 [INFO] [stdout] | [INFO] [stdout] 136 | Evaluated: ~const core::ops::$Diff< [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::Sub` [INFO] [stdout] ... [INFO] [stdout] 202 | binary_grad!(Sub, Sub); [INFO] [stdout] | ---------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::Sub` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:188:1 [INFO] [stdout] = note: this error originates in the macro `binary_grad` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:150:43 [INFO] [stdout] | [INFO] [stdout] 150 | L: ~const Eval> [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::Sub` [INFO] [stdout] ... [INFO] [stdout] 202 | binary_grad!(Sub, Sub); [INFO] [stdout] | ---------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::Sub` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:188:1 [INFO] [stdout] = note: this error originates in the macro `binary_grad` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:153:40 [INFO] [stdout] | [INFO] [stdout] 153 | Evaluated: ~const core::ops::$Diff< [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::Sub` [INFO] [stdout] ... [INFO] [stdout] 202 | binary_grad!(Sub, Sub); [INFO] [stdout] | ---------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::Sub` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:188:1 [INFO] [stdout] = note: this error originates in the macro `binary_grad` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:167:43 [INFO] [stdout] | [INFO] [stdout] 167 | L: ~const Eval> [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::Sub` [INFO] [stdout] ... [INFO] [stdout] 202 | binary_grad!(Sub, Sub); [INFO] [stdout] | ---------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::Sub` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:188:1 [INFO] [stdout] = note: this error originates in the macro `binary_grad` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `~const` can only be applied to `#[const_trait]` traits [INFO] [stdout] --> src/ops/mod.rs:170:40 [INFO] [stdout] | [INFO] [stdout] 170 | Evaluated: ~const core::ops::$Diff< [INFO] [stdout] | ^^^^^^ can't be applied to `std::ops::Sub` [INFO] [stdout] ... [INFO] [stdout] 202 | binary_grad!(Sub, Sub); [INFO] [stdout] | ---------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: `std::ops::Sub` can't be used with `~const` because it isn't annotated with `#[const_trait]` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/arith.rs:188:1 [INFO] [stdout] = note: this error originates in the macro `binary_grad` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&i32: const std::ops::Add<&i32>` is not satisfied [INFO] [stdout] --> src/eval.rs:142:38 [INFO] [stdout] | [INFO] [stdout] 142 | const A: Expr> = var(&1) + var(&2); // -> 3 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: required for `Expr<&i32>` to implement `const std::ops::Add>` [INFO] [stdout] --> src/ops/mod.rs:92:20 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ____________________^ [INFO] [stdout] 93 | | impl< [INFO] [stdout] 94 | | L: ~const Eval>, [INFO] [stdout] | | ------------------------------------- unsatisfied trait bound introduced here [INFO] [stdout] 95 | | R: ~const Eval, [INFO] [stdout] 96 | | > const core::ops::$Name> for Expr [INFO] [stdout] | |_____________________________________________^ ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | binary_op!(Add, add, "Arithmetic addition (e.g. `a + b`"); [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&i32: const std::ops::Add<&i32>` is not satisfied [INFO] [stdout] --> src/eval.rs:143:38 [INFO] [stdout] | [INFO] [stdout] 143 | const B: Expr> = var(&4) + var(&8); // -> 12 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: required for `Expr<&i32>` to implement `const std::ops::Add>` [INFO] [stdout] --> src/ops/mod.rs:92:20 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct $Name(L, R); [INFO] [stdout] | ____________________^ [INFO] [stdout] 93 | | impl< [INFO] [stdout] 94 | | L: ~const Eval>, [INFO] [stdout] | | ------------------------------------- unsatisfied trait bound introduced here [INFO] [stdout] 95 | | R: ~const Eval, [INFO] [stdout] 96 | | > const core::ops::$Name> for Expr [INFO] [stdout] | |_____________________________________________^ ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | binary_op!(Add, add, "Arithmetic addition (e.g. `a + b`"); [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&i32: const std::ops::Add` is not satisfied [INFO] [stdout] --> src/eval.rs:144:31 [INFO] [stdout] | [INFO] [stdout] 144 | const C: i32 = dxpr::shit(A, B).eval(); // -> 15 [INFO] [stdout] | ---------- ^ [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required for `ops::Add<&i32, &i32>` to implement `const Eval` [INFO] [stdout] --> src/eval.rs:95:50 [INFO] [stdout] | [INFO] [stdout] 95 | impl<$($t: ~const $const_trait),+> const $crate::eval::Eval for $name {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/ops/mod.rs:105:32 [INFO] [stdout] | [INFO] [stdout] 105 | L: Eval>, R: Eval => [INFO] [stdout] | ------------------------------------- unsatisfied trait bound introduced here [INFO] [stdout] 106 | $Name >-> >::Output: [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | binary_op!(Add, add, "Arithmetic addition (e.g. `a + b`"); [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] note: required by a bound in `dxpr::shit` [INFO] [stdout] --> src/eval.rs:125:47 [INFO] [stdout] | [INFO] [stdout] 125 | pub const fn $existing_fn<$($arg: ~const $crate::eval::Eval),+>($($arg: $crate::expr::Expr<$arg>),+) -> ops::... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `shit` [INFO] [stdout] ... [INFO] [stdout] 136 | op_from_fn!(shit(a: i32, b: i32) -> i32); [INFO] [stdout] | ---------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | required by a bound in this function [INFO] [stdout] | in this macro invocation [INFO] [stdout] = note: this error originates in the macro `$crate::implement_eval` which comes from the expansion of the macro `op_from_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&i32: const std::ops::Add` is not satisfied [INFO] [stdout] --> src/eval.rs:144:34 [INFO] [stdout] | [INFO] [stdout] 144 | const C: i32 = dxpr::shit(A, B).eval(); // -> 15 [INFO] [stdout] | ---------- ^ [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required for `ops::Add<&i32, &i32>` to implement `const Eval` [INFO] [stdout] --> src/eval.rs:95:50 [INFO] [stdout] | [INFO] [stdout] 95 | impl<$($t: ~const $const_trait),+> const $crate::eval::Eval for $name {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/ops/mod.rs:105:32 [INFO] [stdout] | [INFO] [stdout] 105 | L: Eval>, R: Eval => [INFO] [stdout] | ------------------------------------- unsatisfied trait bound introduced here [INFO] [stdout] 106 | $Name >-> >::Output: [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | binary_op!(Add, add, "Arithmetic addition (e.g. `a + b`"); [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] note: required by a bound in `dxpr::shit` [INFO] [stdout] --> src/eval.rs:125:47 [INFO] [stdout] | [INFO] [stdout] 125 | pub const fn $existing_fn<$($arg: ~const $crate::eval::Eval),+>($($arg: $crate::expr::Expr<$arg>),+) -> ops::... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `shit` [INFO] [stdout] ... [INFO] [stdout] 136 | op_from_fn!(shit(a: i32, b: i32) -> i32); [INFO] [stdout] | ---------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | required by a bound in this function [INFO] [stdout] | in this macro invocation [INFO] [stdout] = note: this error originates in the macro `$crate::implement_eval` which comes from the expansion of the macro `op_from_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&i32: const std::ops::Add` is not satisfied [INFO] [stdout] --> src/eval.rs:144:37 [INFO] [stdout] | [INFO] [stdout] 144 | const C: i32 = dxpr::shit(A, B).eval(); // -> 15 [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: required for `ops::Add<&i32, &i32>` to implement `const Eval` [INFO] [stdout] --> src/eval.rs:95:50 [INFO] [stdout] | [INFO] [stdout] 95 | impl<$($t: ~const $const_trait),+> const $crate::eval::Eval for $name {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/ops/mod.rs:105:32 [INFO] [stdout] | [INFO] [stdout] 105 | L: Eval>, R: Eval => [INFO] [stdout] | ------------------------------------- unsatisfied trait bound introduced here [INFO] [stdout] 106 | $Name >-> >::Output: [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | binary_op!(Add, add, "Arithmetic addition (e.g. `a + b`"); [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] note: required for `shit, ops::Add<&i32, &i32>>` to implement `const eval::Own` [INFO] [stdout] --> src/eval.rs:83:50 [INFO] [stdout] | [INFO] [stdout] 83 | impl<$($t: ~const $const_trait),+> const $crate::eval::Own for $name { [INFO] [stdout] | ------------------- ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] ... [INFO] [stdout] 116 | $existing_fn<$($arg),+> >-> $o: [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | op_from_fn!(shit(a: i32, b: i32) -> i32); [INFO] [stdout] | ---------------------------------------- in this macro invocation [INFO] [stdout] = note: this error originates in the macro `$crate::implement_eval` which comes from the expansion of the macro `op_from_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `<::Evaluated as std::ops::Neg>::neg` in constant functions [INFO] [stdout] --> src/ops/mod.rs:31:35 [INFO] [stdout] | [INFO] [stdout] 31 | core::ops::$Name::$name(self.0.eval()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 184 | unary_op!(Neg, neg, "Arithmetic negation (e.g. `-4`)."); [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 `unary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `<::Evaluated as std::ops::Neg>::neg` in constant functions [INFO] [stdout] --> src/ops/mod.rs:33:35 [INFO] [stdout] | [INFO] [stdout] 33 | core::ops::$Name::$name((&self.0).eval()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 184 | unary_op!(Neg, neg, "Arithmetic negation (e.g. `-4`)."); [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 `unary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `<::Evaluated as std::ops::Not>::not` in constant functions [INFO] [stdout] --> src/ops/mod.rs:31:35 [INFO] [stdout] | [INFO] [stdout] 31 | core::ops::$Name::$name(self.0.eval()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | unary_op!(Not, not, "Logical negation (e.g. `!true`)."); [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 `unary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `<::Evaluated as std::ops::Not>::not` in constant functions [INFO] [stdout] --> src/ops/mod.rs:33:35 [INFO] [stdout] | [INFO] [stdout] 33 | core::ops::$Name::$name((&self.0).eval()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | unary_op!(Not, not, "Logical negation (e.g. `!true`)."); [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 `unary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `std::ops::Add` is not yet stable as a const trait [INFO] [stdout] --> src/ops/mod.rs:108:35 [INFO] [stdout] | [INFO] [stdout] 108 | core::ops::$Name::$name(self.0.eval(), self.1.eval()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | binary_op!(Add, add, "Arithmetic addition (e.g. `a + b`"); [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: add `#![feature(const_ops)]` to the crate attributes to enable [INFO] [stdout] --> src/lib.rs:54:1 [INFO] [stdout] | [INFO] [stdout] 54 + #![feature(const_ops)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `std::ops::Add` is not yet stable as a const trait [INFO] [stdout] --> src/ops/mod.rs:110:35 [INFO] [stdout] | [INFO] [stdout] 110 | core::ops::$Name::$name((&self.0).eval(), (&self.1).eval()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | binary_op!(Add, add, "Arithmetic addition (e.g. `a + b`"); [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: add `#![feature(const_ops)]` to the crate attributes to enable [INFO] [stdout] --> src/lib.rs:54:1 [INFO] [stdout] | [INFO] [stdout] 54 + #![feature(const_ops)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `<::Evaluated as std::ops::BitAnd<::Evaluated>>::bitand` in constant functions [INFO] [stdout] --> src/ops/mod.rs:108:35 [INFO] [stdout] | [INFO] [stdout] 108 | core::ops::$Name::$name(self.0.eval(), self.1.eval()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 191 | binary_op!(BitAnd, bitand, "Bitwise conjunction (e.g. `a & b`)"); [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 `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `<::Evaluated as std::ops::BitAnd<::Evaluated>>::bitand` in constant functions [INFO] [stdout] --> src/ops/mod.rs:110:35 [INFO] [stdout] | [INFO] [stdout] 110 | core::ops::$Name::$name((&self.0).eval(), (&self.1).eval()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 191 | binary_op!(BitAnd, bitand, "Bitwise conjunction (e.g. `a & b`)"); [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 `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `<::Evaluated as std::ops::BitOr<::Evaluated>>::bitor` in constant functions [INFO] [stdout] --> src/ops/mod.rs:108:35 [INFO] [stdout] | [INFO] [stdout] 108 | core::ops::$Name::$name(self.0.eval(), self.1.eval()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 192 | binary_op!(BitOr, bitor, "Bitwise inclusive-or (e.g. `a | b`)"); [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 `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `<::Evaluated as std::ops::BitOr<::Evaluated>>::bitor` in constant functions [INFO] [stdout] --> src/ops/mod.rs:110:35 [INFO] [stdout] | [INFO] [stdout] 110 | core::ops::$Name::$name((&self.0).eval(), (&self.1).eval()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 192 | binary_op!(BitOr, bitor, "Bitwise inclusive-or (e.g. `a | b`)"); [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 `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `<::Evaluated as std::ops::BitXor<::Evaluated>>::bitxor` in constant functions [INFO] [stdout] --> src/ops/mod.rs:108:35 [INFO] [stdout] | [INFO] [stdout] 108 | core::ops::$Name::$name(self.0.eval(), self.1.eval()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | binary_op!(BitXor, bitxor, "Bitwise exclusive-or (e.g. `a ^ b`)"); [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 `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `<::Evaluated as std::ops::BitXor<::Evaluated>>::bitxor` in constant functions [INFO] [stdout] --> src/ops/mod.rs:110:35 [INFO] [stdout] | [INFO] [stdout] 110 | core::ops::$Name::$name((&self.0).eval(), (&self.1).eval()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | binary_op!(BitXor, bitxor, "Bitwise exclusive-or (e.g. `a ^ b`)"); [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 `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `<::Evaluated as std::ops::Div<::Evaluated>>::div` in constant functions [INFO] [stdout] --> src/ops/mod.rs:108:35 [INFO] [stdout] | [INFO] [stdout] 108 | core::ops::$Name::$name(self.0.eval(), self.1.eval()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 194 | binary_op!(Div, div, "Arithmetic division (e.g. `a / b`)"); // TODO: quotient rule [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 `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `<::Evaluated as std::ops::Div<::Evaluated>>::div` in constant functions [INFO] [stdout] --> src/ops/mod.rs:110:35 [INFO] [stdout] | [INFO] [stdout] 110 | core::ops::$Name::$name((&self.0).eval(), (&self.1).eval()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 194 | binary_op!(Div, div, "Arithmetic division (e.g. `a / b`)"); // TODO: quotient rule [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 `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `<::Evaluated as std::ops::Mul<::Evaluated>>::mul` in constant functions [INFO] [stdout] --> src/ops/mod.rs:108:35 [INFO] [stdout] | [INFO] [stdout] 108 | core::ops::$Name::$name(self.0.eval(), self.1.eval()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | binary_op!(Mul, mul, "Arithmetic multiplication (e.g. `a * b`)"); // TODO: product rule [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 `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `<::Evaluated as std::ops::Mul<::Evaluated>>::mul` in constant functions [INFO] [stdout] --> src/ops/mod.rs:110:35 [INFO] [stdout] | [INFO] [stdout] 110 | core::ops::$Name::$name((&self.0).eval(), (&self.1).eval()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | binary_op!(Mul, mul, "Arithmetic multiplication (e.g. `a * b`)"); // TODO: product rule [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 `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `<::Evaluated as std::ops::Rem<::Evaluated>>::rem` in constant functions [INFO] [stdout] --> src/ops/mod.rs:108:35 [INFO] [stdout] | [INFO] [stdout] 108 | core::ops::$Name::$name(self.0.eval(), self.1.eval()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | binary_op!(Rem, rem, "Arithmetic remainder (e.g. `a % b`)"); //TODO: just the left argument [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 `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `<::Evaluated as std::ops::Rem<::Evaluated>>::rem` in constant functions [INFO] [stdout] --> src/ops/mod.rs:110:35 [INFO] [stdout] | [INFO] [stdout] 110 | core::ops::$Name::$name((&self.0).eval(), (&self.1).eval()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | binary_op!(Rem, rem, "Arithmetic remainder (e.g. `a % b`)"); //TODO: just the left argument [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 `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `<::Evaluated as std::ops::Shl<::Evaluated>>::shl` in constant functions [INFO] [stdout] --> src/ops/mod.rs:108:35 [INFO] [stdout] | [INFO] [stdout] 108 | core::ops::$Name::$name(self.0.eval(), self.1.eval()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | binary_op!(Shl, shl, "Arithmetic left-shift (e.g. `a << b`)"); //TODO: more complicated [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 `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `<::Evaluated as std::ops::Shl<::Evaluated>>::shl` in constant functions [INFO] [stdout] --> src/ops/mod.rs:110:35 [INFO] [stdout] | [INFO] [stdout] 110 | core::ops::$Name::$name((&self.0).eval(), (&self.1).eval()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | binary_op!(Shl, shl, "Arithmetic left-shift (e.g. `a << b`)"); //TODO: more complicated [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 `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `<::Evaluated as std::ops::Shr<::Evaluated>>::shr` in constant functions [INFO] [stdout] --> src/ops/mod.rs:108:35 [INFO] [stdout] | [INFO] [stdout] 108 | core::ops::$Name::$name(self.0.eval(), self.1.eval()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 198 | binary_op!(Shr, shr, "Arithmetic right-shift (e.g. `a << b`)"); //TODO: more complicated [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 `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `<::Evaluated as std::ops::Shr<::Evaluated>>::shr` in constant functions [INFO] [stdout] --> src/ops/mod.rs:110:35 [INFO] [stdout] | [INFO] [stdout] 110 | core::ops::$Name::$name((&self.0).eval(), (&self.1).eval()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 198 | binary_op!(Shr, shr, "Arithmetic right-shift (e.g. `a << b`)"); //TODO: more complicated [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 `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `<::Evaluated as std::ops::Sub<::Evaluated>>::sub` in constant functions [INFO] [stdout] --> src/ops/mod.rs:108:35 [INFO] [stdout] | [INFO] [stdout] 108 | core::ops::$Name::$name(self.0.eval(), self.1.eval()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 199 | binary_op!(Sub, sub, "Arithmetic subtraction (e.g. `a - b`)"); //TODO: more complicated [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 `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `<::Evaluated as std::ops::Sub<::Evaluated>>::sub` in constant functions [INFO] [stdout] --> src/ops/mod.rs:110:35 [INFO] [stdout] | [INFO] [stdout] 110 | core::ops::$Name::$name((&self.0).eval(), (&self.1).eval()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 199 | binary_op!(Sub, sub, "Arithmetic subtraction (e.g. `a - b`)"); //TODO: more complicated [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 `binary_op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0015, E0277, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0015`. [INFO] [stdout] [INFO] [stderr] error: could not compile `dxpr` (lib) due to 138 previous errors [INFO] running `Command { std: "docker" "inspect" "f2ddb9577d80dba5c3216d95cdff63ebd9e09c3567249d1b272b2e4c438b8ff9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f2ddb9577d80dba5c3216d95cdff63ebd9e09c3567249d1b272b2e4c438b8ff9", kill_on_drop: false }` [INFO] [stdout] f2ddb9577d80dba5c3216d95cdff63ebd9e09c3567249d1b272b2e4c438b8ff9