[INFO] fetching crate ferroc 1.0.0-pre.3... [INFO] building ferroc-1.0.0-pre.3 against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] extracting crate ferroc 1.0.0-pre.3 into /workspace/builds/worker-6-tc1/source [INFO] validating manifest of crates.io crate ferroc 1.0.0-pre.3 on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate ferroc 1.0.0-pre.3 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate ferroc 1.0.0-pre.3 [INFO] tweaked toml for crates.io crate ferroc 1.0.0-pre.3 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate crates.io crate ferroc 1.0.0-pre.3 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded crabgrind v0.1.9 [INFO] [stderr] Downloaded array-macro v2.1.8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4e445c5569a97fbb18692b69ff731b81f69fddc1a6630461b7cc10b155345fa1 [INFO] running `Command { std: "docker" "start" "-a" "4e445c5569a97fbb18692b69ff731b81f69fddc1a6630461b7cc10b155345fa1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4e445c5569a97fbb18692b69ff731b81f69fddc1a6630461b7cc10b155345fa1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4e445c5569a97fbb18692b69ff731b81f69fddc1a6630461b7cc10b155345fa1", kill_on_drop: false }` [INFO] [stdout] 4e445c5569a97fbb18692b69ff731b81f69fddc1a6630461b7cc10b155345fa1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3c61aafae2b86e052c524205a6ac37363c70f2015dfe39cab81daa6402720efb [INFO] running `Command { std: "docker" "start" "-a" "3c61aafae2b86e052c524205a6ac37363c70f2015dfe39cab81daa6402720efb", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.154 [INFO] [stderr] Compiling ferroc v1.0.0-pre.3 (/opt/rustwide/workdir) [INFO] [stderr] Compiling array-macro v2.1.8 [INFO] [stderr] Compiling memmap2 v0.9.4 [INFO] [stdout] error: extern blocks should be unsafe [INFO] [stdout] --> src/base/mmap.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 93 | | #[cfg_attr( [INFO] [stdout] 94 | | any( [INFO] [stdout] 95 | | target_os = "linux", [INFO] [stdout] ... | [INFO] [stdout] 130 | | fn errno_location() -> *mut RawOsError; [INFO] [stdout] 131 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | #![deny(rust_2024_compatibility)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[deny(missing_unsafe_on_extern)]` implied by `#[deny(rust_2024_compatibility)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/base/static_.rs:70:67 [INFO] [stdout] | [INFO] [stdout] 70 | fn alloc_inner(&'static self, layout: Layout) -> Option> { [INFO] [stdout] | ^ this elided lifetime gets resolved as `'static` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] help: consider specifying it explicitly [INFO] [stdout] | [INFO] [stdout] 70 | fn alloc_inner(&'static self, layout: Layout) -> Option> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/global.rs:52:27 [INFO] [stdout] | [INFO] [stdout] 52 | (@ARENA $vis:vis, $bs:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `#[deny(edition_2024_expr_fragment_specifier)]` implied by `#[deny(rust_2024_compatibility)]` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 52 | (@ARENA $vis:vis, $bs:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/global.rs:269:31 [INFO] [stdout] | [INFO] [stdout] 269 | ($vis:vis $name:ident($bs:expr) => $bt:ty: $($options:tt)*) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 269 | ($vis:vis $name:ident($bs:expr_2021) => $bt:ty: $($options:tt)*) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/global.rs:275:31 [INFO] [stdout] | [INFO] [stdout] 275 | ($vis:vis $name:ident($bs:expr) => $bt:ty) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 275 | ($vis:vis $name:ident($bs:expr_2021) => $bt:ty) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/heap.rs:255:9 [INFO] [stdout] | [INFO] [stdout] 255 | ($e:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 255 | ($e:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_refs_to_static` has been stable since 1.83.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 140 | #![feature(const_refs_to_static)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_pin` has been stable since 1.84.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 139 | #![feature(const_pin)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `strict_provenance` has been stable since 1.84.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:147:12 [INFO] [stdout] | [INFO] [stdout] 147 | #![feature(strict_provenance)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/arena.rs:174:43 [INFO] [stdout] | [INFO] [stdout] 174 | Some(NonNull::from_raw_parts(data.cast(), SLAB_SIZE * count)) [INFO] [stdout] | ----------------------- ^^^^ cannot infer type of the type parameter `U` declared on the method `cast` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: Thin` [INFO] [stdout] note: required by a bound in `NonNull::::from_raw_parts` [INFO] [stdout] --> /rustc/11663cd3bfefef7d34e8f0892c250bf698049392/library/core/src/ptr/non_null.rs:255:5 [INFO] [stdout] help: consider specifying the generic argument [INFO] [stdout] | [INFO] [stdout] 174 | Some(NonNull::from_raw_parts(data.cast::(), SLAB_SIZE * count)) [INFO] [stdout] | +++++ [INFO] [stdout] help: consider removing this method call, as the receiver has type `NonNull<[u8]>` and `NonNull<[u8]>: Thin` trivially holds [INFO] [stdout] | [INFO] [stdout] 174 - Some(NonNull::from_raw_parts(data.cast(), SLAB_SIZE * count)) [INFO] [stdout] 174 + Some(NonNull::from_raw_parts(data, SLAB_SIZE * count)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/base.rs:162:42 [INFO] [stdout] | [INFO] [stdout] 162 | NonNull::from_raw_parts(self.ptr.cast(), self.layout.size()) [INFO] [stdout] | ----------------------- ^^^^ cannot infer type of the type parameter `U` declared on the method `cast` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: Thin` [INFO] [stdout] note: required by a bound in `NonNull::::from_raw_parts` [INFO] [stdout] --> /rustc/11663cd3bfefef7d34e8f0892c250bf698049392/library/core/src/ptr/non_null.rs:255:5 [INFO] [stdout] help: consider specifying the generic argument [INFO] [stdout] | [INFO] [stdout] 162 | NonNull::from_raw_parts(self.ptr.cast::(), self.layout.size()) [INFO] [stdout] | +++++ [INFO] [stdout] help: consider removing this method call, as the receiver has type `NonNull` and `NonNull: Thin` trivially holds [INFO] [stdout] | [INFO] [stdout] 162 - NonNull::from_raw_parts(self.ptr.cast(), self.layout.size()) [INFO] [stdout] 162 + NonNull::from_raw_parts(self.ptr, self.layout.size()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/slab.rs:835:63 [INFO] [stdout] | [INFO] [stdout] 835 | unsafe { base.commit(NonNull::from_raw_parts(area.cast(), usable_size)) } [INFO] [stdout] | ----------------------- ^^^^ cannot infer type of the type parameter `U` declared on the method `cast` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: Thin` [INFO] [stdout] note: required by a bound in `NonNull::::from_raw_parts` [INFO] [stdout] --> /rustc/11663cd3bfefef7d34e8f0892c250bf698049392/library/core/src/ptr/non_null.rs:255:5 [INFO] [stdout] help: consider specifying the generic argument [INFO] [stdout] | [INFO] [stdout] 835 | unsafe { base.commit(NonNull::from_raw_parts(area.cast::(), usable_size)) } [INFO] [stdout] | +++++ [INFO] [stdout] help: consider removing this method call, as the receiver has type `NonNull` and `NonNull: Thin` trivially holds [INFO] [stdout] | [INFO] [stdout] 835 - unsafe { base.commit(NonNull::from_raw_parts(area.cast(), usable_size)) } [INFO] [stdout] 835 + unsafe { base.commit(NonNull::from_raw_parts(area, usable_size)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/slab.rs:891:63 [INFO] [stdout] | [INFO] [stdout] 891 | unsafe { base.commit(NonNull::from_raw_parts(area.cast(), SHARD_SIZE)) } [INFO] [stdout] | ----------------------- ^^^^ cannot infer type of the type parameter `U` declared on the method `cast` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: Thin` [INFO] [stdout] note: required by a bound in `NonNull::::from_raw_parts` [INFO] [stdout] --> /rustc/11663cd3bfefef7d34e8f0892c250bf698049392/library/core/src/ptr/non_null.rs:255:5 [INFO] [stdout] help: consider specifying the generic argument [INFO] [stdout] | [INFO] [stdout] 891 | unsafe { base.commit(NonNull::from_raw_parts(area.cast::(), SHARD_SIZE)) } [INFO] [stdout] | +++++ [INFO] [stdout] help: consider removing this method call, as the receiver has type `NonNull` and `NonNull: Thin` trivially holds [INFO] [stdout] | [INFO] [stdout] 891 - unsafe { base.commit(NonNull::from_raw_parts(area.cast(), SHARD_SIZE)) } [INFO] [stdout] 891 + unsafe { base.commit(NonNull::from_raw_parts(area, SHARD_SIZE)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0283`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ferroc` (lib) due to 9 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "3c61aafae2b86e052c524205a6ac37363c70f2015dfe39cab81daa6402720efb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3c61aafae2b86e052c524205a6ac37363c70f2015dfe39cab81daa6402720efb", kill_on_drop: false }` [INFO] [stdout] 3c61aafae2b86e052c524205a6ac37363c70f2015dfe39cab81daa6402720efb