[INFO] fetching crate zkp-mmap-vec 0.2.0... [INFO] checking zkp-mmap-vec-0.2.0 against try#3bb2879ea9e58d65b875f9a98df44f4a43ce2597 for pr-85387 [INFO] extracting crate zkp-mmap-vec 0.2.0 into /workspace/builds/worker-10/source [INFO] validating manifest of crates.io crate zkp-mmap-vec 0.2.0 on toolchain 3bb2879ea9e58d65b875f9a98df44f4a43ce2597 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3bb2879ea9e58d65b875f9a98df44f4a43ce2597" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate zkp-mmap-vec 0.2.0 [INFO] finished tweaking crates.io crate zkp-mmap-vec 0.2.0 [INFO] tweaked toml for crates.io crate zkp-mmap-vec 0.2.0 written to /workspace/builds/worker-10/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3bb2879ea9e58d65b875f9a98df44f4a43ce2597" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3bb2879ea9e58d65b875f9a98df44f4a43ce2597" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+3bb2879ea9e58d65b875f9a98df44f4a43ce2597" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4802dd341ee49fa577152a4e24656fa04cee365d724b704cbc6673f89b82988d [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" "4802dd341ee49fa577152a4e24656fa04cee365d724b704cbc6673f89b82988d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4802dd341ee49fa577152a4e24656fa04cee365d724b704cbc6673f89b82988d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4802dd341ee49fa577152a4e24656fa04cee365d724b704cbc6673f89b82988d", kill_on_drop: false }` [INFO] [stdout] 4802dd341ee49fa577152a4e24656fa04cee365d724b704cbc6673f89b82988d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+3bb2879ea9e58d65b875f9a98df44f4a43ce2597" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e5b38e8dc18a876a703024d090f55afb753cda958e24ada0ae3fd3221443312f [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" "e5b38e8dc18a876a703024d090f55afb753cda958e24ada0ae3fd3221443312f", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.95 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking no-std-compat v0.4.1 [INFO] [stderr] Checking memmap v0.7.0 [INFO] [stderr] Checking zkp-mmap-vec 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]: 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/mmap_vec.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | #![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/mmap_vec.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | / pub unsafe fn zero_initialized(len: usize) -> Self { [INFO] [stdout] 60 | | let mut result = Self::with_capacity(len); [INFO] [stdout] 61 | | result.length = len; [INFO] [stdout] 62 | | result [INFO] [stdout] 63 | | } [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/mmap_vec.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 92 | #[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: usage of an `unsafe` block [INFO] [stdout] --> src/mmap_vec.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | / unsafe { [INFO] [stdout] 94 | | // Modified from std::vec::Vec::truncate, which has this comment: [INFO] [stdout] 95 | | // This is safe because: [INFO] [stdout] 96 | | // [INFO] [stdout] ... | [INFO] [stdout] 104 | | drop_in_place(slice_pointer); [INFO] [stdout] 105 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: usage of an `unsafe` block [INFO] [stdout] --> src/mmap_vec.rs:184:9 [INFO] [stdout] | [INFO] [stdout] 184 | unsafe { slice::from_raw_parts(self.mmap.as_ptr() as *const T, self.length) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: usage of an `unsafe` block [INFO] [stdout] --> src/mmap_vec.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | unsafe { slice::from_raw_parts_mut(self.mmap.as_mut_ptr() as *mut T, self.length) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0453]: allow(unsafe_code) incompatible with previous forbid [INFO] [stdout] --> src/mmap_vec.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | #![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/mmap_vec.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | / pub unsafe fn zero_initialized(len: usize) -> Self { [INFO] [stdout] 60 | | let mut result = Self::with_capacity(len); [INFO] [stdout] 61 | | result.length = len; [INFO] [stdout] 62 | | result [INFO] [stdout] 63 | | } [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/mmap_vec.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 92 | #[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: usage of an `unsafe` block [INFO] [stdout] --> src/mmap_vec.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | / unsafe { [INFO] [stdout] 94 | | // Modified from std::vec::Vec::truncate, which has this comment: [INFO] [stdout] 95 | | // This is safe because: [INFO] [stdout] 96 | | // [INFO] [stdout] ... | [INFO] [stdout] 104 | | drop_in_place(slice_pointer); [INFO] [stdout] 105 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: usage of an `unsafe` block [INFO] [stdout] --> src/mmap_vec.rs:184:9 [INFO] [stdout] | [INFO] [stdout] 184 | unsafe { slice::from_raw_parts(self.mmap.as_ptr() as *const T, self.length) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: usage of an `unsafe` block [INFO] [stdout] --> src/mmap_vec.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | unsafe { slice::from_raw_parts_mut(self.mmap.as_mut_ptr() as *mut T, self.length) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 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-mmap-vec` [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: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0453`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "e5b38e8dc18a876a703024d090f55afb753cda958e24ada0ae3fd3221443312f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e5b38e8dc18a876a703024d090f55afb753cda958e24ada0ae3fd3221443312f", kill_on_drop: false }` [INFO] [stdout] e5b38e8dc18a876a703024d090f55afb753cda958e24ada0ae3fd3221443312f