[INFO] fetching crate libudev 0.3.0... [INFO] checking libudev-0.3.0 against try#c387b04bf028733cd561d62128c8a5eee4bc1458+rustflags=-Dtail_expr_drop_order for pr-130930 [INFO] extracting crate libudev 0.3.0 into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate libudev 0.3.0 on toolchain c387b04bf028733cd561d62128c8a5eee4bc1458 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate libudev 0.3.0 [INFO] finished tweaking crates.io crate libudev 0.3.0 [INFO] tweaked toml for crates.io crate libudev 0.3.0 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate crates.io crate libudev 0.3.0 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" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ce5454a1025c030353ccb6dd55efe555b5a10bece5db4cca5f4ef59e11b7d787 [INFO] running `Command { std: "docker" "start" "-a" "ce5454a1025c030353ccb6dd55efe555b5a10bece5db4cca5f4ef59e11b7d787", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ce5454a1025c030353ccb6dd55efe555b5a10bece5db4cca5f4ef59e11b7d787", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ce5454a1025c030353ccb6dd55efe555b5a10bece5db4cca5f4ef59e11b7d787", kill_on_drop: false }` [INFO] [stdout] ce5454a1025c030353ccb6dd55efe555b5a10bece5db4cca5f4ef59e11b7d787 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0a26a8df6321c07e15bb869d63e1eb8961ab44dc54441d6c0c49e6d9d493f8ac [INFO] running `Command { std: "docker" "start" "-a" "0a26a8df6321c07e15bb869d63e1eb8961ab44dc54441d6c0c49e6d9d493f8ac", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Compiling libc v0.2.82 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stderr] Checking libudev v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/device.rs:50:23 [INFO] [stdout] | [INFO] [stdout] 50 | let syspath = try!(::util::os_str_to_cstring(syspath)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/device.rs:50:23 [INFO] [stdout] | [INFO] [stdout] 50 | let syspath = try!(::util::os_str_to_cstring(syspath)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/device.rs:208:25 [INFO] [stdout] | [INFO] [stdout] 208 | let attribute = try!(::util::os_str_to_cstring(attribute)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/device.rs:209:21 [INFO] [stdout] | [INFO] [stdout] 209 | let value = try!(::util::os_str_to_cstring(value)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/enumerator.rs:53:25 [INFO] [stdout] | [INFO] [stdout] 53 | let subsystem = try!(::util::os_str_to_cstring(subsystem)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/enumerator.rs:62:25 [INFO] [stdout] | [INFO] [stdout] 62 | let attribute = try!(::util::os_str_to_cstring(attribute)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/enumerator.rs:63:21 [INFO] [stdout] | [INFO] [stdout] 63 | let value = try!(::util::os_str_to_cstring(value)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/enumerator.rs:72:23 [INFO] [stdout] | [INFO] [stdout] 72 | let sysname = try!(::util::os_str_to_cstring(sysname)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/enumerator.rs:81:24 [INFO] [stdout] | [INFO] [stdout] 81 | let property = try!(::util::os_str_to_cstring(property)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/enumerator.rs:82:21 [INFO] [stdout] | [INFO] [stdout] 82 | let value = try!(::util::os_str_to_cstring(value)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/enumerator.rs:91:19 [INFO] [stdout] | [INFO] [stdout] 91 | let tag = try!(::util::os_str_to_cstring(tag)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/enumerator.rs:107:25 [INFO] [stdout] | [INFO] [stdout] 107 | let subsystem = try!(::util::os_str_to_cstring(subsystem)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/enumerator.rs:116:25 [INFO] [stdout] | [INFO] [stdout] 116 | let attribute = try!(::util::os_str_to_cstring(attribute)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/enumerator.rs:117:21 [INFO] [stdout] | [INFO] [stdout] 117 | let value = try!(::util::os_str_to_cstring(value)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/enumerator.rs:126:23 [INFO] [stdout] | [INFO] [stdout] 126 | let syspath = try!(::util::os_str_to_cstring(syspath)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/enumerator.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 137 | try!(::util::errno_to_result(unsafe { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/monitor.rs:49:25 [INFO] [stdout] | [INFO] [stdout] 49 | let subsystem = try!(::util::os_str_to_cstring(subsystem)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/monitor.rs:58:25 [INFO] [stdout] | [INFO] [stdout] 58 | let subsystem = try!(::util::os_str_to_cstring(subsystem)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/monitor.rs:59:23 [INFO] [stdout] | [INFO] [stdout] 59 | let devtype = try!(::util::os_str_to_cstring(devtype)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/monitor.rs:68:19 [INFO] [stdout] | [INFO] [stdout] 68 | let tag = try!(::util::os_str_to_cstring(tag)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/monitor.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | try!(::util::errno_to_result(unsafe { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/device.rs:208:25 [INFO] [stdout] | [INFO] [stdout] 208 | let attribute = try!(::util::os_str_to_cstring(attribute)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/device.rs:209:21 [INFO] [stdout] | [INFO] [stdout] 209 | let value = try!(::util::os_str_to_cstring(value)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/enumerator.rs:53:25 [INFO] [stdout] | [INFO] [stdout] 53 | let subsystem = try!(::util::os_str_to_cstring(subsystem)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/enumerator.rs:62:25 [INFO] [stdout] | [INFO] [stdout] 62 | let attribute = try!(::util::os_str_to_cstring(attribute)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/enumerator.rs:63:21 [INFO] [stdout] | [INFO] [stdout] 63 | let value = try!(::util::os_str_to_cstring(value)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/enumerator.rs:72:23 [INFO] [stdout] | [INFO] [stdout] 72 | let sysname = try!(::util::os_str_to_cstring(sysname)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/enumerator.rs:81:24 [INFO] [stdout] | [INFO] [stdout] 81 | let property = try!(::util::os_str_to_cstring(property)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/enumerator.rs:82:21 [INFO] [stdout] | [INFO] [stdout] 82 | let value = try!(::util::os_str_to_cstring(value)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/enumerator.rs:91:19 [INFO] [stdout] | [INFO] [stdout] 91 | let tag = try!(::util::os_str_to_cstring(tag)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/enumerator.rs:107:25 [INFO] [stdout] | [INFO] [stdout] 107 | let subsystem = try!(::util::os_str_to_cstring(subsystem)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/enumerator.rs:116:25 [INFO] [stdout] | [INFO] [stdout] 116 | let attribute = try!(::util::os_str_to_cstring(attribute)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/enumerator.rs:117:21 [INFO] [stdout] | [INFO] [stdout] 117 | let value = try!(::util::os_str_to_cstring(value)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/enumerator.rs:126:23 [INFO] [stdout] | [INFO] [stdout] 126 | let syspath = try!(::util::os_str_to_cstring(syspath)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/enumerator.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 137 | try!(::util::errno_to_result(unsafe { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/monitor.rs:49:25 [INFO] [stdout] | [INFO] [stdout] 49 | let subsystem = try!(::util::os_str_to_cstring(subsystem)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/monitor.rs:58:25 [INFO] [stdout] | [INFO] [stdout] 58 | let subsystem = try!(::util::os_str_to_cstring(subsystem)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/monitor.rs:59:23 [INFO] [stdout] | [INFO] [stdout] 59 | let devtype = try!(::util::os_str_to_cstring(devtype)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/monitor.rs:68:19 [INFO] [stdout] | [INFO] [stdout] 68 | let tag = try!(::util::os_str_to_cstring(tag)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/monitor.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | try!(::util::errno_to_result(unsafe { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this value of type `std::result::Result` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/util.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn os_str_to_cstring>(s: T) -> ::Result { [INFO] [stdout] | - these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 34 | match CString::new(s.as_ref().as_bytes()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this value of type `std::result::Result` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/util.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn os_str_to_cstring>(s: T) -> ::Result { [INFO] [stdout] | - these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 34 | match CString::new(s.as_ref().as_bytes()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `libudev` (lib) due to 2 previous errors; 20 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `libudev` (lib test) due to 2 previous errors; 20 warnings emitted [INFO] running `Command { std: "docker" "inspect" "0a26a8df6321c07e15bb869d63e1eb8961ab44dc54441d6c0c49e6d9d493f8ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0a26a8df6321c07e15bb869d63e1eb8961ab44dc54441d6c0c49e6d9d493f8ac", kill_on_drop: false }` [INFO] [stdout] 0a26a8df6321c07e15bb869d63e1eb8961ab44dc54441d6c0c49e6d9d493f8ac