[INFO] fetching crate const-concat 0.1.0... [INFO] checking const-concat-0.1.0 against try#81275a1445c7502a974118e0c69b795ab60be991 for pr-80243 [INFO] extracting crate const-concat 0.1.0 into /workspace/builds/worker-6/source [INFO] validating manifest of crates.io crate const-concat 0.1.0 on toolchain 81275a1445c7502a974118e0c69b795ab60be991 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+81275a1445c7502a974118e0c69b795ab60be991" "read-manifest" "--manifest-path" "Cargo.toml", 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-6/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+81275a1445c7502a974118e0c69b795ab60be991" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+81275a1445c7502a974118e0c69b795ab60be991" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+81275a1445c7502a974118e0c69b795ab60be991" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 68e3f03e93482fd98c2de614f8e70f4ee00243094c6d7e3200777a4460cc5ee6 [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" "68e3f03e93482fd98c2de614f8e70f4ee00243094c6d7e3200777a4460cc5ee6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "68e3f03e93482fd98c2de614f8e70f4ee00243094c6d7e3200777a4460cc5ee6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "68e3f03e93482fd98c2de614f8e70f4ee00243094c6d7e3200777a4460cc5ee6", kill_on_drop: false }` [INFO] [stdout] 68e3f03e93482fd98c2de614f8e70f4ee00243094c6d7e3200777a4460cc5ee6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+81275a1445c7502a974118e0c69b795ab60be991" "check" "--frozen" "--all" "--all-targets" "--message-format=json", 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] a2c318873afbe7594387a7ceca64e85208f73081be22e39eb67e288460c213d5 [INFO] running `Command { std: "docker" "start" "-a" "a2c318873afbe7594387a7ceca64e85208f73081be22e39eb67e288460c213d5", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking const-concat v0.1.0 (/opt/rustwide/workdir) [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: 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[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 previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0740`. [INFO] [stdout] [INFO] [stderr] error: could not compile `const-concat` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [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[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/lib.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 32 | let bytes: &'static [u8] = unsafe { [INFO] [stdout] | ------------- type annotation requires that borrow lasts for `'static` [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] | |___________________________________________^ creates a temporary which is freed while still in use [INFO] [stdout] ... [INFO] [stdout] 41 | }}; [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] ... [INFO] [stdout] 57 | const GREETING: &str = const_concat!(SALUTATION, ", ", TARGET, "!"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: unions in const fn are unstable [INFO] [stdout] --> src/lib.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | Transmute { from }.to [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #51909 for more information [INFO] [stdout] = help: add `#![feature(const_fn_union)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: encountered dangling pointer in final constant [INFO] [stdout] --> src/lib.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | const TAIL: &str = const_concat!($($rest),*); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | const GREETING: &str = const_concat!(SALUTATION, ", ", TARGET, "!"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/lib.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 32 | let bytes: &'static [u8] = unsafe { [INFO] [stdout] | ------------- type annotation requires that borrow lasts for `'static` [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] | |___________________________________________^ creates a temporary which is freed while still in use [INFO] [stdout] ... [INFO] [stdout] 41 | }}; [INFO] [stdout] | - temporary value is freed at the end of this statement [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: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: encountered dangling pointer in final constant [INFO] [stdout] --> src/lib.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | const TAIL: &str = const_concat!($($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: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0658, E0716, E0740. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0658`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "a2c318873afbe7594387a7ceca64e85208f73081be22e39eb67e288460c213d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a2c318873afbe7594387a7ceca64e85208f73081be22e39eb67e288460c213d5", kill_on_drop: false }` [INFO] [stdout] a2c318873afbe7594387a7ceca64e85208f73081be22e39eb67e288460c213d5