[INFO] fetching crate mapped-file 0.0.8-r1... [INFO] building mapped-file-0.0.8-r1 against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] extracting crate mapped-file 0.0.8-r1 into /workspace/builds/worker-6-tc1/source [INFO] validating manifest of crates.io crate mapped-file 0.0.8-r1 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 mapped-file 0.0.8-r1 [INFO] finished tweaking crates.io crate mapped-file 0.0.8-r1 [INFO] tweaked toml for crates.io crate mapped-file 0.0.8-r1 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 3 packages to latest compatible versions [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] 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] 2341a0be8eab453de44c7044e6adb5a6fdce3f9f5b76f8cb24aadd716a7b135e [INFO] running `Command { std: "docker" "start" "-a" "2341a0be8eab453de44c7044e6adb5a6fdce3f9f5b76f8cb24aadd716a7b135e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2341a0be8eab453de44c7044e6adb5a6fdce3f9f5b76f8cb24aadd716a7b135e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2341a0be8eab453de44c7044e6adb5a6fdce3f9f5b76f8cb24aadd716a7b135e", kill_on_drop: false }` [INFO] [stdout] 2341a0be8eab453de44c7044e6adb5a6fdce3f9f5b76f8cb24aadd716a7b135e [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] 070db917c3b2ea6f825349f1725136c916d42cbfb4a312cd420ed6ad73ebb825 [INFO] running `Command { std: "docker" "start" "-a" "070db917c3b2ea6f825349f1725136c916d42cbfb4a312cd420ed6ad73ebb825", kill_on_drop: false }` [INFO] [stderr] Compiling mapped-file v0.0.8-r1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `PathBuf` [INFO] [stdout] --> src/hugetlb.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | path::{Path, PathBuf}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MFD_HUGETLB` [INFO] [stdout] --> src/file/memory.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | MFD_HUGETLB, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HugePage` [INFO] [stdout] --> src/file/memory.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | HugePage, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops` [INFO] [stdout] --> src/ring/buffer.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | ops, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MaybeUninit` [INFO] [stdout] --> src/ext.rs:10:2 [INFO] [stdout] | [INFO] [stdout] 10 | MaybeUninit, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `defer` [INFO] [stdout] --> src/ext.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 15 | macro_rules! defer { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `opaque` [INFO] [stdout] --> src/err.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | macro_rules! opaque { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/lib.rs:327:3 [INFO] [stdout] | [INFO] [stdout] 326 | todo!("We can't carry `pivots` over to return from this function; the data is needed for unmapping the ring..."); [INFO] [stdout] | ---------------------------------------------------------------------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 327 | todo!("The mapping we'd be using is `root`. But we need to unmap `pivots` in reverse order when the returned `MappedFile` is dro... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `todo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pivots` [INFO] [stdout] --> src/lib.rs:312:7 [INFO] [stdout] | [INFO] [stdout] 312 | let pivots = { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pivots` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: relative drop order changing in Rust 2024 [INFO] [stdout] --> src/hugetlb.rs:317:29 [INFO] [stdout] | [INFO] [stdout] 317 | break if let Some(next) = self.0.next() { [INFO] [stdout] | ---- ^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | this value will be stored in a temporary; let us call it `#2` [INFO] [stdout] | | up until Edition 2021 `#2` is dropped last but will be dropped earlier in Edition 2024 [INFO] [stdout] | `next` calls a custom destructor [INFO] [stdout] | `next` will be dropped later as of Edition 2024 [INFO] [stdout] 318 | let path = match next { [INFO] [stdout] 319 | Ok(next) => next.file_name(), [INFO] [stdout] | ---- [INFO] [stdout] | | [INFO] [stdout] | this value will be stored in a temporary; let us call it `#1` [INFO] [stdout] | `#1` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 344 | } [INFO] [stdout] | - now the temporary value is dropped here, before the local variables in the block or statement [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: `#2` invokes this custom destructor [INFO] [stdout] --> /rustc/11663cd3bfefef7d34e8f0892c250bf698049392/library/alloc/src/ffi/c_str.rs:694:1 [INFO] [stdout] note: `#2` invokes this custom destructor [INFO] [stdout] --> /rustc/11663cd3bfefef7d34e8f0892c250bf698049392/library/std/src/sys/pal/unix/fs.rs:857:1 [INFO] [stdout] note: `next` invokes this custom destructor [INFO] [stdout] --> /rustc/11663cd3bfefef7d34e8f0892c250bf698049392/library/alloc/src/ffi/c_str.rs:694:1 [INFO] [stdout] note: `next` invokes this custom destructor [INFO] [stdout] --> /rustc/11663cd3bfefef7d34e8f0892c250bf698049392/library/std/src/sys/pal/unix/fs.rs:857:1 [INFO] [stdout] note: `#1` invokes this custom destructor [INFO] [stdout] --> /rustc/11663cd3bfefef7d34e8f0892c250bf698049392/library/alloc/src/ffi/c_str.rs:694:1 [INFO] [stdout] note: `#1` invokes this custom destructor [INFO] [stdout] --> /rustc/11663cd3bfefef7d34e8f0892c250bf698049392/library/std/src/sys/pal/unix/fs.rs:857:1 [INFO] [stdout] = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_last_error` is never used [INFO] [stdout] --> src/ffi.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 84 | / impl<'a, T> FFIError<'a, T> [INFO] [stdout] 85 | | where FFIError<'a, T>: error::Error [INFO] [stdout] | |___________________________________- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 89 | fn from_last_error(value: T, arguments: fmt::Arguments<'a>) -> Self [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_or_else` and `new_or` are never used [INFO] [stdout] --> src/file/raw.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl NonNegativeI32 [INFO] [stdout] | ------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn new_or_else Self>(raw: i32, f: F) -> Self [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn new_or(raw: i32, or: Self) -> Self [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_or_panic` is never used [INFO] [stdout] --> src/file/unmanaged.rs:27:25 [INFO] [stdout] | [INFO] [stdout] 10 | impl UnmanagedFD { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub(super) const fn new_or_panic(raw: RawFd) -> Self [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_ptr` is never used [INFO] [stdout] --> src/uniq.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 126 | impl UniqueSlice [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 134 | pub fn get_ptr(&self) -> Option> [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `first`, `last`, `first_mut`, `last_mut`, and `as_ptr_range` are never used [INFO] [stdout] --> src/uniq.rs:182:12 [INFO] [stdout] | [INFO] [stdout] 144 | impl UniqueSlice [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 182 | pub fn first(&self) -> Option<&T> [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 191 | pub fn last(&self) -> Option<&T> [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 200 | pub fn first_mut(&mut self) -> Option<&mut T> [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 209 | pub fn last_mut(&mut self) -> Option<&mut T> [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 220 | pub const fn as_ptr_range(&self) -> std::ops::Range<*mut T> [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `requires_write_access` is never used [INFO] [stdout] --> src/flags.rs:117:25 [INFO] [stdout] | [INFO] [stdout] 102 | impl Flags [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 117 | pub(super) const fn requires_write_access(&self) -> bool [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `open_rw` is never used [INFO] [stdout] --> src/flags.rs:143:25 [INFO] [stdout] | [INFO] [stdout] 126 | impl Perm [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 143 | pub(super) const fn open_rw(&self, flags: Flags) -> (bool, bool) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_os_error` is never used [INFO] [stdout] --> src/err.rs:129:19 [INFO] [stdout] | [INFO] [stdout] 122 | impl WrappedOSError [INFO] [stdout] | ------------------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 129 | pub(crate) fn from_os_error(raw: c_int, ctx: E) -> Self [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `mapped-file` (lib) due to 1 previous error; 17 warnings emitted [INFO] running `Command { std: "docker" "inspect" "070db917c3b2ea6f825349f1725136c916d42cbfb4a312cd420ed6ad73ebb825", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "070db917c3b2ea6f825349f1725136c916d42cbfb4a312cd420ed6ad73ebb825", kill_on_drop: false }` [INFO] [stdout] 070db917c3b2ea6f825349f1725136c916d42cbfb4a312cd420ed6ad73ebb825