[INFO] fetching crate wasm-gloo-dom-events 0.2.0... [INFO] checking wasm-gloo-dom-events-0.2.0 against try#65132f36b923285d5da381c2fbafee6ce899e841 for pr-132712-1 [INFO] extracting crate wasm-gloo-dom-events 0.2.0 into /workspace/builds/worker-5-tc2/source [INFO] validating manifest of crates.io crate wasm-gloo-dom-events 0.2.0 on toolchain 65132f36b923285d5da381c2fbafee6ce899e841 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate wasm-gloo-dom-events 0.2.0 [INFO] finished tweaking crates.io crate wasm-gloo-dom-events 0.2.0 [INFO] tweaked toml for crates.io crate wasm-gloo-dom-events 0.2.0 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 94 packages to latest compatible versions [INFO] [stderr] Adding gloo v0.10.0 (available: v0.11.0) [INFO] [stderr] Adding serde-wasm-bindgen v0.5.0 (available: v0.6.5) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4631c83f8f3c362bc6db5394eaa2f0f7f668217054bb84a5a0d6a826e178bd2a [INFO] running `Command { std: "docker" "start" "-a" "4631c83f8f3c362bc6db5394eaa2f0f7f668217054bb84a5a0d6a826e178bd2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4631c83f8f3c362bc6db5394eaa2f0f7f668217054bb84a5a0d6a826e178bd2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4631c83f8f3c362bc6db5394eaa2f0f7f668217054bb84a5a0d6a826e178bd2a", kill_on_drop: false }` [INFO] [stdout] 4631c83f8f3c362bc6db5394eaa2f0f7f668217054bb84a5a0d6a826e178bd2a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3d8600cf49e787a83f87adda1c57377b30f5a620e441edce9207688adc3d2537 [INFO] running `Command { std: "docker" "start" "-a" "3d8600cf49e787a83f87adda1c57377b30f5a620e441edce9207688adc3d2537", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.95 [INFO] [stderr] Compiling bumpalo v3.16.0 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling wasm-bindgen v0.2.95 [INFO] [stderr] Compiling hashbrown v0.15.1 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling winnow v0.5.40 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Compiling syn v2.0.89 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Compiling indexmap v2.6.0 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.95 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling serde_derive v1.0.215 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling pin-project-internal v1.1.7 [INFO] [stderr] Compiling wasm-bindgen-test-macro v0.3.45 [INFO] [stderr] Compiling gloo-worker-macros v0.1.0 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.95 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking pin-project v1.1.7 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.95 [INFO] [stderr] Checking serde v1.0.215 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking pinned v0.1.0 [INFO] [stderr] Checking deferred-future v0.1.5 [INFO] [stderr] Checking serde_json v1.0.133 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking js-sys v0.3.72 [INFO] [stderr] Checking console_error_panic_hook v0.1.7 [INFO] [stderr] Checking web-sys v0.3.72 [INFO] [stderr] Checking wasm-bindgen-futures v0.4.45 [INFO] [stderr] Checking serde-wasm-bindgen v0.6.5 [INFO] [stderr] Checking gloo-timers v0.3.0 [INFO] [stderr] Checking serde-wasm-bindgen v0.5.0 [INFO] [stderr] Checking wasm-bindgen-test v0.3.45 [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-console v0.3.0 [INFO] [stderr] Checking gloo-net v0.4.0 [INFO] [stderr] Checking gloo-storage v0.3.0 [INFO] [stderr] Checking gloo-worker v0.4.0 [INFO] [stderr] Checking gloo-file v0.3.0 [INFO] [stderr] Checking gloo-history v0.2.2 [INFO] [stderr] Checking gloo v0.10.0 [INFO] [stderr] Checking wasm-gloo-dom-events v0.2.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/./browser-animation-frame.rs (1 fix) [INFO] [stderr] Fixed src/./browser-dom-element.rs (1 fix) [INFO] [stderr] Fixed src/./browser-history.rs (1 fix) [INFO] [stdout] warning: `impl FnOnce()` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/./browser-dom-element.rs:36:124 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn on(target: &EventTarget, event_type: impl Into>, options: O, mut callback: CB) -> impl FnOnce() [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/./browser-dom-element.rs:36:35 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn on(target: &EventTarget, event_type: impl Into>, options: O, mut callback: CB) -> impl FnOnce() [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable [INFO] [stdout] --> src/./browser-dom-element.rs:36:61 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn on(target: &EventTarget, event_type: impl Into>, options: O, mut callback: CB) -> impl FnOnce() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 36 | pub fn on>>(target: &EventTarget, event_type: T, options: O, mut callback: CB) -> impl FnOnce() + use [INFO] [stdout] | ++++++++++++++++++++++++++++ ~ ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl FnOnce()` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/./browser-dom-element.rs:36:124 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn on(target: &EventTarget, event_type: impl Into>, options: O, mut callback: CB) -> impl FnOnce() [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/./browser-dom-element.rs:36:35 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn on(target: &EventTarget, event_type: impl Into>, options: O, mut callback: CB) -> impl FnOnce() [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable [INFO] [stdout] --> src/./browser-dom-element.rs:36:61 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn on(target: &EventTarget, event_type: impl Into>, options: O, mut callback: CB) -> impl FnOnce() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 36 | pub fn on>>(target: &EventTarget, event_type: T, options: O, mut callback: CB) -> impl FnOnce() + use [INFO] [stdout] | ++++++++++++++++++++++++++++ ~ ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating tests/case4history.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/suite4browser.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/suite4nodejs.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/case4request_animation_frame.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/case4interval.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/case4timeout.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/case4dom_event.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.52s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking wasm-gloo-dom-events v0.2.0 (/tmp/fixit) [INFO] [stdout] error[E0505]: cannot move out of `button` because it is borrowed [INFO] [stdout] --> tests/case4dom_event.rs:21:39 [INFO] [stdout] | [INFO] [stdout] 13 | let button = create_element::(&document, "button"); [INFO] [stdout] | ------ binding `button` declared here [INFO] [stdout] ... [INFO] [stdout] 17 | let off = EventStream::on(&button, "click", Options::enable_prevent_default(true), move |_event| { [INFO] [stdout] | ------- borrow of `button` occurs here [INFO] [stdout] ... [INFO] [stdout] 21 | wasm_bindgen_futures::spawn_local(async move { [INFO] [stdout] | ^^^^^^^^^^ move out of `button` occurs here [INFO] [stdout] ... [INFO] [stdout] 24 | button.dispatch_event(&event).unwrap_throw(); [INFO] [stdout] | ------ move occurs due to use in coroutine [INFO] [stdout] ... [INFO] [stdout] 29 | } [INFO] [stdout] | - borrow might be used here, when `off` is dropped and runs the destructor for type `impl FnOnce()` [INFO] [stdout] | [INFO] [stdout] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules [INFO] [stdout] --> tests/case4dom_event.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | let off = EventStream::on(&button, "click", Options::enable_prevent_default(true), move |_event| { [INFO] [stdout] | _______________^ [INFO] [stdout] 18 | | defer.borrow_mut().complete("12".to_string()); [INFO] [stdout] 19 | | future::ready(Ok(())) [INFO] [stdout] 20 | | }); [INFO] [stdout] | |______^ [INFO] [stdout] help: if you can modify this crate, add a precise capturing bound to avoid overcapturing: `+ use` [INFO] [stdout] --> /tmp/fixit/src/./browser-dom-element.rs:36:124 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn on(target: &EventTarget, event_type: impl Into>, options: O, mut callback: CB) -> impl FnOnce() [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 17 | let off = EventStream::on(&button.clone(), "click", Options::enable_prevent_default(true), move |_event| { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `button` because it is borrowed [INFO] [stdout] --> tests/case4dom_event.rs:21:39 [INFO] [stdout] | [INFO] [stdout] 13 | let button = create_element::(&document, "button"); [INFO] [stdout] | ------ binding `button` declared here [INFO] [stdout] ... [INFO] [stdout] 17 | let off = EventStream::on(&button, "click", Options::enable_prevent_default(true), move |_event| { [INFO] [stdout] | ------- borrow of `button` occurs here [INFO] [stdout] ... [INFO] [stdout] 21 | wasm_bindgen_futures::spawn_local(async move { [INFO] [stdout] | ^^^^^^^^^^ move out of `button` occurs here [INFO] [stdout] ... [INFO] [stdout] 24 | button.dispatch_event(&event).unwrap_throw(); [INFO] [stdout] | ------ move occurs due to use in coroutine [INFO] [stdout] ... [INFO] [stdout] 29 | } [INFO] [stdout] | - borrow might be used here, when `off` is dropped and runs the destructor for type `impl FnOnce()` [INFO] [stdout] | [INFO] [stdout] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules [INFO] [stdout] --> tests/case4dom_event.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | let off = EventStream::on(&button, "click", Options::enable_prevent_default(true), move |_event| { [INFO] [stdout] | _______________^ [INFO] [stdout] 18 | | defer.borrow_mut().complete("12".to_string()); [INFO] [stdout] 19 | | future::ready(Ok(())) [INFO] [stdout] 20 | | }); [INFO] [stdout] | |______^ [INFO] [stdout] help: if you can modify this crate, add a precise capturing bound to avoid overcapturing: `+ use` [INFO] [stdout] --> /tmp/fixit/src/./browser-dom-element.rs:36:124 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn on(target: &EventTarget, event_type: impl Into>, options: O, mut callback: CB) -> impl FnOnce() [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 17 | let off = EventStream::on(&button.clone(), "click", Options::enable_prevent_default(true), move |_event| { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0505`. [INFO] [stdout] [INFO] [stderr] error: could not compile `wasm-gloo-dom-events` (test "case4dom_event") due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about this error, try `rustc --explain E0505`. [INFO] [stdout] [INFO] [stderr] error: could not compile `wasm-gloo-dom-events` (test "suite4browser") due to 1 previous error [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "3d8600cf49e787a83f87adda1c57377b30f5a620e441edce9207688adc3d2537", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3d8600cf49e787a83f87adda1c57377b30f5a620e441edce9207688adc3d2537", kill_on_drop: false }` [INFO] [stdout] 3d8600cf49e787a83f87adda1c57377b30f5a620e441edce9207688adc3d2537