[INFO] fetching crate matr 0.2.0... [INFO] testing matr-0.2.0 against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-1 [INFO] extracting crate matr 0.2.0 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate matr 0.2.0 [INFO] finished tweaking crates.io crate matr 0.2.0 [INFO] tweaked toml for crates.io crate matr 0.2.0 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate matr 0.2.0 on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "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-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ccc08b832efc496dc85023a73b08e605c54c381b35ddf446b4808943e4d0c504 [INFO] running `Command { std: "docker" "start" "-a" "ccc08b832efc496dc85023a73b08e605c54c381b35ddf446b4808943e4d0c504", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ccc08b832efc496dc85023a73b08e605c54c381b35ddf446b4808943e4d0c504", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ccc08b832efc496dc85023a73b08e605c54c381b35ddf446b4808943e4d0c504", kill_on_drop: false }` [INFO] [stdout] ccc08b832efc496dc85023a73b08e605c54c381b35ddf446b4808943e4d0c504 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3f71981ce33eaa77b95f689e079b702cbe913c787aa2dc48d40ef4b23088f9ac [INFO] running `Command { std: "docker" "start" "-a" "3f71981ce33eaa77b95f689e079b702cbe913c787aa2dc48d40ef4b23088f9ac", kill_on_drop: false }` [INFO] [stderr] Compiling matr v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] error: `[const]` is not allowed here [INFO] [stdout] --> src/meta.rs:134:27 [INFO] [stdout] | [INFO] [stdout] 134 | ... $(~$Arg1Bound1Const)* $($Arg1Bound1Idents $(<$Arg1Bound1IdentsTypeArg1 $(, $Arg1Bound1IdentsTypeArgs)* >)?)::* [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/const_fn/to_result_const_fn.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | / meta!{ [INFO] [stdout] 20 | | pub type ToResultConstFn< [INFO] [stdout] 21 | | Out, [INFO] [stdout] 22 | | Args: ~const Destruct, [INFO] [stdout] ... | [INFO] [stdout] 32 | | WrapConstFn, Args, ToResultConstFnErrorImpl>>; [INFO] [stdout] 33 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: structs cannot have `[const]` trait bounds [INFO] [stdout] --> src/meta.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | / ... $Vis struct $Fn $(< [INFO] [stdout] 132 | | ... $( [INFO] [stdout] 133 | | ... $Args $(: [INFO] [stdout] 134 | | ... $(~$Arg1Bound1Const)* $($Arg1Bound1Idents $(<$Arg1Bound1IdentsTypeArg1 $(, $Arg1Bound1IdentsTypeArgs)* >)?)::* [INFO] [stdout] ... | [INFO] [stdout] 143 | | ... )* [INFO] [stdout] 144 | | ... } [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] ::: src/const_fn/to_result_const_fn.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | / meta!{ [INFO] [stdout] 20 | | pub type ToResultConstFn< [INFO] [stdout] 21 | | Out, [INFO] [stdout] 22 | | Args: ~const Destruct, [INFO] [stdout] ... | [INFO] [stdout] 32 | | WrapConstFn, Args, ToResultConstFnErrorImpl>>; [INFO] [stdout] 33 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this error originates in the macro `meta` (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/meta.rs:149:23 [INFO] [stdout] | [INFO] [stdout] 149 | $(~$Arg1Bound1Const)* $($Arg1Bound1Idents $(<$Arg1Bound1IdentsTypeArg1 $(, $Arg1Bound1IdentsTypeArgs)* >)?)::* [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/const_fn/to_result_const_fn.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | / meta!{ [INFO] [stdout] 20 | | pub type ToResultConstFn< [INFO] [stdout] 21 | | Out, [INFO] [stdout] 22 | | Args: ~const Destruct, [INFO] [stdout] ... | [INFO] [stdout] 32 | | WrapConstFn, Args, ToResultConstFnErrorImpl>>; [INFO] [stdout] 33 | | } [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/meta.rs:146:9 [INFO] [stdout] | [INFO] [stdout] 146 | / impl $(< [INFO] [stdout] 147 | | $( [INFO] [stdout] 148 | | $Args $(: [INFO] [stdout] 149 | | $(~$Arg1Bound1Const)* $($Arg1Bound1Idents $(<$Arg1Bound1IdentsTypeArg1 $(, $Arg1Bound1IdentsTypeArgs)* >)?)::* [INFO] [stdout] ... | [INFO] [stdout] 156 | | $($Body)* [INFO] [stdout] 157 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/const_fn/to_result_const_fn.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | / meta!{ [INFO] [stdout] 20 | | pub type ToResultConstFn< [INFO] [stdout] 21 | | Out, [INFO] [stdout] 22 | | Args: ~const Destruct, [INFO] [stdout] ... | [INFO] [stdout] 32 | | WrapConstFn, Args, ToResultConstFnErrorImpl>>; [INFO] [stdout] 33 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this error originates in the macro `meta` (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/meta.rs:134:27 [INFO] [stdout] | [INFO] [stdout] 134 | ... $(~$Arg1Bound1Const)* $($Arg1Bound1Idents $(<$Arg1Bound1IdentsTypeArg1 $(, $Arg1Bound1IdentsTypeArgs)* >)?)::* [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/const_fn/to_result_const_fn.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | / meta!{ [INFO] [stdout] 41 | | pub struct ToResultConstFnAdapter: Functor1, Result>> = Ok, Args>, WrapConstFn src/meta.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | / ... $Vis struct $Fn $(< [INFO] [stdout] 132 | | ... $( [INFO] [stdout] 133 | | ... $Args $(: [INFO] [stdout] 134 | | ... $(~$Arg1Bound1Const)* $($Arg1Bound1Idents $(<$Arg1Bound1IdentsTypeArg1 $(, $Arg1Bound1IdentsTypeArgs)* >)?)::* [INFO] [stdout] ... | [INFO] [stdout] 143 | | ... )* [INFO] [stdout] 144 | | ... } [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] ::: src/const_fn/to_result_const_fn.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | / meta!{ [INFO] [stdout] 41 | | pub struct ToResultConstFnAdapter: Functor1, Result>> = Ok, Args>, WrapConstFn src/meta.rs:134:27 [INFO] [stdout] | [INFO] [stdout] 134 | ... $(~$Arg1Bound1Const)* $($Arg1Bound1Idents $(<$Arg1Bound1IdentsTypeArg1 $(, $Arg1Bound1IdentsTypeArgs)* >)?)::* [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/const_fn/mod.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | / meta!{ [INFO] [stdout] 39 | | pub struct WrapConstFn< [INFO] [stdout] 40 | | Result, [INFO] [stdout] 41 | | Args, [INFO] [stdout] ... | [INFO] [stdout] 46 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: structs cannot have `[const]` trait bounds [INFO] [stdout] --> src/meta.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | / ... $Vis struct $Fn $(< [INFO] [stdout] 132 | | ... $( [INFO] [stdout] 133 | | ... $Args $(: [INFO] [stdout] 134 | | ... $(~$Arg1Bound1Const)* $($Arg1Bound1Idents $(<$Arg1Bound1IdentsTypeArg1 $(, $Arg1Bound1IdentsTypeArgs)* >)?)::* [INFO] [stdout] ... | [INFO] [stdout] 143 | | ... )* [INFO] [stdout] 144 | | ... } [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] ::: src/const_fn/mod.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | / meta!{ [INFO] [stdout] 39 | | pub struct WrapConstFn< [INFO] [stdout] 40 | | Result, [INFO] [stdout] 41 | | Args, [INFO] [stdout] ... | [INFO] [stdout] 46 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this error originates in the macro `meta` (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/meta.rs:149:23 [INFO] [stdout] | [INFO] [stdout] 149 | $(~$Arg1Bound1Const)* $($Arg1Bound1Idents $(<$Arg1Bound1IdentsTypeArg1 $(, $Arg1Bound1IdentsTypeArgs)* >)?)::* [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/const_fn/mod.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | / meta!{ [INFO] [stdout] 39 | | pub struct WrapConstFn< [INFO] [stdout] 40 | | Result, [INFO] [stdout] 41 | | Args, [INFO] [stdout] ... | [INFO] [stdout] 46 | | } [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/meta.rs:146:9 [INFO] [stdout] | [INFO] [stdout] 146 | / impl $(< [INFO] [stdout] 147 | | $( [INFO] [stdout] 148 | | $Args $(: [INFO] [stdout] 149 | | $(~$Arg1Bound1Const)* $($Arg1Bound1Idents $(<$Arg1Bound1IdentsTypeArg1 $(, $Arg1Bound1IdentsTypeArgs)* >)?)::* [INFO] [stdout] ... | [INFO] [stdout] 156 | | $($Body)* [INFO] [stdout] 157 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/const_fn/mod.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | / meta!{ [INFO] [stdout] 39 | | pub struct WrapConstFn< [INFO] [stdout] 40 | | Result, [INFO] [stdout] 41 | | Args, [INFO] [stdout] ... | [INFO] [stdout] 46 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this error originates in the macro `meta` (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/const_fn/mod.rs:96:18 [INFO] [stdout] | [INFO] [stdout] 96 | type Fn: ~const ConstFnTrait; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: associated types in non-`const` traits cannot have `[const]` trait bounds [INFO] [stdout] --> src/const_fn/mod.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | type Fn: ~const ConstFnTrait; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `[const]` is not allowed here [INFO] [stdout] --> src/meta.rs:134:27 [INFO] [stdout] | [INFO] [stdout] 134 | ... $(~$Arg1Bound1Const)* $($Arg1Bound1Idents $(<$Arg1Bound1IdentsTypeArg1 $(, $Arg1Bound1IdentsTypeArgs)* >)?)::* [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/const_fn/mod.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | / meta!{ [INFO] [stdout] 100 | | pub struct WrapConstFnImpl< [INFO] [stdout] 101 | | Result, [INFO] [stdout] 102 | | Args, [INFO] [stdout] ... | [INFO] [stdout] 127 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: structs cannot have `[const]` trait bounds [INFO] [stdout] --> src/meta.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | / ... $Vis struct $Fn $(< [INFO] [stdout] 132 | | ... $( [INFO] [stdout] 133 | | ... $Args $(: [INFO] [stdout] 134 | | ... $(~$Arg1Bound1Const)* $($Arg1Bound1Idents $(<$Arg1Bound1IdentsTypeArg1 $(, $Arg1Bound1IdentsTypeArgs)* >)?)::* [INFO] [stdout] ... | [INFO] [stdout] 143 | | ... )* [INFO] [stdout] 144 | | ... } [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] ::: src/const_fn/mod.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | / meta!{ [INFO] [stdout] 100 | | pub struct WrapConstFnImpl< [INFO] [stdout] 101 | | Result, [INFO] [stdout] 102 | | Args, [INFO] [stdout] ... | [INFO] [stdout] 127 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] = note: this error originates in the macro `meta` (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/meta.rs:149:23 [INFO] [stdout] | [INFO] [stdout] 149 | $(~$Arg1Bound1Const)* $($Arg1Bound1Idents $(<$Arg1Bound1IdentsTypeArg1 $(, $Arg1Bound1IdentsTypeArgs)* >)?)::* [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/const_fn/mod.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | / meta!{ [INFO] [stdout] 100 | | pub struct WrapConstFnImpl< [INFO] [stdout] 101 | | Result, [INFO] [stdout] 102 | | Args, [INFO] [stdout] ... | [INFO] [stdout] 127 | | } [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/meta.rs:146:9 [INFO] [stdout] | [INFO] [stdout] 146 | / impl $(< [INFO] [stdout] 147 | | $( [INFO] [stdout] 148 | | $Args $(: [INFO] [stdout] 149 | | $(~$Arg1Bound1Const)* $($Arg1Bound1Idents $(<$Arg1Bound1IdentsTypeArg1 $(, $Arg1Bound1IdentsTypeArgs)* >)?)::* [INFO] [stdout] ... | [INFO] [stdout] 156 | | $($Body)* [INFO] [stdout] 157 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/const_fn/mod.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | / meta!{ [INFO] [stdout] 100 | | pub struct WrapConstFnImpl< [INFO] [stdout] 101 | | Result, [INFO] [stdout] 102 | | Args, [INFO] [stdout] ... | [INFO] [stdout] 127 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] = note: this error originates in the macro `meta` (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/meta.rs:134:27 [INFO] [stdout] | [INFO] [stdout] 134 | ... $(~$Arg1Bound1Const)* $($Arg1Bound1Idents $(<$Arg1Bound1IdentsTypeArg1 $(, $Arg1Bound1IdentsTypeArgs)* >)?)::* [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/const_fn/mod.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | / meta!{ [INFO] [stdout] 100 | | pub struct WrapConstFnImpl< [INFO] [stdout] 101 | | Result, [INFO] [stdout] 102 | | Args, [INFO] [stdout] ... | [INFO] [stdout] 127 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: structs cannot have `[const]` trait bounds [INFO] [stdout] --> src/meta.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | / ... $Vis struct $Fn $(< [INFO] [stdout] 132 | | ... $( [INFO] [stdout] 133 | | ... $Args $(: [INFO] [stdout] 134 | | ... $(~$Arg1Bound1Const)* $($Arg1Bound1Idents $(<$Arg1Bound1IdentsTypeArg1 $(, $Arg1Bound1IdentsTypeArgs)* >)?)::* [INFO] [stdout] ... | [INFO] [stdout] 143 | | ... )* [INFO] [stdout] 144 | | ... } [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] ::: src/const_fn/mod.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | / meta!{ [INFO] [stdout] 100 | | pub struct WrapConstFnImpl< [INFO] [stdout] 101 | | Result, [INFO] [stdout] 102 | | Args, [INFO] [stdout] ... | [INFO] [stdout] 127 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] = note: this error originates in the macro `meta` (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/meta.rs:149:23 [INFO] [stdout] | [INFO] [stdout] 149 | $(~$Arg1Bound1Const)* $($Arg1Bound1Idents $(<$Arg1Bound1IdentsTypeArg1 $(, $Arg1Bound1IdentsTypeArgs)* >)?)::* [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/const_fn/mod.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | / meta!{ [INFO] [stdout] 100 | | pub struct WrapConstFnImpl< [INFO] [stdout] 101 | | Result, [INFO] [stdout] 102 | | Args, [INFO] [stdout] ... | [INFO] [stdout] 127 | | } [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/meta.rs:146:9 [INFO] [stdout] | [INFO] [stdout] 146 | / impl $(< [INFO] [stdout] 147 | | $( [INFO] [stdout] 148 | | $Args $(: [INFO] [stdout] 149 | | $(~$Arg1Bound1Const)* $($Arg1Bound1Idents $(<$Arg1Bound1IdentsTypeArg1 $(, $Arg1Bound1IdentsTypeArgs)* >)?)::* [INFO] [stdout] ... | [INFO] [stdout] 156 | | $($Body)* [INFO] [stdout] 157 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/const_fn/mod.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | / meta!{ [INFO] [stdout] 100 | | pub struct WrapConstFnImpl< [INFO] [stdout] 101 | | Result, [INFO] [stdout] 102 | | Args, [INFO] [stdout] ... | [INFO] [stdout] 127 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] = note: this error originates in the macro `meta` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `const_trait` in this scope [INFO] [stdout] --> src/const_fn/mod.rs:33:3 [INFO] [stdout] | [INFO] [stdout] 33 | #[const_trait] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::super::internal::*` [INFO] [stdout] --> src/bool/and.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | pub use super::super::internal::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::super::*` [INFO] [stdout] --> src/list/mod.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | pub use super::super::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature `const_destruct` [INFO] [stdout] --> src/const_fn/to_result_const_fn.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::marker::Destruct; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #133214 for more information [INFO] [stdout] = help: add `#![feature(const_destruct)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2026-03-22; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable const library feature `const_destruct` [INFO] [stdout] --> src/meta.rs:134:49 [INFO] [stdout] | [INFO] [stdout] 134 | ... $(~$Arg1Bound1Const)* $($Arg1Bound1Idents $(<$Arg1Bound1IdentsTypeArg1 $(, $Arg1Bound1IdentsTypeArgs)* >)?)::* [INFO] [stdout] | ----------------- ^ [INFO] [stdout] | | [INFO] [stdout] | trait is not stable as const yet [INFO] [stdout] | [INFO] [stdout] ::: src/const_fn/to_result_const_fn.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | / meta!{ [INFO] [stdout] 20 | | pub type ToResultConstFn< [INFO] [stdout] 21 | | Out, [INFO] [stdout] 22 | | Args: ~const Destruct, [INFO] [stdout] ... | [INFO] [stdout] 32 | | WrapConstFn, Args, ToResultConstFnErrorImpl>>; [INFO] [stdout] 33 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: see issue #133214 for more information [INFO] [stdout] = help: add `#![feature(const_destruct)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2026-03-22; consider upgrading it if it is out of date [INFO] [stdout] = note: this error originates in the macro `meta` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature `const_destruct` [INFO] [stdout] --> src/meta.rs:134:49 [INFO] [stdout] | [INFO] [stdout] 134 | ... $(~$Arg1Bound1Const)* $($Arg1Bound1Idents $(<$Arg1Bound1IdentsTypeArg1 $(, $Arg1Bound1IdentsTypeArgs)* >)?)::* [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] ::: src/const_fn/to_result_const_fn.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | / meta!{ [INFO] [stdout] 20 | | pub type ToResultConstFn< [INFO] [stdout] 21 | | Out, [INFO] [stdout] 22 | | Args: ~const Destruct, [INFO] [stdout] ... | [INFO] [stdout] 32 | | WrapConstFn, Args, ToResultConstFnErrorImpl>>; [INFO] [stdout] 33 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: see issue #133214 for more information [INFO] [stdout] = help: add `#![feature(const_destruct)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2026-03-22; consider upgrading it if it is out of date [INFO] [stdout] = note: this error originates in the macro `meta` (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_destruct` [INFO] [stdout] --> src/meta.rs:149:45 [INFO] [stdout] | [INFO] [stdout] 149 | $(~$Arg1Bound1Const)* $($Arg1Bound1Idents $(<$Arg1Bound1IdentsTypeArg1 $(, $Arg1Bound1IdentsTypeArgs)* >)?)::* [INFO] [stdout] | ----------------- ^ [INFO] [stdout] | | [INFO] [stdout] | trait is not stable as const yet [INFO] [stdout] | [INFO] [stdout] ::: src/const_fn/to_result_const_fn.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | / meta!{ [INFO] [stdout] 20 | | pub type ToResultConstFn< [INFO] [stdout] 21 | | Out, [INFO] [stdout] 22 | | Args: ~const Destruct, [INFO] [stdout] ... | [INFO] [stdout] 32 | | WrapConstFn, Args, ToResultConstFnErrorImpl>>; [INFO] [stdout] 33 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: see issue #133214 for more information [INFO] [stdout] = help: add `#![feature(const_destruct)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2026-03-22; consider upgrading it if it is out of date [INFO] [stdout] = note: this error originates in the macro `meta` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature `const_destruct` [INFO] [stdout] --> src/meta.rs:149:45 [INFO] [stdout] | [INFO] [stdout] 149 | $(~$Arg1Bound1Const)* $($Arg1Bound1Idents $(<$Arg1Bound1IdentsTypeArg1 $(, $Arg1Bound1IdentsTypeArgs)* >)?)::* [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] ::: src/const_fn/to_result_const_fn.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | / meta!{ [INFO] [stdout] 20 | | pub type ToResultConstFn< [INFO] [stdout] 21 | | Out, [INFO] [stdout] 22 | | Args: ~const Destruct, [INFO] [stdout] ... | [INFO] [stdout] 32 | | WrapConstFn, Args, ToResultConstFnErrorImpl>>; [INFO] [stdout] 33 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: see issue #133214 for more information [INFO] [stdout] = help: add `#![feature(const_destruct)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2026-03-22; consider upgrading it if it is out of date [INFO] [stdout] = note: this error originates in the macro `meta` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature `const_destruct` [INFO] [stdout] --> src/const_fn/to_result_const_fn.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | use std::marker::Destruct; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #133214 for more information [INFO] [stdout] = help: add `#![feature(const_destruct)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2026-03-22; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable const library feature `const_destruct` [INFO] [stdout] --> src/meta.rs:134:49 [INFO] [stdout] | [INFO] [stdout] 134 | ... $(~$Arg1Bound1Const)* $($Arg1Bound1Idents $(<$Arg1Bound1IdentsTypeArg1 $(, $Arg1Bound1IdentsTypeArgs)* >)?)::* [INFO] [stdout] | ----------------- ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | trait is not stable as const yet [INFO] [stdout] | [INFO] [stdout] ::: src/const_fn/to_result_const_fn.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | / meta!{ [INFO] [stdout] 41 | | pub struct ToResultConstFnAdapter: Functor1, Result>> = Ok, Args>, WrapConstFn for more information [INFO] [stdout] = help: add `#![feature(const_destruct)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2026-03-22; consider upgrading it if it is out of date [INFO] [stdout] = note: this error originates in the macro `meta` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature `const_destruct` [INFO] [stdout] --> src/meta.rs:134:49 [INFO] [stdout] | [INFO] [stdout] 134 | ... $(~$Arg1Bound1Const)* $($Arg1Bound1Idents $(<$Arg1Bound1IdentsTypeArg1 $(, $Arg1Bound1IdentsTypeArgs)* >)?)::* [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/const_fn/to_result_const_fn.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | / meta!{ [INFO] [stdout] 41 | | pub struct ToResultConstFnAdapter: Functor1, Result>> = Ok, Args>, WrapConstFn for more information [INFO] [stdout] = help: add `#![feature(const_destruct)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2026-03-22; consider upgrading it if it is out of date [INFO] [stdout] = note: this error originates in the macro `meta` (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_destruct` [INFO] [stdout] --> src/meta.rs:134:49 [INFO] [stdout] | [INFO] [stdout] 134 | ... $(~$Arg1Bound1Const)* $($Arg1Bound1Idents $(<$Arg1Bound1IdentsTypeArg1 $(, $Arg1Bound1IdentsTypeArgs)* >)?)::* [INFO] [stdout] | _______________________________________^ [INFO] [stdout] 135 | | ... $(+ [INFO] [stdout] 136 | | ... $(~$Arg1BoundsConst)* $($Arg1BoundsIdents $(<$Arg1BoundsIdentsTypeArg1 $(, $Arg1BoundsIdentsTypeArgs)* >)?)::* [INFO] [stdout] 137 | | ... )* [INFO] [stdout] ... | [INFO] [stdout] 148 | | ... $Args $(: [INFO] [stdout] 149 | | ... $(~$Arg1Bound1Const)* $($Arg1Bound1Idents $(<$Arg1Bound1IdentsTypeArg1 $(, $Arg1Bound1IdentsTypeArgs)* >)?)::* [INFO] [stdout] | |_____________-----------------____^ [INFO] [stdout] | | [INFO] [stdout] | trait is not stable as const yet [INFO] [stdout] | [INFO] [stdout] ::: src/const_fn/to_result_const_fn.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | / meta!{ [INFO] [stdout] 41 | | pub struct ToResultConstFnAdapter: Functor1, Result>> = Ok, Args>, WrapConstFn for more information [INFO] [stdout] = help: add `#![feature(const_destruct)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2026-03-22; consider upgrading it if it is out of date [INFO] [stdout] = note: this error originates in the macro `meta` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature `const_destruct` [INFO] [stdout] --> src/meta.rs:134:49 [INFO] [stdout] | [INFO] [stdout] 134 | ... $(~$Arg1Bound1Const)* $($Arg1Bound1Idents $(<$Arg1Bound1IdentsTypeArg1 $(, $Arg1Bound1IdentsTypeArgs)* >)?)::* [INFO] [stdout] | _______________________________________^ [INFO] [stdout] 135 | | ... $(+ [INFO] [stdout] 136 | | ... $(~$Arg1BoundsConst)* $($Arg1BoundsIdents $(<$Arg1BoundsIdentsTypeArg1 $(, $Arg1BoundsIdentsTypeArgs)* >)?)::* [INFO] [stdout] 137 | | ... )* [INFO] [stdout] ... | [INFO] [stdout] 148 | | ... $Args $(: [INFO] [stdout] 149 | | ... $(~$Arg1Bound1Const)* $($Arg1Bound1Idents $(<$Arg1Bound1IdentsTypeArg1 $(, $Arg1Bound1IdentsTypeArgs)* >)?)::* [INFO] [stdout] | |__________________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/const_fn/to_result_const_fn.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | / meta!{ [INFO] [stdout] 41 | | pub struct ToResultConstFnAdapter: Functor1, Result>> = Ok, Args>, WrapConstFn for more information [INFO] [stdout] = help: add `#![feature(const_destruct)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2026-03-22; consider upgrading it if it is out of date [INFO] [stdout] = note: this error originates in the macro `meta` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `ConstFnTrait` which is not `const` [INFO] [stdout] --> src/meta.rs:155:32 [INFO] [stdout] | [INFO] [stdout] 155 | >)* $($ReturnIdents1 $($ReturnIdents2)* $(<$($ReturnIdentsTypeArgs),*>)*)::* for $Fn $(<$($Args),*>)* { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/bool/to_bool.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | / meta! { [INFO] [stdout] 27 | | pub struct ToTrueBoolConstFnImpl: const ConstFnTrait { [INFO] [stdout] 28 | | fn apply(_: ()) -> bool { [INFO] [stdout] 29 | | return true; [INFO] [stdout] ... | [INFO] [stdout] 38 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `meta` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `ConstFnTrait` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/const_fn/mod.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub const trait ConstFnTrait { [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `ConstFnTrait` which is not `const` [INFO] [stdout] --> src/meta.rs:155:32 [INFO] [stdout] | [INFO] [stdout] 155 | >)* $($ReturnIdents1 $($ReturnIdents2)* $(<$($ReturnIdentsTypeArgs),*>)*)::* for $Fn $(<$($Args),*>)* { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/bool/to_bool.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | / meta! { [INFO] [stdout] 27 | | pub struct ToTrueBoolConstFnImpl: const ConstFnTrait { [INFO] [stdout] 28 | | fn apply(_: ()) -> bool { [INFO] [stdout] 29 | | return true; [INFO] [stdout] ... | [INFO] [stdout] 38 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `meta` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `ConstFnTrait` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/const_fn/mod.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub const trait ConstFnTrait { [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `ConstFnTrait` which is not `const` [INFO] [stdout] --> src/meta.rs:155:32 [INFO] [stdout] | [INFO] [stdout] 155 | >)* $($ReturnIdents1 $($ReturnIdents2)* $(<$($ReturnIdentsTypeArgs),*>)*)::* for $Fn $(<$($Args),*>)* { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/const_fn/no_op.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | / meta!{ [INFO] [stdout] 29 | | pub struct NoOpConstFnImpl: const ConstFnTrait<(), ()> { [INFO] [stdout] 30 | | fn apply(_: ()) -> () {} [INFO] [stdout] 31 | | } [INFO] [stdout] 32 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `meta` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `ConstFnTrait` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/const_fn/mod.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub const trait ConstFnTrait { [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `ConstFnTrait` which is not `const` [INFO] [stdout] --> src/meta.rs:155:32 [INFO] [stdout] | [INFO] [stdout] 155 | >)* $($ReturnIdents1 $($ReturnIdents2)* $(<$($ReturnIdentsTypeArgs),*>)*)::* for $Fn $(<$($Args),*>)* { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/const_fn/to_result_const_fn.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | / meta!{ [INFO] [stdout] 41 | | pub struct ToResultConstFnAdapter: Functor1, Result>> = Ok, Args>, WrapConstFn src/const_fn/mod.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub const trait ConstFnTrait { [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `ConstFnTrait` which is not `const` [INFO] [stdout] --> src/meta.rs:155:32 [INFO] [stdout] | [INFO] [stdout] 155 | >)* $($ReturnIdents1 $($ReturnIdents2)* $(<$($ReturnIdentsTypeArgs),*>)*)::* for $Fn $(<$($Args),*>)* { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/const_fn/to_result_const_fn.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | / meta!{ [INFO] [stdout] 41 | | pub struct ToResultConstFnAdapter: Functor1, Result>> = Ok, Args>, WrapConstFn src/const_fn/mod.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub const trait ConstFnTrait { [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `ConstFnTrait` which is not `const` [INFO] [stdout] --> src/meta.rs:155:32 [INFO] [stdout] | [INFO] [stdout] 155 | >)* $($ReturnIdents1 $($ReturnIdents2)* $(<$($ReturnIdentsTypeArgs),*>)*)::* for $Fn $(<$($Args),*>)* { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/const_fn/mod.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | / meta!{ [INFO] [stdout] 100 | | pub struct WrapConstFnImpl< [INFO] [stdout] 101 | | Result, [INFO] [stdout] 102 | | Args, [INFO] [stdout] ... | [INFO] [stdout] 127 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `meta` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `ConstFnTrait` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/const_fn/mod.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub const trait ConstFnTrait { [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `ConstFnTrait` which is not `const` [INFO] [stdout] --> src/meta.rs:155:32 [INFO] [stdout] | [INFO] [stdout] 155 | >)* $($ReturnIdents1 $($ReturnIdents2)* $(<$($ReturnIdentsTypeArgs),*>)*)::* for $Fn $(<$($Args),*>)* { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/result/check_no_error.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | / meta!{ [INFO] [stdout] 29 | | pub struct PanickingConstFnImpl: const ConstFnTrait<(), ()> { [INFO] [stdout] 30 | | fn apply(_: ()) -> () { [INFO] [stdout] 31 | | panic!("Error found in check_no_error"); [INFO] [stdout] ... | [INFO] [stdout] 39 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `meta` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `ConstFnTrait` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/const_fn/mod.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub const trait ConstFnTrait { [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `ConstFnTrait` which is not `const` [INFO] [stdout] --> src/meta.rs:155:32 [INFO] [stdout] | [INFO] [stdout] 155 | >)* $($ReturnIdents1 $($ReturnIdents2)* $(<$($ReturnIdentsTypeArgs),*>)*)::* for $Fn $(<$($Args),*>)* { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/usize/to_usize.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | / meta!{ [INFO] [stdout] 43 | | pub struct ToUSizeErrorImpl: const ConstFnTrait, ()> { [INFO] [stdout] 44 | | fn apply(_: ()) -> std::result::Result { [INFO] [stdout] 45 | | panic!("result_to_usize called on an error") [INFO] [stdout] ... | [INFO] [stdout] 71 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `meta` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `ConstFnTrait` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/const_fn/mod.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub const trait ConstFnTrait { [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `ConstFnTrait` which is not `const` [INFO] [stdout] --> src/meta.rs:155:32 [INFO] [stdout] | [INFO] [stdout] 155 | >)* $($ReturnIdents1 $($ReturnIdents2)* $(<$($ReturnIdentsTypeArgs),*>)*)::* for $Fn $(<$($Args),*>)* { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/usize/to_usize.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | / meta!{ [INFO] [stdout] 43 | | pub struct ToUSizeErrorImpl: const ConstFnTrait, ()> { [INFO] [stdout] 44 | | fn apply(_: ()) -> std::result::Result { [INFO] [stdout] 45 | | panic!("result_to_usize called on an error") [INFO] [stdout] ... | [INFO] [stdout] 71 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `meta` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `ConstFnTrait` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/const_fn/mod.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub const trait ConstFnTrait { [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `ConstFnTrait` which is not `const` [INFO] [stdout] --> src/meta.rs:155:32 [INFO] [stdout] | [INFO] [stdout] 155 | >)* $($ReturnIdents1 $($ReturnIdents2)* $(<$($ReturnIdentsTypeArgs),*>)*)::* for $Fn $(<$($Args),*>)* { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] ::: src/usize/to_usize.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | / meta!{ [INFO] [stdout] 43 | | pub struct ToUSizeErrorImpl: const ConstFnTrait, ()> { [INFO] [stdout] 44 | | fn apply(_: ()) -> std::result::Result { [INFO] [stdout] 45 | | panic!("result_to_usize called on an error") [INFO] [stdout] ... | [INFO] [stdout] 71 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `meta` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `ConstFnTrait` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/const_fn/mod.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub const trait ConstFnTrait { [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `[const]` can only be applied to `const` traits [INFO] [stdout] --> src/meta.rs:149:23 [INFO] [stdout] | [INFO] [stdout] 149 | $(~$Arg1Bound1Const)* $($Arg1Bound1Idents $(<$Arg1Bound1IdentsTypeArg1 $(, $Arg1Bound1IdentsTypeArgs)* >)?)::* [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ can't be applied to `const_fn::ConstFnTrait` [INFO] [stdout] | [INFO] [stdout] ::: src/const_fn/mod.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | / meta!{ [INFO] [stdout] 39 | | pub struct WrapConstFn< [INFO] [stdout] 40 | | Result, [INFO] [stdout] 41 | | Args, [INFO] [stdout] ... | [INFO] [stdout] 46 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `meta` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `const_fn::ConstFnTrait` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/const_fn/mod.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub const trait ConstFnTrait { [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `[const]` can only be applied to `const` traits [INFO] [stdout] --> src/meta.rs:149:23 [INFO] [stdout] | [INFO] [stdout] 149 | $(~$Arg1Bound1Const)* $($Arg1Bound1Idents $(<$Arg1Bound1IdentsTypeArg1 $(, $Arg1Bound1IdentsTypeArgs)* >)?)::* [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ can't be applied to `const_fn::ConstFnTrait` [INFO] [stdout] | [INFO] [stdout] ::: src/const_fn/mod.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | / meta!{ [INFO] [stdout] 100 | | pub struct WrapConstFnImpl< [INFO] [stdout] 101 | | Result, [INFO] [stdout] 102 | | Args, [INFO] [stdout] ... | [INFO] [stdout] 127 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `meta` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `const_fn::ConstFnTrait` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/const_fn/mod.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub const trait ConstFnTrait { [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `[const]` can only be applied to `const` traits [INFO] [stdout] --> src/meta.rs:134:27 [INFO] [stdout] | [INFO] [stdout] 134 | ... $(~$Arg1Bound1Const)* $($Arg1Bound1Idents $(<$Arg1Bound1IdentsTypeArg1 $(, $Arg1Bound1IdentsTypeArgs)* >)?)::* [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ can't be applied to `const_fn::ConstFnTrait` [INFO] [stdout] | [INFO] [stdout] ::: src/const_fn/mod.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | / meta!{ [INFO] [stdout] 39 | | pub struct WrapConstFn< [INFO] [stdout] 40 | | Result, [INFO] [stdout] 41 | | Args, [INFO] [stdout] ... | [INFO] [stdout] 46 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `meta` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `const_fn::ConstFnTrait` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/const_fn/mod.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub const trait ConstFnTrait { [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `[const]` can only be applied to `const` traits [INFO] [stdout] --> src/const_fn/mod.rs:96:18 [INFO] [stdout] | [INFO] [stdout] 96 | type Fn: ~const ConstFnTrait; [INFO] [stdout] | ^^^^^^ can't be applied to `const_fn::ConstFnTrait` [INFO] [stdout] | [INFO] [stdout] help: mark `const_fn::ConstFnTrait` as `const` to allow it to have `const` implementations [INFO] [stdout] | [INFO] [stdout] 34 | pub const trait ConstFnTrait { [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `[const]` can only be applied to `const` traits [INFO] [stdout] --> src/meta.rs:134:27 [INFO] [stdout] | [INFO] [stdout] 134 | ... $(~$Arg1Bound1Const)* $($Arg1Bound1Idents $(<$Arg1Bound1IdentsTypeArg1 $(, $Arg1Bound1IdentsTypeArgs)* >)?)::* [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ can't be applied to `const_fn::ConstFnTrait` [INFO] [stdout] | [INFO] [stdout] ::: src/const_fn/mod.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | / meta!{ [INFO] [stdout] 100 | | pub struct WrapConstFnImpl< [INFO] [stdout] 101 | | Result, [INFO] [stdout] 102 | | Args, [INFO] [stdout] ... | [INFO] [stdout] 127 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `meta` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `const_fn::ConstFnTrait` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/const_fn/mod.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub const trait ConstFnTrait { [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `[const]` can only be applied to `const` traits [INFO] [stdout] --> src/meta.rs:149:23 [INFO] [stdout] | [INFO] [stdout] 149 | $(~$Arg1Bound1Const)* $($Arg1Bound1Idents $(<$Arg1Bound1IdentsTypeArg1 $(, $Arg1Bound1IdentsTypeArgs)* >)?)::* [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ can't be applied to `const_fn::ConstFnTrait` [INFO] [stdout] | [INFO] [stdout] ::: src/const_fn/mod.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | / meta!{ [INFO] [stdout] 100 | | pub struct WrapConstFnImpl< [INFO] [stdout] 101 | | Result, [INFO] [stdout] 102 | | Args, [INFO] [stdout] ... | [INFO] [stdout] 127 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `meta` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `const_fn::ConstFnTrait` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/const_fn/mod.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub const trait ConstFnTrait { [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `[const]` can only be applied to `const` traits [INFO] [stdout] --> src/meta.rs:134:27 [INFO] [stdout] | [INFO] [stdout] 134 | ... $(~$Arg1Bound1Const)* $($Arg1Bound1Idents $(<$Arg1Bound1IdentsTypeArg1 $(, $Arg1Bound1IdentsTypeArgs)* >)?)::* [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ can't be applied to `const_fn::ConstFnTrait` [INFO] [stdout] | [INFO] [stdout] ::: src/const_fn/mod.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | / meta!{ [INFO] [stdout] 100 | | pub struct WrapConstFnImpl< [INFO] [stdout] 101 | | Result, [INFO] [stdout] 102 | | Args, [INFO] [stdout] ... | [INFO] [stdout] 127 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `meta` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `const_fn::ConstFnTrait` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/const_fn/mod.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub const trait ConstFnTrait { [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const associated function `< as const_fn::internal::ConstFnTraitWrapper>::Fn as const_fn::ConstFnTrait>::apply` in constant functions [INFO] [stdout] --> src/const_fn/call.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | return < as ConstFnTraitWrapper>::Fn as ConstFnTrait>::apply(args); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: associated function `apply` is not const because trait `ConstFnTrait` is not const [INFO] [stdout] --> src/const_fn/mod.rs:34:1 [INFO] [stdout] | [INFO] [stdout] 34 | pub trait ConstFnTrait { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this trait is not const [INFO] [stdout] 35 | fn apply(args: Args) -> Result; [INFO] [stdout] | ------------------------------- this associated function is not const [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] help: consider making trait `ConstFnTrait` const [INFO] [stdout] --> src/const_fn/mod.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub const trait ConstFnTrait { [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0493]: destructor of `Args` cannot be evaluated at compile-time [INFO] [stdout] --> src/const_fn/to_result_const_fn.rs:52:22 [INFO] [stdout] | [INFO] [stdout] 52 | fn apply(_: Args) -> std::result::Result { [INFO] [stdout] | ^ the destructor for this type cannot be evaluated in constant functions [INFO] [stdout] 53 | return Err("error Result in ToResultConstFn") [INFO] [stdout] 54 | } [INFO] [stdout] | - value is dropped here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0015, E0493, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0015`. [INFO] [stdout] [INFO] [stderr] error: could not compile `matr` (lib) due to 40 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "3f71981ce33eaa77b95f689e079b702cbe913c787aa2dc48d40ef4b23088f9ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f71981ce33eaa77b95f689e079b702cbe913c787aa2dc48d40ef4b23088f9ac", kill_on_drop: false }` [INFO] [stdout] 3f71981ce33eaa77b95f689e079b702cbe913c787aa2dc48d40ef4b23088f9ac