[INFO] fetching crate zkp-logging-allocator 0.2.0... [INFO] checking zkp-logging-allocator-0.2.0 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] extracting crate zkp-logging-allocator 0.2.0 into /workspace/builds/worker-7-tc1/source [INFO] validating manifest of crates.io crate zkp-logging-allocator 0.2.0 on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate zkp-logging-allocator 0.2.0 [INFO] finished tweaking crates.io crate zkp-logging-allocator 0.2.0 [INFO] tweaked toml for crates.io crate zkp-logging-allocator 0.2.0 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 1 package to latest compatible version [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition [INFO] [stderr] (in the `log` dependency) [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c6e0b3631c6891cd4aaee0dc2973c76ffb5432deab2a167f06ba7bed302507ff [INFO] running `Command { std: "docker" "start" "-a" "c6e0b3631c6891cd4aaee0dc2973c76ffb5432deab2a167f06ba7bed302507ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c6e0b3631c6891cd4aaee0dc2973c76ffb5432deab2a167f06ba7bed302507ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c6e0b3631c6891cd4aaee0dc2973c76ffb5432deab2a167f06ba7bed302507ff", kill_on_drop: false }` [INFO] [stdout] c6e0b3631c6891cd4aaee0dc2973c76ffb5432deab2a167f06ba7bed302507ff [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 33f1428272b3f42b130edb67813ef87bfd41ea920b29642e9d7d5fd5e03d533e [INFO] running `Command { std: "docker" "start" "-a" "33f1428272b3f42b130edb67813ef87bfd41ea920b29642e9d7d5fd5e03d533e", kill_on_drop: false }` [INFO] [stderr] warning: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition [INFO] [stderr] (in the `log` dependency) [INFO] [stderr] Checking zkp-logging-allocator v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0453]: warn(unsafe_code) incompatible with previous forbid [INFO] [stdout] --> src/lib.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 6 | #![forbid(unsafe_code)] [INFO] [stdout] | ----------- `forbid` level set here [INFO] [stdout] ... [INFO] [stdout] 35 | unsafe_code, [INFO] [stdout] | ^^^^^^^^^^^ overruled by previous forbid [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0453]: allow(unsafe_code) incompatible with previous forbid [INFO] [stdout] --> src/logging_allocator.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | #[allow(unsafe_code)] [INFO] [stdout] | ^^^^^^^^^^^ overruled by previous forbid [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | #![forbid(unsafe_code)] [INFO] [stdout] | ----------- `forbid` level set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0453]: warn(unsafe_code) incompatible with previous forbid [INFO] [stdout] --> src/lib.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 6 | #![forbid(unsafe_code)] [INFO] [stdout] | ----------- `forbid` level set here [INFO] [stdout] ... [INFO] [stdout] 35 | unsafe_code, [INFO] [stdout] | ^^^^^^^^^^^ overruled by previous forbid [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implementation of an `unsafe` trait [INFO] [stdout] --> src/logging_allocator.rs:74:1 [INFO] [stdout] | [INFO] [stdout] 74 | / unsafe impl GlobalAlloc for LoggingAllocator { [INFO] [stdout] 75 | | unsafe fn alloc(&self, layout: Layout) -> *mut u8 { [INFO] [stdout] 76 | | if layout.size() < self.info { [INFO] [stdout] 77 | | // Do nothing for small allocations [INFO] [stdout] ... | [INFO] [stdout] 123 | | } [INFO] [stdout] 124 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | #![forbid(unsafe_code)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0453]: allow(unsafe_code) incompatible with previous forbid [INFO] [stdout] --> src/logging_allocator.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | #[allow(unsafe_code)] [INFO] [stdout] | ^^^^^^^^^^^ overruled by previous forbid [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | #![forbid(unsafe_code)] [INFO] [stdout] | ----------- `forbid` level set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implementation of an `unsafe` method [INFO] [stdout] --> src/logging_allocator.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | / unsafe fn alloc(&self, layout: Layout) -> *mut u8 { [INFO] [stdout] 76 | | if layout.size() < self.info { [INFO] [stdout] 77 | | // Do nothing for small allocations [INFO] [stdout] 78 | | // Note that the log messages themselves also make small [INFO] [stdout] ... | [INFO] [stdout] 117 | | result [INFO] [stdout] 118 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implementation of an `unsafe` trait [INFO] [stdout] --> src/logging_allocator.rs:74:1 [INFO] [stdout] | [INFO] [stdout] 74 | / unsafe impl GlobalAlloc for LoggingAllocator { [INFO] [stdout] 75 | | unsafe fn alloc(&self, layout: Layout) -> *mut u8 { [INFO] [stdout] 76 | | if layout.size() < self.info { [INFO] [stdout] 77 | | // Do nothing for small allocations [INFO] [stdout] ... | [INFO] [stdout] 123 | | } [INFO] [stdout] 124 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | #![forbid(unsafe_code)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implementation of an `unsafe` method [INFO] [stdout] --> src/logging_allocator.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | / unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) { [INFO] [stdout] 121 | | System.dealloc(ptr, layout); [INFO] [stdout] 122 | | let _ = self.allocated.fetch_sub(layout.size(), Relaxed); [INFO] [stdout] 123 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implementation of an `unsafe` method [INFO] [stdout] --> src/logging_allocator.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | / unsafe fn alloc(&self, layout: Layout) -> *mut u8 { [INFO] [stdout] 76 | | if layout.size() < self.info { [INFO] [stdout] 77 | | // Do nothing for small allocations [INFO] [stdout] 78 | | // Note that the log messages themselves also make small [INFO] [stdout] ... | [INFO] [stdout] 117 | | result [INFO] [stdout] 118 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implementation of an `unsafe` method [INFO] [stdout] --> src/logging_allocator.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | / unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) { [INFO] [stdout] 121 | | System.dealloc(ptr, layout); [INFO] [stdout] 122 | | let _ = self.allocated.fetch_sub(layout.size(), Relaxed); [INFO] [stdout] 123 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0453`. [INFO] [stdout] [INFO] [stderr] error: could not compile `zkp-logging-allocator` (lib test) due to 6 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0453`. [INFO] [stdout] [INFO] [stderr] error: could not compile `zkp-logging-allocator` (lib) due to 6 previous errors [INFO] running `Command { std: "docker" "inspect" "33f1428272b3f42b130edb67813ef87bfd41ea920b29642e9d7d5fd5e03d533e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "33f1428272b3f42b130edb67813ef87bfd41ea920b29642e9d7d5fd5e03d533e", kill_on_drop: false }` [INFO] [stdout] 33f1428272b3f42b130edb67813ef87bfd41ea920b29642e9d7d5fd5e03d533e