[INFO] fetching crate saturation 0.2.3... [INFO] testing saturation-0.2.3 against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-2 [INFO] extracting crate saturation 0.2.3 into /workspace/builds/worker-5-tc2/source [INFO] started tweaking crates.io crate saturation 0.2.3 [INFO] finished tweaking crates.io crate saturation 0.2.3 [INFO] tweaked toml for crates.io crate saturation 0.2.3 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate saturation 0.2.3 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] crate crates.io crate saturation 0.2.3 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] d6cf7d6c018b7e89cb7b8df383ab164c798807b4305facedf37e450e712a6e0e [INFO] running `Command { std: "docker" "start" "-a" "d6cf7d6c018b7e89cb7b8df383ab164c798807b4305facedf37e450e712a6e0e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d6cf7d6c018b7e89cb7b8df383ab164c798807b4305facedf37e450e712a6e0e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d6cf7d6c018b7e89cb7b8df383ab164c798807b4305facedf37e450e712a6e0e", kill_on_drop: false }` [INFO] [stdout] d6cf7d6c018b7e89cb7b8df383ab164c798807b4305facedf37e450e712a6e0e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] a72b12f97b2359cc9ca46d122d1bac7e8aca48abf4e7019d9785772404e26f7d [INFO] running `Command { std: "docker" "start" "-a" "a72b12f97b2359cc9ca46d122d1bac7e8aca48abf4e7019d9785772404e26f7d", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling moddef v0.3.0 [INFO] [stderr] Compiling libm v0.2.15 [INFO] [stderr] Compiling bytemuck v1.24.0 [INFO] [stderr] Compiling slice_trait v0.2.5 [INFO] [stdout] error: `[const]` is not allowed here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/into_boxed_slice.rs:7:27 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait IntoBoxedSlice: ~const AsSlice + Sized [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: this trait is not `const`, so it cannot have `[const]` trait bounds [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/into_boxed_slice.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | / pub trait IntoBoxedSlice: ~const AsSlice + Sized [INFO] [stdout] 8 | | { [INFO] [stdout] 9 | | /// Yields boxed slice from generic [INFO] [stdout] 10 | | fn into_boxed_slice(self) -> Box<[Self::Elem]>; [INFO] [stdout] 11 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `[const]` is not allowed here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/slice.rs:7:35 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait Slice: private::Slice + ~const AsSlice + Pointee [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: this trait is not `const`, so it cannot have `[const]` trait bounds [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/slice.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | / pub trait Slice: private::Slice + ~const AsSlice + Pointee [INFO] [stdout] 8 | | + ~const IndexMut::Elem] as Index>::Output> [INFO] [stdout] 9 | | + ~const IndexMut, Output = <[::Elem] as Index>>::Output> [INFO] [stdout] 10 | | + ~const IndexMut, Output = <[::Elem] as Index>>::Output> [INFO] [stdout] ... | [INFO] [stdout] 17 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `[const]` is not allowed here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/slice.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | + ~const IndexMut::Elem] as Index>::Output> [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: this trait is not `const`, so it cannot have `[const]` trait bounds [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/slice.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | / pub trait Slice: private::Slice + ~const AsSlice + Pointee [INFO] [stdout] 8 | | + ~const IndexMut::Elem] as Index>::Output> [INFO] [stdout] 9 | | + ~const IndexMut, Output = <[::Elem] as Index>>::Output> [INFO] [stdout] 10 | | + ~const IndexMut, Output = <[::Elem] as Index>>::Output> [INFO] [stdout] ... | [INFO] [stdout] 17 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `[const]` is not allowed here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/slice.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | + ~const IndexMut, Output = <[::Elem] as Index>>::Output> [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: this trait is not `const`, so it cannot have `[const]` trait bounds [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/slice.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | / pub trait Slice: private::Slice + ~const AsSlice + Pointee [INFO] [stdout] 8 | | + ~const IndexMut::Elem] as Index>::Output> [INFO] [stdout] 9 | | + ~const IndexMut, Output = <[::Elem] as Index>>::Output> [INFO] [stdout] 10 | | + ~const IndexMut, Output = <[::Elem] as Index>>::Output> [INFO] [stdout] ... | [INFO] [stdout] 17 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `[const]` is not allowed here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/slice.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | + ~const IndexMut, Output = <[::Elem] as Index>>::Output> [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: this trait is not `const`, so it cannot have `[const]` trait bounds [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/slice.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | / pub trait Slice: private::Slice + ~const AsSlice + Pointee [INFO] [stdout] 8 | | + ~const IndexMut::Elem] as Index>::Output> [INFO] [stdout] 9 | | + ~const IndexMut, Output = <[::Elem] as Index>>::Output> [INFO] [stdout] 10 | | + ~const IndexMut, Output = <[::Elem] as Index>>::Output> [INFO] [stdout] ... | [INFO] [stdout] 17 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `[const]` is not allowed here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/slice.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | + ~const IndexMut, Output = <[::Elem] as Index>>::Output> [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: this trait is not `const`, so it cannot have `[const]` trait bounds [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/slice.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | / pub trait Slice: private::Slice + ~const AsSlice + Pointee [INFO] [stdout] 8 | | + ~const IndexMut::Elem] as Index>::Output> [INFO] [stdout] 9 | | + ~const IndexMut, Output = <[::Elem] as Index>>::Output> [INFO] [stdout] 10 | | + ~const IndexMut, Output = <[::Elem] as Index>>::Output> [INFO] [stdout] ... | [INFO] [stdout] 17 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `[const]` is not allowed here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/slice.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | + ~const IndexMut, Output = <[::Elem] as Index>>::Output> [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: this trait is not `const`, so it cannot have `[const]` trait bounds [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/slice.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | / pub trait Slice: private::Slice + ~const AsSlice + Pointee [INFO] [stdout] 8 | | + ~const IndexMut::Elem] as Index>::Output> [INFO] [stdout] 9 | | + ~const IndexMut, Output = <[::Elem] as Index>>::Output> [INFO] [stdout] 10 | | + ~const IndexMut, Output = <[::Elem] as Index>>::Output> [INFO] [stdout] ... | [INFO] [stdout] 17 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `[const]` is not allowed here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/slice.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | + ~const IndexMut, Output = <[::Elem] as Index>>::Output> [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: this trait is not `const`, so it cannot have `[const]` trait bounds [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/slice.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | / pub trait Slice: private::Slice + ~const AsSlice + Pointee [INFO] [stdout] 8 | | + ~const IndexMut::Elem] as Index>::Output> [INFO] [stdout] 9 | | + ~const IndexMut, Output = <[::Elem] as Index>>::Output> [INFO] [stdout] 10 | | + ~const IndexMut, Output = <[::Elem] as Index>>::Output> [INFO] [stdout] ... | [INFO] [stdout] 17 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `[const]` is not allowed here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/slice.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | + ~const IndexMut::Elem] as Index>::Output> [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: this trait is not `const`, so it cannot have `[const]` trait bounds [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/slice.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | / pub trait Slice: private::Slice + ~const AsSlice + Pointee [INFO] [stdout] 8 | | + ~const IndexMut::Elem] as Index>::Output> [INFO] [stdout] 9 | | + ~const IndexMut, Output = <[::Elem] as Index>>::Output> [INFO] [stdout] 10 | | + ~const IndexMut, Output = <[::Elem] as Index>>::Output> [INFO] [stdout] ... | [INFO] [stdout] 17 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `[const]` is not allowed here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/boxed_slice.rs:9:103 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait BoxedSlice: private::BoxedSlice + /*~const*/ DerefMut::Elem]> + ~const IntoBoxedSlice [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: this trait is not `const`, so it cannot have `[const]` trait bounds [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/boxed_slice.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | / pub trait BoxedSlice: private::BoxedSlice + /*~const*/ DerefMut::Elem]> + ~const IntoBoxedSlice [INFO] [stdout] ... | [INFO] [stdout] 12 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `const_trait` in this scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/as_slice.rs:2:3 [INFO] [stdout] | [INFO] [stdout] 2 | #[const_trait] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `const_trait` in this scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/into_boxed_slice.rs:6:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[const_trait] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `const_trait` in this scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/slice.rs:6:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[const_trait] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `const_trait` in this scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/boxed_slice.rs:8:3 [INFO] [stdout] | [INFO] [stdout] 8 | #[const_trait] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `AsSlice` which is not `const` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/as_slice.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | impl const AsSlice for [T] [INFO] [stdout] | ^^^^^^^ this trait is not `const` [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] help: mark `AsSlice` as `const` to allow it to have `const` implementations [INFO] [stdout] | [INFO] [stdout] 3 | pub const trait AsSlice [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `AsSlice` which is not `const` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/as_slice.rs:29:31 [INFO] [stdout] | [INFO] [stdout] 29 | impl const AsSlice for [T; N] [INFO] [stdout] | ^^^^^^^ this trait is not `const` [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] help: mark `AsSlice` as `const` to allow it to have `const` implementations [INFO] [stdout] | [INFO] [stdout] 3 | pub const trait AsSlice [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `AsSlice` which is not `const` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/as_slice.rs:45:18 [INFO] [stdout] | [INFO] [stdout] 45 | impl const AsSlice for alloc::vec::Vec [INFO] [stdout] | ^^^^^^^ this trait is not `const` [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] help: mark `AsSlice` as `const` to allow it to have `const` implementations [INFO] [stdout] | [INFO] [stdout] 3 | pub const trait AsSlice [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `AsSlice` which is not `const` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/as_slice.rs:63:18 [INFO] [stdout] | [INFO] [stdout] 63 | impl const AsSlice for alloc::boxed::Box [INFO] [stdout] | ^^^^^^^ this trait is not `const` [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] help: mark `AsSlice` as `const` to allow it to have `const` implementations [INFO] [stdout] | [INFO] [stdout] 3 | pub const trait AsSlice [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `[const]` can only be applied to `const` traits [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/as_slice.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | T: ~const AsSlice + ?Sized [INFO] [stdout] | ^^^^^^ can't be applied to `as_slice::AsSlice` [INFO] [stdout] | [INFO] [stdout] help: mark `as_slice::AsSlice` as `const` to allow it to have `const` implementations [INFO] [stdout] | [INFO] [stdout] 3 | pub const trait AsSlice [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `[const]` can only be applied to `const` traits [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/into_boxed_slice.rs:7:27 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait IntoBoxedSlice: ~const AsSlice + Sized [INFO] [stdout] | ^^^^^^ can't be applied to `as_slice::AsSlice` [INFO] [stdout] | [INFO] [stdout] help: mark `as_slice::AsSlice` as `const` to allow it to have `const` implementations [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/as_slice.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub const trait AsSlice [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `IntoBoxedSlice` which is not `const` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/into_boxed_slice.rs:26:15 [INFO] [stdout] | [INFO] [stdout] 26 | impl const IntoBoxedSlice for Box<[T]> [INFO] [stdout] | ^^^^^^^^^^^^^^ this trait is not `const` [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] help: mark `IntoBoxedSlice` as `const` to allow it to have `const` implementations [INFO] [stdout] | [INFO] [stdout] 7 | pub const trait IntoBoxedSlice: ~const AsSlice + Sized [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `[const]` can only be applied to `const` traits [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/slice.rs:7:35 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait Slice: private::Slice + ~const AsSlice + Pointee [INFO] [stdout] | ^^^^^^ can't be applied to `as_slice::AsSlice` [INFO] [stdout] | [INFO] [stdout] help: mark `as_slice::AsSlice` as `const` to allow it to have `const` implementations [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/as_slice.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub const trait AsSlice [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `Slice` which is not `const` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/slice.rs:19:15 [INFO] [stdout] | [INFO] [stdout] 19 | impl const Slice for [T] [INFO] [stdout] | ^^^^^ this trait is not `const` [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] help: mark `Slice` as `const` to allow it to have `const` implementations [INFO] [stdout] | [INFO] [stdout] 7 | pub const trait Slice: private::Slice + ~const AsSlice + Pointee [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `[const]` can only be applied to `const` traits [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/boxed_slice.rs:9:103 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait BoxedSlice: private::BoxedSlice + /*~const*/ DerefMut::Elem]> + ~const IntoBoxedSlice [INFO] [stdout] | ^^^^^^ can't be applied to `into_boxed_slice::IntoBoxedSlice` [INFO] [stdout] | [INFO] [stdout] help: mark `into_boxed_slice::IntoBoxedSlice` as `const` to allow it to have `const` implementations [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/into_boxed_slice.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub const trait IntoBoxedSlice: ~const AsSlice + Sized [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `BoxedSlice` which is not `const` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/boxed_slice.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | impl const BoxedSlice for Box<[T]> [INFO] [stdout] | ^^^^^^^^^^ this trait is not `const` [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] help: mark `BoxedSlice` as `const` to allow it to have `const` implementations [INFO] [stdout] | [INFO] [stdout] 9 | pub const trait BoxedSlice: private::BoxedSlice + /*~const*/ DerefMut::Elem]> + ~const IntoBoxedSlice [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `::as_slice` in constant functions [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/as_slice.rs:72:18 [INFO] [stdout] | [INFO] [stdout] 72 | (**self).as_slice() [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: method `as_slice` is not const because trait `AsSlice` is not const [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/as_slice.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait AsSlice [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ this trait is not const [INFO] [stdout] ... [INFO] [stdout] 8 | fn as_slice(&self) -> &[Self::Elem]; [INFO] [stdout] | ------------------------------------ this method 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 `AsSlice` const [INFO] [stdout] | [INFO] [stdout] 3 | pub const trait AsSlice [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `::as_mut_slice` in constant functions [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/as_slice.rs:77:18 [INFO] [stdout] | [INFO] [stdout] 77 | (**self).as_mut_slice() [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: method `as_mut_slice` is not const because trait `AsSlice` is not const [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/slice_trait-0.2.5/src/as_slice.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait AsSlice [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ this trait is not const [INFO] [stdout] ... [INFO] [stdout] 11 | fn as_mut_slice(&mut self) -> &mut [Self::Elem]; [INFO] [stdout] | ------------------------------------------------ this method 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 `AsSlice` const [INFO] [stdout] | [INFO] [stdout] 3 | pub const trait AsSlice [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0015`. [INFO] [stdout] [INFO] [stderr] error: could not compile `slice_trait` (lib) due to 27 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "a72b12f97b2359cc9ca46d122d1bac7e8aca48abf4e7019d9785772404e26f7d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a72b12f97b2359cc9ca46d122d1bac7e8aca48abf4e7019d9785772404e26f7d", kill_on_drop: false }` [INFO] [stdout] a72b12f97b2359cc9ca46d122d1bac7e8aca48abf4e7019d9785772404e26f7d