[INFO] fetching crate pros-simulator 0.5.0... [INFO] checking pros-simulator-0.5.0 against try#65132f36b923285d5da381c2fbafee6ce899e841 for pr-132712-1 [INFO] extracting crate pros-simulator 0.5.0 into /workspace/builds/worker-5-tc2/source [INFO] validating manifest of crates.io crate pros-simulator 0.5.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 pros-simulator 0.5.0 [INFO] finished tweaking crates.io crate pros-simulator 0.5.0 [INFO] tweaked toml for crates.io crate pros-simulator 0.5.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 217 packages to latest compatible versions [INFO] [stderr] Adding crossterm v0.27.0 (available: v0.28.1) [INFO] [stderr] Adding pros-sys v0.4.3 (available: v0.8.0) [INFO] [stderr] Adding ratatui v0.24.0 (available: v0.29.0) [INFO] [stderr] Adding tui-big-text v0.2.1 (available: v0.7.0) [INFO] [stderr] Adding tui-logger v0.10.1 (available: v0.14.0) [INFO] [stderr] Adding wasmtime v16.0.0 (available: v27.0.0) [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] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [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] 3763ec83928547309d44a75729ad0884f0b044fb773662bd5e96bff103771293 [INFO] running `Command { std: "docker" "start" "-a" "3763ec83928547309d44a75729ad0884f0b044fb773662bd5e96bff103771293", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3763ec83928547309d44a75729ad0884f0b044fb773662bd5e96bff103771293", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3763ec83928547309d44a75729ad0884f0b044fb773662bd5e96bff103771293", kill_on_drop: false }` [INFO] [stdout] 3763ec83928547309d44a75729ad0884f0b044fb773662bd5e96bff103771293 [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] a0012c0941f4d1f426209e918afb03e5d5ecb8e79e3e026f0237bab09572d9be [INFO] running `Command { std: "docker" "start" "-a" "a0012c0941f4d1f426209e918afb03e5d5ecb8e79e3e026f0237bab09572d9be", 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] Checking foldhash v0.1.3 [INFO] [stderr] Checking allocator-api2 v0.2.20 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling cranelift-isle v0.103.0 [INFO] [stderr] Compiling cranelift-codegen-shared v0.103.0 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Checking slice-group-by v0.3.1 [INFO] [stderr] Compiling syn v2.0.89 [INFO] [stderr] Checking ahash v0.8.11 [INFO] [stderr] Checking arbitrary v1.4.1 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Checking bumpalo v3.16.0 [INFO] [stderr] Compiling rustix v0.38.41 [INFO] [stderr] Checking linux-raw-sys v0.4.14 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Compiling cranelift-codegen-meta v0.103.0 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking wasmtime-asm-macros v16.0.0 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Compiling cpp_demangle v0.3.5 [INFO] [stderr] Checking wasm-encoder v0.38.1 [INFO] [stderr] Checking memoffset v0.9.1 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking hashbrown v0.13.2 [INFO] [stderr] Checking wasmtime-wmemcheck v16.0.0 [INFO] [stderr] Compiling indoc v2.0.5 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking hashbrown v0.15.1 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking sptr v0.3.2 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking cassowary v0.3.0 [INFO] [stderr] Checking regex-syntax v0.6.29 [INFO] [stderr] Compiling pros-sys v0.4.3 [INFO] [stderr] Checking signal-hook-mio v0.2.4 [INFO] [stderr] Compiling derive_builder_core v0.12.0 [INFO] [stderr] Checking wasmtime-jit-icache-coherence v16.0.0 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking crossterm v0.27.0 [INFO] [stderr] Checking regalloc2 v0.9.3 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking cranelift-control v0.103.0 [INFO] [stderr] Compiling stability v0.1.1 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Checking lru v0.12.5 [INFO] [stderr] Checking font8x8 v0.3.1 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Compiling derive_builder_macro v0.12.0 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking derive_builder v0.12.0 [INFO] [stderr] Compiling cranelift-codegen v0.103.0 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking memfd v0.6.4 [INFO] [stderr] Checking matchers v0.1.0 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Compiling serde_derive v1.0.215 [INFO] [stderr] Compiling wasmtime-versioned-export-macros v16.0.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling strum_macros v0.25.3 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Compiling snafu-derive v0.8.5 [INFO] [stderr] Compiling wasmtime-fiber v16.0.0 [INFO] [stderr] Compiling wasmtime-runtime v16.0.0 [INFO] [stderr] Checking tokio v1.41.1 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking strum v0.25.0 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking ratatui v0.24.0 [INFO] [stderr] Checking ratatui v0.25.0 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Checking snafu v0.8.5 [INFO] [stderr] Checking tui-big-text v0.2.1 [INFO] [stderr] Checking tui-logger v0.10.1 [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 indexmap v2.6.0 [INFO] [stderr] Checking cranelift-entity v0.103.0 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking serde_json v1.0.133 [INFO] [stderr] Checking pros-simulator-interface v0.5.0 [INFO] [stderr] Checking cranelift-bforest v0.103.0 [INFO] [stderr] Checking gimli v0.28.1 [INFO] [stderr] Checking wasmparser v0.118.2 [INFO] [stderr] Checking object v0.32.2 [INFO] [stderr] Checking addr2line v0.21.0 [INFO] [stderr] Checking wasmtime-types v16.0.0 [INFO] [stderr] Checking wasmtime-environ v16.0.0 [INFO] [stderr] Checking wasmtime-jit v16.0.0 [INFO] [stderr] Checking cranelift-native v0.103.0 [INFO] [stderr] Checking cranelift-frontend v0.103.0 [INFO] [stderr] Checking wasmtime-cranelift-shared v16.0.0 [INFO] [stderr] Checking cranelift-wasm v0.103.0 [INFO] [stderr] Checking wasmtime-cranelift v16.0.0 [INFO] [stderr] Checking wasmtime v16.0.0 [INFO] [stderr] Checking pros-simulator v0.5.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `pros_simulator` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/api/generic_io.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0107]: method takes 2 generic arguments but 3 generic arguments were supplied [INFO] [stderr] --> src/api/generic_io.rs:30:12 [INFO] [stderr] | [INFO] [stderr] 30 | linker.func_wrap1_async::<_, (), _>("env", "sim_abort", |caller: Caller<'_, Host>, msg: u32| { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ --- help: remove the unnecessary generic argument [INFO] [stderr] | | [INFO] [stderr] | expected 2 generic arguments [INFO] [stderr] | [INFO] [stderr] note: method defined here, with 2 generic parameters: `A1`, `R` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-16.0.0/src/linker.rs:560:5 [INFO] [stderr] | [INFO] [stderr] 560 | for_each_function_signature!(generate_wrap_async_func); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = note: `impl Trait` cannot be explicitly specified as a generic argument [INFO] [stderr] = note: this error originates in the macro `generate_wrap_async_func` which comes from the expansion of the macro `for_each_function_signature` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0107]: method takes 2 generic arguments but 3 generic arguments were supplied [INFO] [stderr] --> src/api/generic_io.rs:50:12 [INFO] [stderr] | [INFO] [stderr] 50 | linker.func_wrap1_async::<_, (), _>("env", "exit", |caller: Caller<'_, Host>, code: i32| { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ --- help: remove the unnecessary generic argument [INFO] [stderr] | | [INFO] [stderr] | expected 2 generic arguments [INFO] [stderr] | [INFO] [stderr] note: method defined here, with 2 generic parameters: `A1`, `R` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-16.0.0/src/linker.rs:560:5 [INFO] [stderr] | [INFO] [stderr] 560 | for_each_function_signature!(generate_wrap_async_func); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = note: `impl Trait` cannot be explicitly specified as a generic argument [INFO] [stderr] = note: this error originates in the macro `generate_wrap_async_func` which comes from the expansion of the macro `for_each_function_signature` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0107`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/api/generic_io.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn configure_generic_io_api(linker: &mut Linker) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! [INFO] [stdout] = note: for more information, see issue #123748 [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: WasmTy` will fail [INFO] [stdout] --> src/api/generic_io.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | linker.func_wrap1_async("env", "sim_abort", |caller: Caller<'_, Host>, msg: u32| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn dependency-on-unit-never-type-fallback` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use `()` annotations to avoid fallback changes [INFO] [stdout] | [INFO] [stdout] 30 ~ linker.func_wrap1_async::<_, (), _>("env", "sim_abort", |caller: Caller<'_, Host>, msg: u32| { [INFO] [stdout] 31 | Box::new(async move { [INFO] [stdout] ... [INFO] [stdout] 49 | [INFO] [stdout] 50 ~ linker.func_wrap1_async::<_, (), _>("env", "exit", |caller: Caller<'_, Host>, code: i32| { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/api/rtos_facilities.rs:257:20 [INFO] [stdout] | [INFO] [stdout] 257 | if let Some(task) = task { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^---- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/api/rtos_facilities.rs:273:17 [INFO] [stdout] | [INFO] [stdout] 273 | } else { [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 257 ~ match task { Some(task) => { [INFO] [stdout] 258 | let task = task.lock().await; [INFO] [stdout] ... [INFO] [stdout] 272 | Ok(ptr) [INFO] [stdout] 273 ~ } _ => { [INFO] [stdout] 274 | Ok(0) [INFO] [stdout] 275 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl futures_util::Future>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/host/task.rs:225:32 [INFO] [stdout] | [INFO] [stdout] 225 | pub fn start(&mut self) -> impl Future> { [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/host/task.rs:225:18 [INFO] [stdout] | [INFO] [stdout] 225 | pub fn start(&mut self) -> impl Future> { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [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] 225 | pub fn start(&mut self) -> impl Future> + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/host/task.rs:437:34 [INFO] [stdout] | [INFO] [stdout] 437 | let current_task_id = if let Some(task) = &self.current_task { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^----------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/host/task.rs:439:9 [INFO] [stdout] | [INFO] [stdout] 439 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 437 ~ let current_task_id = match &self.current_task { Some(task) => { [INFO] [stdout] 438 | task.lock().await.id [INFO] [stdout] 439 ~ } _ => { [INFO] [stdout] 440 | 0 [INFO] [stdout] 441 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/host/task.rs:482:16 [INFO] [stdout] | [INFO] [stdout] 482 | if let Poll::Ready(result) = result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/host/task.rs:486:13 [INFO] [stdout] | [INFO] [stdout] 486 | } else if task.marked_for_delete { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 482 ~ match result { Poll::Ready(result) => { [INFO] [stdout] 483 | task.marked_for_delete = true; [INFO] [stdout] 484 | task.state = TaskState::Finished; [INFO] [stdout] 485 | result?; [INFO] [stdout] 486 ~ } _ => if task.marked_for_delete { [INFO] [stdout] 487 | task.state = TaskState::Deleted; [INFO] [stdout] 488 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/host/task.rs:511:12 [INFO] [stdout] | [INFO] [stdout] 511 | if let Some(task) = self.pool.get(&task_id) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^---------^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/host/task.rs:514:9 [INFO] [stdout] | [INFO] [stdout] 514 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 511 ~ match self.pool.get(&task_id) { Some(task) => { [INFO] [stdout] 512 | let task = task.lock().await; [INFO] [stdout] 513 | Some(task.state) [INFO] [stdout] 514 ~ } _ => { [INFO] [stdout] 515 | None [INFO] [stdout] 516 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/stream.rs:63:16 [INFO] [stdout] | [INFO] [stdout] 63 | if let Err(e) = res { [INFO] [stdout] | ^^^^^^^^^^^^^--- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/stream.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 63 ~ match res { Err(e) => { [INFO] [stdout] 64 | tx.lock().unwrap().send(Err(e)).unwrap(); [INFO] [stdout] 65 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/stream.rs:82:16 [INFO] [stdout] | [INFO] [stdout] 82 | if let Poll::Ready(res) = sim.future.poll_unpin(cx) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/stream.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 82 ~ match sim.future.poll_unpin(cx) { Poll::Ready(res) => { [INFO] [stdout] 83 | if let Err(err) = res { [INFO] [stdout] ... [INFO] [stdout] 86 | sim.finished = true; [INFO] [stdout] 87 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: relative drop order changing in Rust 2024 [INFO] [stdout] --> src/host/task.rs:230:51 [INFO] [stdout] | [INFO] [stdout] 229 | let mut store = store.lock().await; [INFO] [stdout] | --------- [INFO] [stdout] | | [INFO] [stdout] | `store` calls a custom destructor [INFO] [stdout] | `store` will be dropped later as of Edition 2024 [INFO] [stdout] 230 | task_impl.call_async(&mut *store, ()).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value will be stored in a temporary; let us call it `#1` [INFO] [stdout] | up until Edition 2021 `#1` is dropped last but will be dropped earlier in Edition 2024 [INFO] [stdout] 231 | } [INFO] [stdout] | - now the temporary value is dropped here, before the local variables in the block or statement [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] note: `store` invokes this custom destructor [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.41.1/src/sync/mutex.rs:963:1 [INFO] [stdout] | [INFO] [stdout] 963 | impl Drop for MutexGuard<'_, T> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages [INFO] [stdout] = note: `--force-warn tail-expr-drop-order` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: relative drop order changing in Rust 2024 [INFO] [stdout] --> src/host/thread_local.rs:99:34 [INFO] [stdout] | [INFO] [stdout] 85 | #[async_trait] [INFO] [stdout] | - now the temporary value is dropped here, before the local variables in the block or statement [INFO] [stdout] ... [INFO] [stdout] 92 | let task = self [INFO] [stdout] | ---- [INFO] [stdout] | | [INFO] [stdout] | `task` calls a custom destructor [INFO] [stdout] | `task` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 98 | let mut task = task.lock().await; [INFO] [stdout] | -------- [INFO] [stdout] | | [INFO] [stdout] | this value will be stored in a temporary; let us call it `#1` [INFO] [stdout] | `#1` will be dropped later as of Edition 2024 [INFO] [stdout] 99 | task.local_storage(self).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value will be stored in a temporary; let us call it `#2` [INFO] [stdout] | up until Edition 2021 `#2` is dropped last but will be dropped earlier in Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] note: `task` invokes this custom destructor [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-16.0.0/src/store.rs:2210:1 [INFO] [stdout] | [INFO] [stdout] 2210 | impl Drop for Store { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `#1` invokes this custom destructor [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.41.1/src/sync/mutex.rs:963:1 [INFO] [stdout] | [INFO] [stdout] 963 | impl Drop for MutexGuard<'_, T> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: relative drop order changing in Rust 2024 [INFO] [stdout] --> src/system/system_daemon.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 46 | let mut pool = caller.tasks_lock().await; [INFO] [stdout] | -------- [INFO] [stdout] | | [INFO] [stdout] | `pool` calls a custom destructor [INFO] [stdout] | `pool` will be dropped later as of Edition 2024 [INFO] [stdout] 47 | let init_options = TaskOptions::new_global(&mut pool, host, entrypoint)?.name(name); [INFO] [stdout] 48 | pool.spawn(init_options, &host.module(), &host.interface()) [INFO] [stdout] | ------------- ---------------- [INFO] [stdout] | | | [INFO] [stdout] | | this value will be stored in a temporary; let us call it `#2` [INFO] [stdout] | | up until Edition 2021 `#2` is dropped last but will be dropped earlier in Edition 2024 [INFO] [stdout] | this value will be stored in a temporary; let us call it `#3` [INFO] [stdout] | up until Edition 2021 `#3` is dropped last but will be dropped earlier in Edition 2024 [INFO] [stdout] 49 | .await [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value will be stored in a temporary; let us call it `#1` [INFO] [stdout] | up until Edition 2021 `#1` is dropped last but will be dropped earlier in Edition 2024 [INFO] [stdout] 50 | } [INFO] [stdout] | - now the temporary value is dropped here, before the local variables in the block or statement [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] note: `#1` invokes this custom destructor [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-16.0.0/src/store.rs:2210:1 [INFO] [stdout] | [INFO] [stdout] 2210 | impl Drop for Store { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#2` may invoke a custom destructor because it contains a trait object [INFO] [stdout] note: `#3` invokes this custom destructor [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-16.0.0/src/module.rs:1106:1 [INFO] [stdout] | [INFO] [stdout] 1106 | impl Drop for ModuleInner { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `pool` invokes this custom destructor [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.41.1/src/sync/mutex.rs:963:1 [INFO] [stdout] | [INFO] [stdout] 963 | impl Drop for MutexGuard<'_, T> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `pros_simulator` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/api/generic_io.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/api/generic_io.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn configure_generic_io_api(linker: &mut Linker) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! [INFO] [stdout] = note: for more information, see issue #123748 [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: WasmTy` will fail [INFO] [stdout] --> src/api/generic_io.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | linker.func_wrap1_async("env", "sim_abort", |caller: Caller<'_, Host>, msg: u32| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn dependency-on-unit-never-type-fallback` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use `()` annotations to avoid fallback changes [INFO] [stdout] | [INFO] [stdout] 30 ~ linker.func_wrap1_async::<_, (), _>("env", "sim_abort", |caller: Caller<'_, Host>, msg: u32| { [INFO] [stdout] 31 | Box::new(async move { [INFO] [stdout] ... [INFO] [stdout] 49 | [INFO] [stdout] 50 ~ linker.func_wrap1_async::<_, (), _>("env", "exit", |caller: Caller<'_, Host>, code: i32| { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0107]: method takes 2 generic arguments but 3 generic arguments were supplied [INFO] [stderr] --> src/api/generic_io.rs:30:12 [INFO] [stderr] | [INFO] [stderr] 30 | linker.func_wrap1_async::<_, (), _>("env", "sim_abort", |caller: Caller<'_, Host>, msg: u32| { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ --- help: remove the unnecessary generic argument [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/api/rtos_facilities.rs:257:20 [INFO] [stdout] | [INFO] [stdout] 257 | if let Some(task) = task { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^---- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/api/rtos_facilities.rs:273:17 [INFO] [stdout] | [INFO] [stdout] 273 | } else { [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 257 ~ match task { Some(task) => { [INFO] [stdout] 258 | let task = task.lock().await; [INFO] [stdout] ... [INFO] [stdout] 272 | Ok(ptr) [INFO] [stdout] 273 ~ } _ => { [INFO] [stdout] 274 | Ok(0) [INFO] [stdout] 275 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | | [INFO] [stdout] warning: `impl futures_util::Future>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/host/task.rs:225:32 [INFO] [stdout] | [INFO] [stdout] 225 | pub fn start(&mut self) -> impl Future> { [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/host/task.rs:225:18 [INFO] [stdout] | [INFO] [stdout] 225 | pub fn start(&mut self) -> impl Future> { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [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] 225 | pub fn start(&mut self) -> impl Future> + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | expected 2 generic arguments [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/host/task.rs:437:34 [INFO] [stdout] | [INFO] [stdout] 437 | let current_task_id = if let Some(task) = &self.current_task { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^----------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/host/task.rs:439:9 [INFO] [stdout] | [INFO] [stdout] 439 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 437 ~ let current_task_id = match &self.current_task { Some(task) => { [INFO] [stdout] 438 | task.lock().await.id [INFO] [stdout] 439 ~ } _ => { [INFO] [stdout] 440 | 0 [INFO] [stdout] 441 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/host/task.rs:482:16 [INFO] [stdout] | [INFO] [stdout] 482 | if let Poll::Ready(result) = result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/host/task.rs:486:13 [INFO] [stdout] | [INFO] [stdout] 486 | } else if task.marked_for_delete { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 482 ~ match result { Poll::Ready(result) => { [INFO] [stdout] 483 | task.marked_for_delete = true; [INFO] [stdout] 484 | task.state = TaskState::Finished; [INFO] [stdout] 485 | result?; [INFO] [stdout] 486 ~ } _ => if task.marked_for_delete { [INFO] [stdout] 487 | task.state = TaskState::Deleted; [INFO] [stdout] 488 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] note: method defined here, with 2 generic parameters: `A1`, `R` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-16.0.0/src/linker.rs:560:5 [INFO] [stderr] | [INFO] [stderr] 560 | for_each_function_signature!(generate_wrap_async_func); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = note: `impl Trait` cannot be explicitly specified as a generic argument [INFO] [stderr] = note: this error originates in the macro `generate_wrap_async_func` which comes from the expansion of the macro `for_each_function_signature` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0107]: method takes 2 generic arguments but 3 generic arguments were supplied [INFO] [stderr] --> src/api/generic_io.rs:50:12 [INFO] [stderr] | [INFO] [stderr] 50 | linker.func_wrap1_async::<_, (), _>("env", "exit", |caller: Caller<'_, Host>, code: i32| { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ --- help: remove the unnecessary generic argument [INFO] [stderr] | | [INFO] [stderr] | expected 2 generic arguments [INFO] [stderr] | [INFO] [stderr] note: method defined here, with 2 generic parameters: `A1`, `R` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-16.0.0/src/linker.rs:560:5 [INFO] [stderr] | [INFO] [stderr] 560 | for_each_function_signature!(generate_wrap_async_func); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = note: `impl Trait` cannot be explicitly specified as a generic argument [INFO] [stderr] = note: this error originates in the macro `generate_wrap_async_func` which comes from the expansion of the macro `for_each_function_signature` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/host/task.rs:511:12 [INFO] [stdout] | [INFO] [stdout] 511 | if let Some(task) = self.pool.get(&task_id) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^---------^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/host/task.rs:514:9 [INFO] [stdout] | [INFO] [stdout] 514 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 511 ~ match self.pool.get(&task_id) { Some(task) => { [INFO] [stdout] 512 | let task = task.lock().await; [INFO] [stdout] 513 | Some(task.state) [INFO] [stdout] 514 ~ } _ => { [INFO] [stdout] 515 | None [INFO] [stdout] 516 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0107`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/stream.rs:63:16 [INFO] [stdout] | [INFO] [stdout] 63 | if let Err(e) = res { [INFO] [stdout] | ^^^^^^^^^^^^^--- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/stream.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 63 ~ match res { Err(e) => { [INFO] [stdout] 64 | tx.lock().unwrap().send(Err(e)).unwrap(); [INFO] [stdout] 65 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/stream.rs:82:16 [INFO] [stdout] | [INFO] [stdout] 82 | if let Poll::Ready(res) = sim.future.poll_unpin(cx) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/stream.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 82 ~ match sim.future.poll_unpin(cx) { Poll::Ready(res) => { [INFO] [stdout] 83 | if let Err(err) = res { [INFO] [stdout] ... [INFO] [stdout] 86 | sim.finished = true; [INFO] [stdout] 87 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 23.28s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking pros-simulator v0.5.0 (/tmp/fixit) [INFO] [stdout] error[E0597]: `tasks` does not live long enough [INFO] [stdout] --> src/host/task.rs:461:28 [INFO] [stdout] | [INFO] [stdout] 455 | let mut tasks = host.tasks_lock().await; [INFO] [stdout] | --------- binding `tasks` declared here [INFO] [stdout] ... [INFO] [stdout] 461 | let mut task = tasks.current_lock().await; [INFO] [stdout] | ^^^^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 504 | } [INFO] [stdout] | - `tasks` dropped here while still borrowed [INFO] [stdout] 505 | } [INFO] [stdout] | - borrow might be used here, when `futures` is dropped and runs the destructor for type `HashMap> + std::marker::Send>>>` [INFO] [stdout] | [INFO] [stdout] = note: values in a scope are dropped in the opposite order they are defined [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `tasks` does not live long enough [INFO] [stdout] --> src/host/task.rs:461:28 [INFO] [stdout] | [INFO] [stdout] 455 | let mut tasks = host.tasks_lock().await; [INFO] [stdout] | --------- binding `tasks` declared here [INFO] [stdout] ... [INFO] [stdout] 461 | let mut task = tasks.current_lock().await; [INFO] [stdout] | ^^^^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 504 | } [INFO] [stdout] | - `tasks` dropped here while still borrowed [INFO] [stdout] 505 | } [INFO] [stdout] | - borrow might be used here, when `futures` is dropped and runs the destructor for type `HashMap> + std::marker::Send>>>` [INFO] [stdout] | [INFO] [stdout] = note: values in a scope are dropped in the opposite order they are defined [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `task` does not live long enough [INFO] [stdout] --> src/host/task.rs:463:71 [INFO] [stdout] | [INFO] [stdout] 461 | let mut task = tasks.current_lock().await; [INFO] [stdout] | -------- binding `task` declared here [INFO] [stdout] 462 | let id = task.id(); [INFO] [stdout] 463 | let future = futures.entry(id).or_insert_with(|| Box::pin(task.start())); [INFO] [stdout] | -- ^^^^ borrowed value does not live long enough [INFO] [stdout] | | [INFO] [stdout] | value captured here [INFO] [stdout] ... [INFO] [stdout] 504 | } [INFO] [stdout] | - `task` dropped here while still borrowed [INFO] [stdout] 505 | } [INFO] [stdout] | - borrow might be used here, when `futures` is dropped and runs the destructor for type `HashMap> + std::marker::Send>>>` [INFO] [stdout] | [INFO] [stdout] = note: values in a scope are dropped in the opposite order they are defined [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `task` does not live long enough [INFO] [stdout] --> src/host/task.rs:463:71 [INFO] [stdout] | [INFO] [stdout] 461 | let mut task = tasks.current_lock().await; [INFO] [stdout] | -------- binding `task` declared here [INFO] [stdout] 462 | let id = task.id(); [INFO] [stdout] 463 | let future = futures.entry(id).or_insert_with(|| Box::pin(task.start())); [INFO] [stdout] | -- ^^^^ borrowed value does not live long enough [INFO] [stdout] | | [INFO] [stdout] | value captured here [INFO] [stdout] ... [INFO] [stdout] 504 | } [INFO] [stdout] | - `task` dropped here while still borrowed [INFO] [stdout] 505 | } [INFO] [stdout] | - borrow might be used here, when `futures` is dropped and runs the destructor for type `HashMap> + std::marker::Send>>>` [INFO] [stdout] | [INFO] [stdout] = note: values in a scope are dropped in the opposite order they are defined [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `task` because it is borrowed [INFO] [stdout] --> src/host/task.rs:464:18 [INFO] [stdout] | [INFO] [stdout] 463 | let future = futures.entry(id).or_insert_with(|| Box::pin(task.start())); [INFO] [stdout] | -- ---- borrow occurs due to use in closure [INFO] [stdout] | | [INFO] [stdout] | borrow of `task` occurs here [INFO] [stdout] 464 | drop(task); [INFO] [stdout] | ^^^^ move out of `task` occurs here [INFO] [stdout] ... [INFO] [stdout] 467 | let result = futures::poll!(future); [INFO] [stdout] | ------ borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `task` because it is borrowed [INFO] [stdout] --> src/host/task.rs:464:18 [INFO] [stdout] | [INFO] [stdout] 463 | let future = futures.entry(id).or_insert_with(|| Box::pin(task.start())); [INFO] [stdout] | -- ---- borrow occurs due to use in closure [INFO] [stdout] | | [INFO] [stdout] | borrow of `task` occurs here [INFO] [stdout] 464 | drop(task); [INFO] [stdout] | ^^^^ move out of `task` occurs here [INFO] [stdout] ... [INFO] [stdout] 467 | let result = futures::poll!(future); [INFO] [stdout] | ------ borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `tasks` because it is borrowed [INFO] [stdout] --> src/host/task.rs:465:18 [INFO] [stdout] | [INFO] [stdout] 455 | let mut tasks = host.tasks_lock().await; [INFO] [stdout] | --------- binding `tasks` declared here [INFO] [stdout] ... [INFO] [stdout] 461 | let mut task = tasks.current_lock().await; [INFO] [stdout] | ----- borrow of `tasks` occurs here [INFO] [stdout] ... [INFO] [stdout] 465 | drop(tasks); [INFO] [stdout] | ^^^^^ move out of `tasks` occurs here [INFO] [stdout] 466 | [INFO] [stdout] 467 | let result = futures::poll!(future); [INFO] [stdout] | ------ borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `tasks` because it is borrowed [INFO] [stdout] --> src/host/task.rs:465:18 [INFO] [stdout] | [INFO] [stdout] 455 | let mut tasks = host.tasks_lock().await; [INFO] [stdout] | --------- binding `tasks` declared here [INFO] [stdout] ... [INFO] [stdout] 461 | let mut task = tasks.current_lock().await; [INFO] [stdout] | ----- borrow of `tasks` occurs here [INFO] [stdout] ... [INFO] [stdout] 465 | drop(tasks); [INFO] [stdout] | ^^^^^ move out of `tasks` occurs here [INFO] [stdout] 466 | [INFO] [stdout] 467 | let result = futures::poll!(future); [INFO] [stdout] | ------ borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: WasmRet` is not satisfied [INFO] [stdout] --> src/api/generic_io.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | linker.func_wrap1_async("env", "sim_abort", |caller: Caller<'_, Host>, msg: u32| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the trait `WasmTy` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `WasmTy`: [INFO] [stdout] Option [INFO] [stdout] Option [INFO] [stdout] f32 [INFO] [stdout] f64 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] u32 [INFO] [stdout] u64 [INFO] [stdout] wasmtime::V128 [INFO] [stdout] = note: required for `!` to implement `WasmRet` [INFO] [stdout] note: required by a bound in `Linker::::func_wrap1_async` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-16.0.0/src/linker.rs:560:5 [INFO] [stdout] | [INFO] [stdout] 560 | for_each_function_signature!(generate_wrap_async_func); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | required by a bound in this associated function [INFO] [stdout] | required by this bound in `Linker::::func_wrap1_async` [INFO] [stdout] = note: this error originates in the macro `generate_wrap_async_func` which comes from the expansion of the macro `for_each_function_signature` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: WasmRet` is not satisfied [INFO] [stdout] --> src/api/generic_io.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | linker.func_wrap1_async("env", "sim_abort", |caller: Caller<'_, Host>, msg: u32| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the trait `WasmTy` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `WasmTy`: [INFO] [stdout] Option [INFO] [stdout] Option [INFO] [stdout] f32 [INFO] [stdout] f64 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] u32 [INFO] [stdout] u64 [INFO] [stdout] wasmtime::V128 [INFO] [stdout] = note: required for `!` to implement `WasmRet` [INFO] [stdout] note: required by a bound in `Linker::::func_wrap1_async` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-16.0.0/src/linker.rs:560:5 [INFO] [stdout] | [INFO] [stdout] 560 | for_each_function_signature!(generate_wrap_async_func); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | required by a bound in this associated function [INFO] [stdout] | required by this bound in `Linker::::func_wrap1_async` [INFO] [stdout] = note: this error originates in the macro `generate_wrap_async_func` which comes from the expansion of the macro `for_each_function_signature` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0505, E0597. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0505, E0597. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `pros-simulator` (lib) due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `pros-simulator` (lib test) due to 5 previous errors [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" "a0012c0941f4d1f426209e918afb03e5d5ecb8e79e3e026f0237bab09572d9be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a0012c0941f4d1f426209e918afb03e5d5ecb8e79e3e026f0237bab09572d9be", kill_on_drop: false }` [INFO] [stdout] a0012c0941f4d1f426209e918afb03e5d5ecb8e79e3e026f0237bab09572d9be