[INFO] fetching crate const-concat 0.1.0... [INFO] checking const-concat-0.1.0 against master#33fdb797f59421c7bbecaa4588ed5d7a31a9494a for pr-87190-3 [INFO] extracting crate const-concat 0.1.0 into /workspace/builds/worker-0/source [INFO] validating manifest of crates.io crate const-concat 0.1.0 on toolchain 33fdb797f59421c7bbecaa4588ed5d7a31a9494a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate const-concat 0.1.0 [INFO] finished tweaking crates.io crate const-concat 0.1.0 [INFO] tweaked toml for crates.io crate const-concat 0.1.0 written to /workspace/builds/worker-0/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] f96485d45f7ccc568e8a78fd78f3a1933cbbac968fda27e5fdefa60de67bb7eb [INFO] running `Command { std: "docker" "start" "-a" "f96485d45f7ccc568e8a78fd78f3a1933cbbac968fda27e5fdefa60de67bb7eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f96485d45f7ccc568e8a78fd78f3a1933cbbac968fda27e5fdefa60de67bb7eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f96485d45f7ccc568e8a78fd78f3a1933cbbac968fda27e5fdefa60de67bb7eb", kill_on_drop: false }` [INFO] [stdout] f96485d45f7ccc568e8a78fd78f3a1933cbbac968fda27e5fdefa60de67bb7eb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] db623bf6e99cf91c9af1b3332caf4e691793d523dc25d33328e4aa64e9df6a65 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "db623bf6e99cf91c9af1b3332caf4e691793d523dc25d33328e4aa64e9df6a65", kill_on_drop: false }` [INFO] [stderr] Checking const-concat v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0557]: feature has been removed [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(const_fn, const_str_as_bytes, const_str_len, const_let, untagged_unions)] [INFO] [stdout] | ^^^^^^^^ feature has been removed [INFO] [stdout] | [INFO] [stdout] = note: split into finer-grained feature gates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unions_with_drop_fields` [INFO] [stdout] --> src/lib.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | #[allow(unions_with_drop_fields)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unknown_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0557]: feature has been removed [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(const_fn, const_str_as_bytes, const_str_len, const_let, untagged_unions)] [INFO] [stdout] | ^^^^^^^^ feature has been removed [INFO] [stdout] | [INFO] [stdout] = note: split into finer-grained feature gates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unions_with_drop_fields` [INFO] [stdout] --> src/lib.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | #[allow(unions_with_drop_fields)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unknown_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trailing semicolon in macro used in expression position [INFO] [stdout] --> src/lib.rs:47:38 [INFO] [stdout] | [INFO] [stdout] 47 | const_concat!($a, $($rest),*); [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 58 | const GREETING_TRAILING_COMMA: &str = const_concat!(SALUTATION, ", ", TARGET, "!",); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(semicolon_in_expressions_from_macros)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: this warning originates in the macro `const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0740]: unions may not contain fields that need dropping [INFO] [stdout] --> src/lib.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | from: From, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `std::mem::ManuallyDrop` can be used to wrap the type [INFO] [stdout] --> src/lib.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | from: From, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0557, E0740. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0557`. [INFO] [stdout] [INFO] [stderr] error: could not compile `const-concat` due to 3 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0740]: unions may not contain fields that need dropping [INFO] [stdout] --> src/lib.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | from: From, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `std::mem::ManuallyDrop` can be used to wrap the type [INFO] [stdout] --> src/lib.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | from: From, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8; 5]: Copy` is not satisfied [INFO] [stdout] --> src/lib.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 33 | &$crate::concat::< [INFO] [stdout] | ______________^ [INFO] [stdout] 34 | | [u8; $a.len()], [INFO] [stdout] 35 | | [u8; $b.len()], [INFO] [stdout] 36 | | [u8; $a.len() + $b.len()], [INFO] [stdout] 37 | | >($a.as_bytes(), $b.as_bytes()) [INFO] [stdout] | |_____________^ the trait `Copy` is not implemented for `[u8; 5]` [INFO] [stdout] ... [INFO] [stdout] 57 | const GREETING: &str = const_concat!(SALUTATION, ", ", TARGET, "!"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `concat` [INFO] [stdout] --> src/lib.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub const unsafe fn concat(a: &[u8], b: &[u8]) -> Out [INFO] [stdout] | ------ required by a bound in this [INFO] [stdout] 14 | where [INFO] [stdout] 15 | First: Copy, [INFO] [stdout] | ^^^^ required by this bound in `concat` [INFO] [stdout] = note: this error originates in the macro `const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider introducing a `where` bound, but there might be an alternative better way to express this requirement [INFO] [stdout] | [INFO] [stdout] 54 | fn top_level_constants() where [u8; 5]: Copy { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8; 1]: Copy` is not satisfied [INFO] [stdout] --> src/lib.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 33 | &$crate::concat::< [INFO] [stdout] | ______________^ [INFO] [stdout] 34 | | [u8; $a.len()], [INFO] [stdout] 35 | | [u8; $b.len()], [INFO] [stdout] 36 | | [u8; $a.len() + $b.len()], [INFO] [stdout] 37 | | >($a.as_bytes(), $b.as_bytes()) [INFO] [stdout] | |_____________^ the trait `Copy` is not implemented for `[u8; 1]` [INFO] [stdout] ... [INFO] [stdout] 57 | const GREETING: &str = const_concat!(SALUTATION, ", ", TARGET, "!"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `concat` [INFO] [stdout] --> src/lib.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 13 | pub const unsafe fn concat(a: &[u8], b: &[u8]) -> Out [INFO] [stdout] | ------ required by a bound in this [INFO] [stdout] ... [INFO] [stdout] 16 | Second: Copy, [INFO] [stdout] | ^^^^ required by this bound in `concat` [INFO] [stdout] = note: this error originates in the macro `const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider introducing a `where` bound, but there might be an alternative better way to express this requirement [INFO] [stdout] | [INFO] [stdout] 54 | fn top_level_constants() where [u8; 1]: Copy { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8; 6]: Copy` is not satisfied [INFO] [stdout] --> src/lib.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 33 | &$crate::concat::< [INFO] [stdout] | ______________^ [INFO] [stdout] 34 | | [u8; $a.len()], [INFO] [stdout] 35 | | [u8; $b.len()], [INFO] [stdout] 36 | | [u8; $a.len() + $b.len()], [INFO] [stdout] 37 | | >($a.as_bytes(), $b.as_bytes()) [INFO] [stdout] | |_____________^ the trait `Copy` is not implemented for `[u8; 6]` [INFO] [stdout] ... [INFO] [stdout] 57 | const GREETING: &str = const_concat!(SALUTATION, ", ", TARGET, "!"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `concat` [INFO] [stdout] --> src/lib.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 13 | pub const unsafe fn concat(a: &[u8], b: &[u8]) -> Out [INFO] [stdout] | ------ required by a bound in this [INFO] [stdout] ... [INFO] [stdout] 17 | Out: Copy, [INFO] [stdout] | ^^^^ required by this bound in `concat` [INFO] [stdout] = note: this error originates in the macro `const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider introducing a `where` bound, but there might be an alternative better way to express this requirement [INFO] [stdout] | [INFO] [stdout] 54 | fn top_level_constants() where [u8; 6]: Copy { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8; 2]: Copy` is not satisfied [INFO] [stdout] --> src/lib.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 33 | &$crate::concat::< [INFO] [stdout] | ______________^ [INFO] [stdout] 34 | | [u8; $a.len()], [INFO] [stdout] 35 | | [u8; $b.len()], [INFO] [stdout] 36 | | [u8; $a.len() + $b.len()], [INFO] [stdout] 37 | | >($a.as_bytes(), $b.as_bytes()) [INFO] [stdout] | |_____________^ the trait `Copy` is not implemented for `[u8; 2]` [INFO] [stdout] ... [INFO] [stdout] 57 | const GREETING: &str = const_concat!(SALUTATION, ", ", TARGET, "!"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `concat` [INFO] [stdout] --> src/lib.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub const unsafe fn concat(a: &[u8], b: &[u8]) -> Out [INFO] [stdout] | ------ required by a bound in this [INFO] [stdout] 14 | where [INFO] [stdout] 15 | First: Copy, [INFO] [stdout] | ^^^^ required by this bound in `concat` [INFO] [stdout] = note: this error originates in the macro `const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider introducing a `where` bound, but there might be an alternative better way to express this requirement [INFO] [stdout] | [INFO] [stdout] 54 | fn top_level_constants() where [u8; 2]: Copy { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8; 5]: Copy` is not satisfied [INFO] [stdout] --> src/lib.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 33 | &$crate::concat::< [INFO] [stdout] | ______________^ [INFO] [stdout] 34 | | [u8; $a.len()], [INFO] [stdout] 35 | | [u8; $b.len()], [INFO] [stdout] 36 | | [u8; $a.len() + $b.len()], [INFO] [stdout] 37 | | >($a.as_bytes(), $b.as_bytes()) [INFO] [stdout] | |_____________^ the trait `Copy` is not implemented for `[u8; 5]` [INFO] [stdout] ... [INFO] [stdout] 57 | const GREETING: &str = const_concat!(SALUTATION, ", ", TARGET, "!"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `concat` [INFO] [stdout] --> src/lib.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub const unsafe fn concat(a: &[u8], b: &[u8]) -> Out [INFO] [stdout] | ------ required by a bound in this [INFO] [stdout] 14 | where [INFO] [stdout] 15 | First: Copy, [INFO] [stdout] | ^^^^ required by this bound in `concat` [INFO] [stdout] = note: this error originates in the macro `const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider introducing a `where` bound, but there might be an alternative better way to express this requirement [INFO] [stdout] | [INFO] [stdout] 54 | fn top_level_constants() where [u8; 5]: Copy { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8; 5]: Copy` is not satisfied [INFO] [stdout] --> src/lib.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 33 | &$crate::concat::< [INFO] [stdout] | ______________^ [INFO] [stdout] 34 | | [u8; $a.len()], [INFO] [stdout] 35 | | [u8; $b.len()], [INFO] [stdout] 36 | | [u8; $a.len() + $b.len()], [INFO] [stdout] 37 | | >($a.as_bytes(), $b.as_bytes()) [INFO] [stdout] | |_____________^ the trait `Copy` is not implemented for `[u8; 5]` [INFO] [stdout] ... [INFO] [stdout] 58 | const GREETING_TRAILING_COMMA: &str = const_concat!(SALUTATION, ", ", TARGET, "!",); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `concat` [INFO] [stdout] --> src/lib.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub const unsafe fn concat(a: &[u8], b: &[u8]) -> Out [INFO] [stdout] | ------ required by a bound in this [INFO] [stdout] 14 | where [INFO] [stdout] 15 | First: Copy, [INFO] [stdout] | ^^^^ required by this bound in `concat` [INFO] [stdout] = note: this error originates in the macro `const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider introducing a `where` bound, but there might be an alternative better way to express this requirement [INFO] [stdout] | [INFO] [stdout] 54 | fn top_level_constants() where [u8; 5]: Copy { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8; 1]: Copy` is not satisfied [INFO] [stdout] --> src/lib.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 33 | &$crate::concat::< [INFO] [stdout] | ______________^ [INFO] [stdout] 34 | | [u8; $a.len()], [INFO] [stdout] 35 | | [u8; $b.len()], [INFO] [stdout] 36 | | [u8; $a.len() + $b.len()], [INFO] [stdout] 37 | | >($a.as_bytes(), $b.as_bytes()) [INFO] [stdout] | |_____________^ the trait `Copy` is not implemented for `[u8; 1]` [INFO] [stdout] ... [INFO] [stdout] 58 | const GREETING_TRAILING_COMMA: &str = const_concat!(SALUTATION, ", ", TARGET, "!",); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `concat` [INFO] [stdout] --> src/lib.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 13 | pub const unsafe fn concat(a: &[u8], b: &[u8]) -> Out [INFO] [stdout] | ------ required by a bound in this [INFO] [stdout] ... [INFO] [stdout] 16 | Second: Copy, [INFO] [stdout] | ^^^^ required by this bound in `concat` [INFO] [stdout] = note: this error originates in the macro `const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider introducing a `where` bound, but there might be an alternative better way to express this requirement [INFO] [stdout] | [INFO] [stdout] 54 | fn top_level_constants() where [u8; 1]: Copy { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8; 6]: Copy` is not satisfied [INFO] [stdout] --> src/lib.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 33 | &$crate::concat::< [INFO] [stdout] | ______________^ [INFO] [stdout] 34 | | [u8; $a.len()], [INFO] [stdout] 35 | | [u8; $b.len()], [INFO] [stdout] 36 | | [u8; $a.len() + $b.len()], [INFO] [stdout] 37 | | >($a.as_bytes(), $b.as_bytes()) [INFO] [stdout] | |_____________^ the trait `Copy` is not implemented for `[u8; 6]` [INFO] [stdout] ... [INFO] [stdout] 58 | const GREETING_TRAILING_COMMA: &str = const_concat!(SALUTATION, ", ", TARGET, "!",); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `concat` [INFO] [stdout] --> src/lib.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 13 | pub const unsafe fn concat(a: &[u8], b: &[u8]) -> Out [INFO] [stdout] | ------ required by a bound in this [INFO] [stdout] ... [INFO] [stdout] 17 | Out: Copy, [INFO] [stdout] | ^^^^ required by this bound in `concat` [INFO] [stdout] = note: this error originates in the macro `const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider introducing a `where` bound, but there might be an alternative better way to express this requirement [INFO] [stdout] | [INFO] [stdout] 54 | fn top_level_constants() where [u8; 6]: Copy { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8; 2]: Copy` is not satisfied [INFO] [stdout] --> src/lib.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 33 | &$crate::concat::< [INFO] [stdout] | ______________^ [INFO] [stdout] 34 | | [u8; $a.len()], [INFO] [stdout] 35 | | [u8; $b.len()], [INFO] [stdout] 36 | | [u8; $a.len() + $b.len()], [INFO] [stdout] 37 | | >($a.as_bytes(), $b.as_bytes()) [INFO] [stdout] | |_____________^ the trait `Copy` is not implemented for `[u8; 2]` [INFO] [stdout] ... [INFO] [stdout] 58 | const GREETING_TRAILING_COMMA: &str = const_concat!(SALUTATION, ", ", TARGET, "!",); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `concat` [INFO] [stdout] --> src/lib.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub const unsafe fn concat(a: &[u8], b: &[u8]) -> Out [INFO] [stdout] | ------ required by a bound in this [INFO] [stdout] 14 | where [INFO] [stdout] 15 | First: Copy, [INFO] [stdout] | ^^^^ required by this bound in `concat` [INFO] [stdout] = note: this error originates in the macro `const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider introducing a `where` bound, but there might be an alternative better way to express this requirement [INFO] [stdout] | [INFO] [stdout] 54 | fn top_level_constants() where [u8; 2]: Copy { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8; 5]: Copy` is not satisfied [INFO] [stdout] --> src/lib.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 33 | &$crate::concat::< [INFO] [stdout] | ______________^ [INFO] [stdout] 34 | | [u8; $a.len()], [INFO] [stdout] 35 | | [u8; $b.len()], [INFO] [stdout] 36 | | [u8; $a.len() + $b.len()], [INFO] [stdout] 37 | | >($a.as_bytes(), $b.as_bytes()) [INFO] [stdout] | |_____________^ the trait `Copy` is not implemented for `[u8; 5]` [INFO] [stdout] ... [INFO] [stdout] 58 | const GREETING_TRAILING_COMMA: &str = const_concat!(SALUTATION, ", ", TARGET, "!",); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `concat` [INFO] [stdout] --> src/lib.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub const unsafe fn concat(a: &[u8], b: &[u8]) -> Out [INFO] [stdout] | ------ required by a bound in this [INFO] [stdout] 14 | where [INFO] [stdout] 15 | First: Copy, [INFO] [stdout] | ^^^^ required by this bound in `concat` [INFO] [stdout] = note: this error originates in the macro `const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider introducing a `where` bound, but there might be an alternative better way to express this requirement [INFO] [stdout] | [INFO] [stdout] 54 | fn top_level_constants() where [u8; 5]: Copy { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 12 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0557, E0740. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "db623bf6e99cf91c9af1b3332caf4e691793d523dc25d33328e4aa64e9df6a65", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "db623bf6e99cf91c9af1b3332caf4e691793d523dc25d33328e4aa64e9df6a65", kill_on_drop: false }` [INFO] [stdout] db623bf6e99cf91c9af1b3332caf4e691793d523dc25d33328e4aa64e9df6a65