[INFO] fetching crate yew-scanner 0.3.0... [INFO] checking yew-scanner-0.3.0 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] extracting crate yew-scanner 0.3.0 into /workspace/builds/worker-6-tc2/source [INFO] validating manifest of crates.io crate yew-scanner 0.3.0 on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate yew-scanner 0.3.0 [INFO] finished tweaking crates.io crate yew-scanner 0.3.0 [INFO] tweaked toml for crates.io crate yew-scanner 0.3.0 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 154 packages to latest compatible versions [INFO] [stderr] Adding addr2line v0.22.0 (latest: v0.24.1) [INFO] [stderr] Adding bitflags v1.3.2 (latest: v2.6.0) [INFO] [stderr] Adding gimli v0.29.0 (latest: v0.31.0) [INFO] [stderr] Adding gloo v0.8.1 (latest: v0.11.0) [INFO] [stderr] Adding gloo v0.10.0 (latest: v0.11.0) [INFO] [stderr] Adding gloo-console v0.2.3 (latest: v0.3.0) [INFO] [stderr] Adding gloo-dialogs v0.1.1 (latest: v0.2.0) [INFO] [stderr] Adding gloo-events v0.1.2 (latest: v0.2.0) [INFO] [stderr] Adding gloo-file v0.2.3 (latest: v0.3.0) [INFO] [stderr] Adding gloo-history v0.1.5 (latest: v0.2.2) [INFO] [stderr] Adding gloo-net v0.3.1 (latest: v0.6.0) [INFO] [stderr] Adding gloo-net v0.4.0 (latest: v0.6.0) [INFO] [stderr] Adding gloo-render v0.1.1 (latest: v0.2.0) [INFO] [stderr] Adding gloo-storage v0.2.2 (latest: v0.3.0) [INFO] [stderr] Adding gloo-timers v0.2.6 (latest: v0.3.0) [INFO] [stderr] Adding gloo-utils v0.1.7 (latest: v0.2.0) [INFO] [stderr] Adding gloo-worker v0.2.1 (latest: v0.5.0) [INFO] [stderr] Adding gloo-worker v0.4.0 (latest: v0.5.0) [INFO] [stderr] Adding hermit-abi v0.3.9 (latest: v0.4.0) [INFO] [stderr] Adding http v0.2.12 (latest: v1.1.0) [INFO] [stderr] Adding image v0.24.9 (latest: v0.25.2) [INFO] [stderr] Adding implicit-clone v0.4.9 (latest: v0.5.0) [INFO] [stderr] Adding miniz_oxide v0.7.4 (latest: v0.8.0) [INFO] [stderr] Adding proc-macro-crate v1.3.1 (latest: v3.2.0) [INFO] [stderr] Adding rustc_version v0.1.7 (latest: v0.4.1) [INFO] [stderr] Adding semver v0.1.20 (latest: v1.0.23) [INFO] [stderr] Adding serde-wasm-bindgen v0.5.0 (latest: v0.6.5) [INFO] [stderr] Adding syn v1.0.109 (latest: v2.0.77) [INFO] [stderr] Adding toml_edit v0.19.15 (latest: v0.22.20) [INFO] [stderr] Adding wasi v0.11.0+wasi-snapshot-preview1 (latest: v0.13.2+wasi-0.2.1) [INFO] [stderr] Adding winnow v0.5.40 (latest: v0.6.18) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2d985fc9c31289828836b61fda0eb46d5c383a85d7cd627c3a667b6291794879 [INFO] running `Command { std: "docker" "start" "-a" "2d985fc9c31289828836b61fda0eb46d5c383a85d7cd627c3a667b6291794879", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2d985fc9c31289828836b61fda0eb46d5c383a85d7cd627c3a667b6291794879", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2d985fc9c31289828836b61fda0eb46d5c383a85d7cd627c3a667b6291794879", kill_on_drop: false }` [INFO] [stdout] 2d985fc9c31289828836b61fda0eb46d5c383a85d7cd627c3a667b6291794879 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 35680c809893a7472ec19cb7142d0cb3d7a45475427531a5f835be5ed8431e1f [INFO] running `Command { std: "docker" "start" "-a" "35680c809893a7472ec19cb7142d0cb3d7a45475427531a5f835be5ed8431e1f", kill_on_drop: false }` [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.93 [INFO] [stderr] Compiling bumpalo v3.16.0 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling wasm-bindgen v0.2.93 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Checking simd-adler32 v0.3.7 [INFO] [stderr] Compiling indexmap v2.5.0 [INFO] [stderr] Checking adler2 v2.0.0 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling winnow v0.5.40 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Checking miniz_oxide v0.8.0 [INFO] [stderr] Compiling semver v0.1.20 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking miniz_oxide v0.7.4 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking weezl v0.1.8 [INFO] [stderr] Compiling prettyplease v0.2.22 [INFO] [stderr] Checking bytes v1.7.1 [INFO] [stderr] Compiling rustc_version v0.1.7 [INFO] [stderr] Checking jpeg-decoder v0.3.1 [INFO] [stderr] Checking zune-inflate v0.2.54 [INFO] [stderr] Checking fdeflate v0.3.4 [INFO] [stderr] Checking tokio v1.40.0 [INFO] [stderr] Compiling newtype_derive v0.1.6 [INFO] [stderr] Checking half v2.4.1 [INFO] [stderr] Checking bytemuck v1.17.1 [INFO] [stderr] Checking flume v0.11.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking flate2 v1.0.33 [INFO] [stderr] Checking lebe v0.5.2 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Checking bit_field v0.10.2 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Compiling boolinator v2.4.0 [INFO] [stderr] Checking gif v0.13.1 [INFO] [stderr] Checking qoi v0.4.1 [INFO] [stderr] Checking exr v1.72.0 [INFO] [stderr] Checking png v0.17.13 [INFO] [stderr] Checking tiff v0.9.1 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Checking tokio-stream v0.1.15 [INFO] [stderr] Checking image v0.24.9 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.93 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling serde_derive v1.0.209 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling implicit-clone-derive v0.1.1 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling yew-macro v0.21.0 [INFO] [stderr] Checking implicit-clone v0.4.9 [INFO] [stderr] Compiling gloo-worker-macros v0.1.0 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.93 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.93 [INFO] [stderr] Checking bardecoder v0.5.0 [INFO] [stderr] Checking js-sys v0.3.70 [INFO] [stderr] Checking console_error_panic_hook v0.1.7 [INFO] [stderr] Checking serde v1.0.209 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking pinned v0.1.0 [INFO] [stderr] Checking prokio v0.1.0 [INFO] [stderr] Checking serde_json v1.0.127 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking web-sys v0.3.70 [INFO] [stderr] Checking wasm-bindgen-futures v0.4.43 [INFO] [stderr] Checking serde-wasm-bindgen v0.6.5 [INFO] [stderr] Checking gloo-timers v0.3.0 [INFO] [stderr] Checking gloo-utils v0.2.0 [INFO] [stderr] Checking gloo-events v0.2.0 [INFO] [stderr] Checking gloo-dialogs v0.2.0 [INFO] [stderr] Checking gloo-render v0.2.0 [INFO] [stderr] Checking gloo-file v0.3.0 [INFO] [stderr] Checking gloo-console v0.3.0 [INFO] [stderr] Checking gloo-net v0.4.0 [INFO] [stderr] Checking gloo-storage v0.3.0 [INFO] [stderr] Checking gloo-history v0.2.2 [INFO] [stderr] Checking gloo-worker v0.4.0 [INFO] [stderr] Checking gloo v0.10.0 [INFO] [stderr] Checking yew v0.21.0 [INFO] [stderr] Checking yew-scanner v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated method `web_sys::MediaTrackConstraints::facing_mode`: Use `set_facing_mode()` instead. [INFO] [stdout] --> src/lib.rs:47:18 [INFO] [stdout] | [INFO] [stdout] 47 | .facing_mode(&VideoFacingModeEnum::Environment.into()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::MediaTrackConstraints::frame_rate`: Use `set_frame_rate()` instead. [INFO] [stdout] --> src/lib.rs:48:18 [INFO] [stdout] | [INFO] [stdout] 48 | .frame_rate(&4.into()); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::MediaStreamConstraints::video`: Use `set_video()` instead. [INFO] [stdout] --> src/lib.rs:49:25 [INFO] [stdout] | [INFO] [stdout] 49 | constraints.video(&video_constraints); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::MediaTrackConstraints::facing_mode`: Use `set_facing_mode()` instead. [INFO] [stdout] --> src/lib.rs:47:18 [INFO] [stdout] | [INFO] [stdout] 47 | .facing_mode(&VideoFacingModeEnum::Environment.into()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::MediaTrackConstraints::frame_rate`: Use `set_frame_rate()` instead. [INFO] [stdout] --> src/lib.rs:48:18 [INFO] [stdout] | [INFO] [stdout] 48 | .frame_rate(&4.into()); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::MediaStreamConstraints::video`: Use `set_video()` instead. [INFO] [stdout] --> src/lib.rs:49:25 [INFO] [stdout] | [INFO] [stdout] 49 | constraints.video(&video_constraints); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lib.rs:50:19 [INFO] [stdout] | [INFO] [stdout] 44 | let mut constraints = MediaStreamConstraints::new(); [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 45 | let mut video_constraints = MediaTrackConstraints::new(); [INFO] [stdout] | ----------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 50 | match window().navigator().media_devices() { [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: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lib.rs:81:27 [INFO] [stdout] | [INFO] [stdout] 76 | ScannerMessage::CapturedImage(image_src) => { [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 77 | let decoder = default_decoder(); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 78 | let callback = ctx.props().onscan.clone(); [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 79 | let link = ctx.link().clone(); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 80 | ctx.link().send_future(async move { [INFO] [stdout] 81 | match wasm_bindgen_futures::JsFuture::from(image_src.array_buffer()).await { [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: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lib.rs:50:19 [INFO] [stdout] | [INFO] [stdout] 44 | let mut constraints = MediaStreamConstraints::new(); [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 45 | let mut video_constraints = MediaTrackConstraints::new(); [INFO] [stdout] | ----------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 50 | match window().navigator().media_devices() { [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: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lib.rs:81:27 [INFO] [stdout] | [INFO] [stdout] 76 | ScannerMessage::CapturedImage(image_src) => { [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 77 | let decoder = default_decoder(); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 78 | let callback = ctx.props().onscan.clone(); [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 79 | let link = ctx.link().clone(); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 80 | ctx.link().send_future(async move { [INFO] [stdout] 81 | match wasm_bindgen_futures::JsFuture::from(image_src.array_buffer()).await { [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 2 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `yew-scanner` (lib test) due to 3 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `yew-scanner` (lib) due to 3 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "35680c809893a7472ec19cb7142d0cb3d7a45475427531a5f835be5ed8431e1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "35680c809893a7472ec19cb7142d0cb3d7a45475427531a5f835be5ed8431e1f", kill_on_drop: false }` [INFO] [stdout] 35680c809893a7472ec19cb7142d0cb3d7a45475427531a5f835be5ed8431e1f