[INFO] fetching crate opencv-binding-generator 0.91.0... [INFO] checking opencv-binding-generator-0.91.0 against try#7014e13d5becc920d4bea3cd87942c8a13d359bf+rustflags=-Dtail_expr_drop_order for pr-129864 [INFO] extracting crate opencv-binding-generator 0.91.0 into /workspace/builds/worker-2-tc2/source [INFO] validating manifest of crates.io crate opencv-binding-generator 0.91.0 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 opencv-binding-generator 0.91.0 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate opencv-binding-generator 0.91.0 [INFO] tweaked toml for crates.io crate opencv-binding-generator 0.91.0 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate crates.io crate opencv-binding-generator 0.91.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" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 8dc82d8f185f23bc54a6313088585ead4769e1f36fb1f22c313c41fc8399f327 [INFO] running `Command { std: "docker" "start" "-a" "8dc82d8f185f23bc54a6313088585ead4769e1f36fb1f22c313c41fc8399f327", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8dc82d8f185f23bc54a6313088585ead4769e1f36fb1f22c313c41fc8399f327", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8dc82d8f185f23bc54a6313088585ead4769e1f36fb1f22c313c41fc8399f327", kill_on_drop: false }` [INFO] [stdout] 8dc82d8f185f23bc54a6313088585ead4769e1f36fb1f22c313c41fc8399f327 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 244aefb31454cd0023a5bfd06d400465ed8b40c6db6518070d22c63179c70685 [INFO] running `Command { std: "docker" "start" "-a" "244aefb31454cd0023a5bfd06d400465ed8b40c6db6518070d22c63179c70685", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Compiling rustix v0.38.37 [INFO] [stderr] Checking dunce v1.0.5 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking shlex v1.3.0 [INFO] [stderr] Checking linux-raw-sys v0.4.14 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking fastrand v2.1.1 [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking clang v2.0.0 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking tempfile v3.12.0 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Checking opencv-binding-generator v0.91.0 (/opt/rustwide/workdir) [INFO] [stdout] error: this value of type `Cow<'_, TypeRefKind<'_, '_>>` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/class.rs:69:35 [INFO] [stdout] | [INFO] [stdout] 67 | .for_each_field(|field| { [INFO] [stdout] | ----- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 68 | let type_ref = field.type_ref(); [INFO] [stdout] | -------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 69 | ControlFlow::continue_until(!type_ref.kind().is_copy(type_ref.type_hint())) [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 `Cow<'_, TypeRefKind<'_, '_>>` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/class.rs:69:35 [INFO] [stdout] | [INFO] [stdout] 67 | .for_each_field(|field| { [INFO] [stdout] | ----- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 68 | let type_ref = field.type_ref(); [INFO] [stdout] | -------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 69 | ControlFlow::continue_until(!type_ref.kind().is_copy(type_ref.type_hint())) [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 `Cow<'_, TypeRefKind<'_, '_>>` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/field.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 128 | let type_ref = self.type_ref(); [INFO] [stdout] | -------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 129 | match type_ref.kind().canonical().as_ref() { [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 `Cow<'_, TypeRefKind<'_, '_>>` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/field.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 128 | let type_ref = self.type_ref(); [INFO] [stdout] | -------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 129 | match type_ref.kind().canonical().as_ref() { [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 `TypeRefKind<'_, '_>` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/generator.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 32 | fn try_from(value: TypeRef<'tu, 'ge>) -> Result { [INFO] [stdout] | ----- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 33 | match value.kind().into_owned() { [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 `TypeRefKind<'_, '_>` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/generator.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 32 | fn try_from(value: TypeRef<'tu, 'ge>) -> Result { [INFO] [stdout] | ----- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 33 | match value.kind().into_owned() { [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 `RenderLane<'_, '_>` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/type_ref.rs:519:27 [INFO] [stdout] | [INFO] [stdout] 450 | let kind = self.kind(); [INFO] [stdout] | ---- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 519 | .field("render_lane", &self.render_lane()) [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 `Cow<'_, FuncKind<'_, '_>>` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/writer/rust_native/class.rs:376:4 [INFO] [stdout] | [INFO] [stdout] 375 | .filter_map(|f| { [INFO] [stdout] | - these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 376 | f.kind().as_field_accessor().map(|(cls, _)| { [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 `Cow<'_, TypeRefKind<'_, '_>>` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/type_ref/kind.rs:495:3 [INFO] [stdout] | [INFO] [stdout] 494 | fn as_string(type_ref: TypeRef) -> Option<(Dir, StrType)> { [INFO] [stdout] | -------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 495 | type_ref.kind().as_string(type_ref.type_hint()) [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 `RenderLane<'_, '_>` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/type_ref.rs:519:27 [INFO] [stdout] | [INFO] [stdout] 450 | let kind = self.kind(); [INFO] [stdout] | ---- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 519 | .field("render_lane", &self.render_lane()) [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 `Cow<'_, FuncKind<'_, '_>>` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/writer/rust_native/class.rs:376:4 [INFO] [stdout] | [INFO] [stdout] 375 | .filter_map(|f| { [INFO] [stdout] | - these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 376 | f.kind().as_field_accessor().map(|(cls, _)| { [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 `TypeRefKind<'_, '_>` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/writer/rust_native/type_ref.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 53 | let canonical = self.canonical(); [INFO] [stdout] | --------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 54 | let kind = canonical.kind(); [INFO] [stdout] | ---- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 94 | kind => { [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/writer/rust_native/mod.rs:208:9 [INFO] [stdout] | [INFO] [stdout] 187 | fn write_generated_type(types_dir: &Path, typ: &str, prio: u8, safe_id: &str, generator: impl FnOnce() -> String) { [INFO] [stdout] | --------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 193 | let file = OpenOptions::new().create_new(true).write(true).open(&path); [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] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 208 | Err(e) => { [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 `TypeRefKind<'_, '_>` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/writer/rust_native/type_ref.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 53 | let canonical = self.canonical(); [INFO] [stdout] | --------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 54 | let kind = canonical.kind(); [INFO] [stdout] | ---- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 94 | kind => { [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: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `opencv-binding-generator` (lib) due to 8 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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/writer/rust_native/mod.rs:208:9 [INFO] [stdout] | [INFO] [stdout] 187 | fn write_generated_type(types_dir: &Path, typ: &str, prio: u8, safe_id: &str, generator: impl FnOnce() -> String) { [INFO] [stdout] | --------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 193 | let file = OpenOptions::new().create_new(true).write(true).open(&path); [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] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 208 | Err(e) => { [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: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `opencv-binding-generator` (lib test) due to 9 previous errors [INFO] running `Command { std: "docker" "inspect" "244aefb31454cd0023a5bfd06d400465ed8b40c6db6518070d22c63179c70685", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "244aefb31454cd0023a5bfd06d400465ed8b40c6db6518070d22c63179c70685", kill_on_drop: false }` [INFO] [stdout] 244aefb31454cd0023a5bfd06d400465ed8b40c6db6518070d22c63179c70685