[INFO] fetching crate simple-chunk-allocator 0.1.5... [INFO] checking simple-chunk-allocator-0.1.5 against try#45a41ffb423036390396cec6d4e16c04033f4d02 for pr-116745 [INFO] extracting crate simple-chunk-allocator 0.1.5 into /workspace/builds/worker-0-tc2/source [INFO] validating manifest of crates.io crate simple-chunk-allocator 0.1.5 on toolchain 45a41ffb423036390396cec6d4e16c04033f4d02 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+45a41ffb423036390396cec6d4e16c04033f4d02" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-0-tc2/source/rust-toolchain.toml [INFO] started tweaking crates.io crate simple-chunk-allocator 0.1.5 [INFO] finished tweaking crates.io crate simple-chunk-allocator 0.1.5 [INFO] tweaked toml for crates.io crate simple-chunk-allocator 0.1.5 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate crates.io crate simple-chunk-allocator 0.1.5 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" "+45a41ffb423036390396cec6d4e16c04033f4d02" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:023092b8bfa974c7f3e45c5ce651cc8dd3afd5e76915d5995b8dacd3032bf956" "/opt/rustwide/cargo-home/bin/cargo" "+45a41ffb423036390396cec6d4e16c04033f4d02" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ee7101202c68c3ad3eb7e1674be9a7a8151fea858fcb4cfbafbb5087304c629b [INFO] running `Command { std: "docker" "start" "-a" "ee7101202c68c3ad3eb7e1674be9a7a8151fea858fcb4cfbafbb5087304c629b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ee7101202c68c3ad3eb7e1674be9a7a8151fea858fcb4cfbafbb5087304c629b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ee7101202c68c3ad3eb7e1674be9a7a8151fea858fcb4cfbafbb5087304c629b", kill_on_drop: false }` [INFO] [stdout] ee7101202c68c3ad3eb7e1674be9a7a8151fea858fcb4cfbafbb5087304c629b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:023092b8bfa974c7f3e45c5ce651cc8dd3afd5e76915d5995b8dacd3032bf956" "/opt/rustwide/cargo-home/bin/cargo" "+45a41ffb423036390396cec6d4e16c04033f4d02" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3d670462056ecf62363ff9bf7aa06d760d6f726a0290d3d108b6dbfb23eb2d92 [INFO] running `Command { std: "docker" "start" "-a" "3d670462056ecf62363ff9bf7aa06d760d6f726a0290d3d108b6dbfb23eb2d92", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling libm v0.2.2 [INFO] [stderr] Compiling x86 v0.51.0 [INFO] [stderr] Compiling time-macros v0.2.4 [INFO] [stderr] Checking itoa v1.0.2 [INFO] [stderr] Checking bit_field v0.10.1 [INFO] [stderr] Checking raw-cpuid v10.3.0 [INFO] [stderr] Checking spin v0.9.4 [INFO] [stderr] Checking spinning_top v0.2.4 [INFO] [stderr] Checking linked_list_allocator v0.9.1 [INFO] [stderr] Checking simple-chunk-allocator v0.1.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: the feature `nonnull_slice_from_raw_parts` has been stable since 1.70.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:131:12 [INFO] [stdout] | [INFO] [stdout] 131 | #![feature(nonnull_slice_from_raw_parts)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returned pointer of `as_ptr` call is never null, so checking it for null will always return false [INFO] [stdout] --> src/allocator.rs:137:32 [INFO] [stdout] | [INFO] [stdout] 137 | let heap_starts_at_0 = heap.as_ptr().is_null(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(useless_ptr_null_checks)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returned pointer of `as_ptr` call is never null, so checking it for null will always return false [INFO] [stdout] --> src/allocator.rs:198:32 [INFO] [stdout] | [INFO] [stdout] 198 | let heap_starts_at_0 = heap.as_ptr().is_null(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking getrandom v0.2.7 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking colored v2.0.0 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking time v0.3.11 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking simple_logger v2.2.0 [INFO] [stdout] warning: the feature `nonnull_slice_from_raw_parts` has been stable since 1.70.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:131:12 [INFO] [stdout] | [INFO] [stdout] 131 | #![feature(nonnull_slice_from_raw_parts)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0080]: it is undefined behavior to use this value [INFO] [stdout] --> examples/minimal.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | static ALLOCATOR: GlobalChunkAllocator = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at .0.inner.data.value.heap: encountered mutable reference in a `const` or `static` [INFO] [stdout] | [INFO] [stdout] = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior. [INFO] [stdout] = note: the raw bytes of the constant (size: 80, align: 8) { [INFO] [stdout] 0x00 │ 00 __ __ __ __ __ __ __ ╾───────alloc6────────╼ │ .░░░░░░░╾──────╼ [INFO] [stdout] 0x10 │ 00 00 10 00 00 00 00 00 ╾───────alloc7────────╼ │ ........╾──────╼ [INFO] [stdout] 0x20 │ 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................ [INFO] [stdout] 0x30 │ 01 00 00 00 00 00 00 00 00 10 00 00 00 00 00 00 │ ................ [INFO] [stdout] 0x40 │ 00 00 00 00 00 00 00 00 01 __ __ __ __ __ __ __ │ .........░░░░░░░ [INFO] [stdout] } [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0080`. [INFO] [stdout] [INFO] [stderr] error: could not compile `simple-chunk-allocator` (example "minimal") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: returned pointer of `as_ptr` call is never null, so checking it for null will always return false [INFO] [stdout] --> src/allocator.rs:137:32 [INFO] [stdout] | [INFO] [stdout] 137 | let heap_starts_at_0 = heap.as_ptr().is_null(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(useless_ptr_null_checks)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returned pointer of `as_ptr` call is never null, so checking it for null will always return false [INFO] [stdout] --> src/allocator.rs:198:32 [INFO] [stdout] | [INFO] [stdout] 198 | let heap_starts_at_0 = heap.as_ptr().is_null(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0080]: it is undefined behavior to use this value [INFO] [stdout] --> src/global.rs:193:9 [INFO] [stdout] | [INFO] [stdout] 193 | static ALLOCATOR: GlobalChunkAllocator = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at .0.inner.data.value.heap: encountered mutable reference in a `const` or `static` [INFO] [stdout] | [INFO] [stdout] = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior. [INFO] [stdout] = note: the raw bytes of the constant (size: 80, align: 8) { [INFO] [stdout] 0x00 │ 00 __ __ __ __ __ __ __ ╾───────alloc47───────╼ │ .░░░░░░░╾──────╼ [INFO] [stdout] 0x10 │ 00 08 00 00 00 00 00 00 ╾───────alloc48───────╼ │ ........╾──────╼ [INFO] [stdout] 0x20 │ 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................ [INFO] [stdout] 0x30 │ 01 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00 │ ................ [INFO] [stdout] 0x40 │ 00 00 00 00 00 00 00 00 01 __ __ __ __ __ __ __ │ .........░░░░░░░ [INFO] [stdout] } [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0080]: it is undefined behavior to use this value [INFO] [stdout] --> src/global.rs:235:9 [INFO] [stdout] | [INFO] [stdout] 235 | static ALLOCATOR: GlobalChunkAllocator = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at .0.inner.data.value.heap: encountered mutable reference in a `const` or `static` [INFO] [stdout] | [INFO] [stdout] = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior. [INFO] [stdout] = note: the raw bytes of the constant (size: 80, align: 8) { [INFO] [stdout] 0x00 │ 00 __ __ __ __ __ __ __ ╾───────alloc50───────╼ │ .░░░░░░░╾──────╼ [INFO] [stdout] 0x10 │ 00 20 00 00 00 00 00 00 ╾───────alloc51───────╼ │ . ......╾──────╼ [INFO] [stdout] 0x20 │ 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................ [INFO] [stdout] 0x30 │ 01 00 00 00 00 00 00 00 20 00 00 00 00 00 00 00 │ ........ ....... [INFO] [stdout] 0x40 │ 00 00 00 00 00 00 00 00 01 __ __ __ __ __ __ __ │ .........░░░░░░░ [INFO] [stdout] } [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0080`. [INFO] [stdout] [INFO] [stderr] error: could not compile `simple-chunk-allocator` (lib test) due to 3 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "3d670462056ecf62363ff9bf7aa06d760d6f726a0290d3d108b6dbfb23eb2d92", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3d670462056ecf62363ff9bf7aa06d760d6f726a0290d3d108b6dbfb23eb2d92", kill_on_drop: false }` [INFO] [stdout] 3d670462056ecf62363ff9bf7aa06d760d6f726a0290d3d108b6dbfb23eb2d92