[INFO] fetching crate selinux 0.4.6... [INFO] checking selinux-0.4.6 against try#7014e13d5becc920d4bea3cd87942c8a13d359bf+rustflags=-Dtail_expr_drop_order for pr-129864 [INFO] extracting crate selinux 0.4.6 into /workspace/builds/worker-0-tc2/source [INFO] validating manifest of crates.io crate selinux 0.4.6 on toolchain 7014e13d5becc920d4bea3cd87942c8a13d359bf [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate selinux 0.4.6 [INFO] finished tweaking crates.io crate selinux 0.4.6 [INFO] tweaked toml for crates.io crate selinux 0.4.6 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 80 packages to latest compatible versions [INFO] [stderr] Adding linux-raw-sys v0.4.14 (available: v0.6.5) [INFO] [stderr] Adding rustc-hash v1.1.0 (available: v2.0.0) [INFO] [stderr] Adding wasi v0.11.0+wasi-snapshot-preview1 (available: v0.13.2+wasi-0.2.1) [INFO] [stderr] Adding windows-sys v0.52.0 (available: v0.59.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9f4d9664d56ccef89cbc333e9ce47328fc0f68b250e8ce063e47910801d41fee [INFO] running `Command { std: "docker" "start" "-a" "9f4d9664d56ccef89cbc333e9ce47328fc0f68b250e8ce063e47910801d41fee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9f4d9664d56ccef89cbc333e9ce47328fc0f68b250e8ce063e47910801d41fee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9f4d9664d56ccef89cbc333e9ce47328fc0f68b250e8ce063e47910801d41fee", kill_on_drop: false }` [INFO] [stdout] 9f4d9664d56ccef89cbc333e9ce47328fc0f68b250e8ce063e47910801d41fee [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9daf704a671ae3cd3f590a431ea701633cea7e056edd15baf2a906f0d2b10e37 [INFO] running `Command { std: "docker" "start" "-a" "9daf704a671ae3cd3f590a431ea701633cea7e056edd15baf2a906f0d2b10e37", kill_on_drop: false }` [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling prettyplease v0.2.22 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling libloading v0.8.5 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling bindgen v0.70.1 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Compiling io-lifetimes v2.0.3 [INFO] [stderr] Compiling dunce v1.0.5 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling rustix v0.38.37 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking linux-raw-sys v0.4.14 [INFO] [stderr] Compiling io-extras v0.18.2 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Compiling socketpair v0.19.5 [INFO] [stderr] Checking sdd v3.0.3 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Checking scc v2.1.17 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking reference-counted-singleton v0.1.5 [INFO] [stderr] Checking assert_matches v1.5.0 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Compiling regex v1.10.6 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling serial_test_derive v3.1.1 [INFO] [stderr] Checking tempfile v3.12.0 [INFO] [stderr] Checking serial_test v3.1.1 [INFO] [stderr] Checking thiserror v1.0.64 [INFO] [stderr] Compiling selinux-sys v0.6.12 [INFO] [stderr] Checking selinux v0.4.6 (/opt/rustwide/workdir) [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/avc/mod.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | AVC.as_ptr() [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this value of type `std::result::Result<(), errors::Error>` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/tests.rs:411:21 [INFO] [stdout] | [INFO] [stdout] 400 | let context = super::SecurityContext::current(false).unwrap(); [INFO] [stdout] | ------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 401 | let raw_context = super::SecurityContext::current(true).unwrap(); [INFO] [stdout] | ----------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 411 | if let Err(r) = raw_context.validate_transition(&raw_context, target_class, &raw_context) { [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, errors::Error>` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/avc/tests.rs:106:11 [INFO] [stdout] | [INFO] [stdout] 83 | let avc = super::AccessVectorCache::initialize(options).unwrap(); [INFO] [stdout] | --- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 106 | match avc.kernel_initial_security_id("unlabeled", true) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [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/label/tests.rs:81:21 [INFO] [stdout] | [INFO] [stdout] 79 | let labeler = super::Labeler::::new(&[], false).unwrap(); [INFO] [stdout] | ------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 80 | [INFO] [stdout] 81 | if let Err(r) = labeler.get_digests_all_partial_matches_by_path("/tmp") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this value of type `std::io::Error` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/utils/tests.rs:73:39 [INFO] [stdout] | [INFO] [stdout] 71 | let err = super::ret_val_to_result("xyz", -1).unwrap_err(); [INFO] [stdout] | --- [INFO] [stdout] | | [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 72 | assert_matches!(err, crate::errors::Error::IO { .. }); [INFO] [stdout] 73 | if let crate::errors::Error::IO { source, .. } = err { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this value of type `std::io::Error` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/utils/tests.rs:90:44 [INFO] [stdout] | [INFO] [stdout] 86 | let err = super::ret_val_to_result_with_path("xyz", -1, test_path).unwrap_err(); [INFO] [stdout] | --- [INFO] [stdout] | | [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 90 | if let crate::errors::Error::IO1Path { source, path, .. } = err { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/avc/mod.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | AVC.as_ptr() [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `selinux` (lib test) due to 6 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "9daf704a671ae3cd3f590a431ea701633cea7e056edd15baf2a906f0d2b10e37", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9daf704a671ae3cd3f590a431ea701633cea7e056edd15baf2a906f0d2b10e37", kill_on_drop: false }` [INFO] [stdout] 9daf704a671ae3cd3f590a431ea701633cea7e056edd15baf2a906f0d2b10e37