[INFO] fetching crate region 3.0.2... [INFO] building region-3.0.2 against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [INFO] extracting crate region 3.0.2 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate region 3.0.2 [INFO] finished tweaking crates.io crate region 3.0.2 [INFO] tweaked toml for crates.io crate region 3.0.2 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate region 3.0.2 on toolchain caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "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" "+caccb4d0368bd918ef6668af8e13834d07040417" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 17 packages to latest compatible versions [INFO] [stderr] Adding bitflags v1.3.2 (available: v2.9.4) [INFO] [stderr] Adding mach2 v0.4.3 (available: v0.5.0) [INFO] [stderr] Adding windows-sys v0.52.0 (available: v0.61.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded mach2 v0.4.3 [INFO] [stderr] Downloaded mmap-fixed v0.1.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] af46e6dcf533a04f632ea26f3772c25493141555007d4ff861bcdbc0227b4bdc [INFO] running `Command { std: "docker" "start" "-a" "af46e6dcf533a04f632ea26f3772c25493141555007d4ff861bcdbc0227b4bdc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "af46e6dcf533a04f632ea26f3772c25493141555007d4ff861bcdbc0227b4bdc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "af46e6dcf533a04f632ea26f3772c25493141555007d4ff861bcdbc0227b4bdc", kill_on_drop: false }` [INFO] [stdout] af46e6dcf533a04f632ea26f3772c25493141555007d4ff861bcdbc0227b4bdc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e9197eded46527eeddb91d4ea689d96c07ac510127f7700f5fefdf3349a5581e [INFO] running `Command { std: "docker" "start" "-a" "e9197eded46527eeddb91d4ea689d96c07ac510127f7700f5fefdf3349a5581e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.176 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling region v3.0.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.94s [INFO] running `Command { std: "docker" "inspect" "e9197eded46527eeddb91d4ea689d96c07ac510127f7700f5fefdf3349a5581e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9197eded46527eeddb91d4ea689d96c07ac510127f7700f5fefdf3349a5581e", kill_on_drop: false }` [INFO] [stdout] e9197eded46527eeddb91d4ea689d96c07ac510127f7700f5fefdf3349a5581e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8b0c1143c09a1ad0bc3fcfdb8e9bee7097a9650acc0a996af52029b612bc946f [INFO] running `Command { std: "docker" "start" "-a" "8b0c1143c09a1ad0bc3fcfdb8e9bee7097a9650acc0a996af52029b612bc946f", kill_on_drop: false }` [INFO] [stderr] Compiling mmap-fixed v0.1.6 [INFO] [stderr] Compiling region v3.0.2 (/opt/rustwide/workdir) [INFO] [stderr] error: could not compile `region` (lib test) due to 1 previous error [INFO] [stdout] error: casting references to a bigger memory layout than the backing allocation is undefined behavior, even if the reference is unused [INFO] [stdout] --> src/protect.rs:182:7 [INFO] [stdout] | [INFO] [stdout] 179 | let address = &mut protect_can_alter_text_segments as *mut _ as *mut u8; [INFO] [stdout] | --------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | backing allocation comes from here [INFO] [stdout] | casting happened here [INFO] [stdout] ... [INFO] [stdout] 182 | *address = 0x90; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: casting from `fn() {protect::tests::protect_can_alter_text_segments}` (0 bytes) to `u8` (1 bytes) [INFO] [stdout] = note: `#[deny(invalid_reference_casting)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "8b0c1143c09a1ad0bc3fcfdb8e9bee7097a9650acc0a996af52029b612bc946f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8b0c1143c09a1ad0bc3fcfdb8e9bee7097a9650acc0a996af52029b612bc946f", kill_on_drop: false }` [INFO] [stdout] 8b0c1143c09a1ad0bc3fcfdb8e9bee7097a9650acc0a996af52029b612bc946f