[INFO] cloning repository https://github.com/Endercass/whisper [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Endercass/whisper" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEndercass%2Fwhisper", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEndercass%2Fwhisper'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9b7dbc456a7133768c99c4426df9b5df936c4e7c [INFO] checking Endercass/whisper/9b7dbc456a7133768c99c4426df9b5df936c4e7c against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEndercass%2Fwhisper" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Endercass/whisper on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Endercass/whisper [INFO] finished tweaking git repo https://github.com/Endercass/whisper [INFO] tweaked toml for git repo https://github.com/Endercass/whisper written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Endercass/whisper 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 33dfd82f9861f4952650a0e5c69a07185e2542b5cb38b65405789e0587468a32 [INFO] running `Command { std: "docker" "start" "-a" "33dfd82f9861f4952650a0e5c69a07185e2542b5cb38b65405789e0587468a32", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "33dfd82f9861f4952650a0e5c69a07185e2542b5cb38b65405789e0587468a32", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "33dfd82f9861f4952650a0e5c69a07185e2542b5cb38b65405789e0587468a32", kill_on_drop: false }` [INFO] [stdout] 33dfd82f9861f4952650a0e5c69a07185e2542b5cb38b65405789e0587468a32 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "-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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ec9d70f4a6a0f68e5dc29970765343025455f6cde637cd3ce56722f8bda5859c [INFO] running `Command { std: "docker" "start" "-a" "ec9d70f4a6a0f68e5dc29970765343025455f6cde637cd3ce56722f8bda5859c", 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 proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking bytes v1.6.1 [INFO] [stderr] Compiling cc v1.1.6 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling syn v2.0.72 [INFO] [stderr] Compiling prettyplease v0.2.20 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking mio v1.0.1 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Compiling libloading v0.8.5 [INFO] [stderr] Compiling bindgen v0.69.4 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Compiling cfg_aliases v0.2.1 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Checking anstyle-parse v0.2.4 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling which v4.4.2 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Checking cpufeatures v0.2.12 [INFO] [stderr] Checking anstyle v1.0.7 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling cfg_aliases v0.1.1 [INFO] [stderr] Checking is_terminal_polyfill v1.70.0 [INFO] [stderr] Checking anstyle-query v1.1.0 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Checking colorchoice v1.0.1 [INFO] [stderr] Compiling nix v0.28.0 [INFO] [stderr] Checking anstream v0.6.14 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Compiling regex v1.10.5 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking concurrent-queue v2.5.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking nanorand v0.7.0 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking parking v2.2.0 [INFO] [stderr] Checking simdutf8 v0.1.4 [INFO] [stderr] Checking clap_lex v0.7.1 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Checking num_threads v0.1.7 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking clap_builder v4.5.10 [INFO] [stderr] Checking event-listener v5.3.1 [INFO] [stderr] Checking flume v0.11.0 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Checking tokio v1.39.1 [INFO] [stderr] Checking dashmap v5.5.3 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Compiling clap_derive v4.5.8 [INFO] [stderr] Compiling async-trait v0.1.81 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking futures-timer v3.0.3 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking simplelog v0.12.2 [INFO] [stderr] Checking clap v4.5.10 [INFO] [stderr] Compiling lwip v0.3.15 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking http-body-util v0.1.2 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking hyper v1.4.1 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tun2 v1.3.1 [INFO] [stderr] Checking hyper-util v0.1.6 [INFO] [stderr] Checking fastwebsockets v0.8.0 [INFO] [stderr] Checking wisp-mux v5.0.1 [INFO] [stderr] Checking whisper v0.1.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 `whisper` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/ffi.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: expected one of `.`, `;`, `?`, `}`, or an operator, found `=>` [INFO] [stderr] --> src/ffi.rs:80:44 [INFO] [stderr] | [INFO] [stderr] 80 | if let Ok(rt) = build_runtime!() { Ok(rt) => { [INFO] [stderr] | ^^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stderr] | [INFO] [stderr] help: you might have meant to write a "greater than or equal to" comparison [INFO] [stderr] | [INFO] [stderr] 80 | if let Ok(rt) = build_runtime!() { Ok(rt) >= { [INFO] [stderr] | ~~ [INFO] [stderr] [INFO] [stderr] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `=>` [INFO] [stderr] --> src/ffi.rs:119:44 [INFO] [stderr] | [INFO] [stderr] 119 | if let Ok(rt) = build_runtime!() { Ok(rt) => { [INFO] [stderr] | ^^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stderr] | [INFO] [stderr] help: you might have meant to write a "greater than or equal to" comparison [INFO] [stderr] | [INFO] [stderr] 119 | if let Ok(rt) = build_runtime!() { Ok(rt) >= { [INFO] [stderr] | ~~ [INFO] [stderr] [INFO] [stderr] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `=>` [INFO] [stderr] --> src/ffi.rs:151:44 [INFO] [stderr] | [INFO] [stderr] 151 | if let Ok(rt) = build_runtime!() { Ok(rt) => { [INFO] [stderr] | ^^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stderr] | [INFO] [stderr] help: you might have meant to write a "greater than or equal to" comparison [INFO] [stderr] | [INFO] [stderr] 151 | if let Ok(rt) = build_runtime!() { Ok(rt) >= { [INFO] [stderr] | ~~ [INFO] [stderr] [INFO] [stderr] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `=>` [INFO] [stderr] --> src/ffi.rs:185:44 [INFO] [stderr] | [INFO] [stderr] 185 | if let Ok(rt) = build_runtime!() { Ok(rt) => { [INFO] [stderr] | ^^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stderr] | [INFO] [stderr] help: you might have meant to write a "greater than or equal to" comparison [INFO] [stderr] | [INFO] [stderr] 185 | if let Ok(rt) = build_runtime!() { Ok(rt) >= { [INFO] [stderr] | ~~ [INFO] [stderr] [INFO] [stderr] error: macro expansion ends with an incomplete expression: expected expression [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/ffi.rs:50:3 [INFO] [stdout] | [INFO] [stdout] 50 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] = note: `--force-warn unsafe-attr-outside-unsafe` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 50 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/ffi.rs:46:8 [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/ffi.rs:72:3 [INFO] [stdout] | [INFO] [stdout] 72 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 72 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stderr] 46 | match [INFO] [stderr] | -----^ expected expression [INFO] [stderr] | | [INFO] [stderr] | while parsing this `match` expression [INFO] [stderr] [INFO] [stderr] error: macro expansion ends with an incomplete expression: expected expression [INFO] [stderr] --> src/ffi.rs:46:8 [INFO] [stderr] | [INFO] [stderr] 46 | match [INFO] [stderr] | -----^ expected expression [INFO] [stderr] | | [INFO] [stderr] | while parsing this `match` expression [INFO] [stderr] [INFO] [stderr] error: macro expansion ends with an incomplete expression: expected expression [INFO] [stderr] --> src/ffi.rs:46:8 [INFO] [stderr] | [INFO] [stderr] 46 | match [INFO] [stderr] | -----^ expected expression [INFO] [stderr] | | [INFO] [stderr] | while parsing this `match` expression [INFO] [stderr] [INFO] [stderr] error: macro expansion ends with an incomplete expression: expected expression [INFO] [stderr] --> src/ffi.rs:46:8 [INFO] [stderr] | [INFO] [stderr] 46 | match [INFO] [stderr] | -----^ expected expression [INFO] [stderr] | | [INFO] [stderr] | while parsing this `match` expression [INFO] [stderr] [INFO] [stderr] warning: unused import: `ptr` [INFO] [stderr] --> src/ffi.rs:4:2 [INFO] [stderr] | [INFO] [stderr] 4 | ptr, [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `hyper::Uri` [INFO] [stderr] --> src/ffi.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use hyper::Uri; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `info` [INFO] [stderr] --> src/ffi.rs:10:11 [INFO] [stderr] | [INFO] [stderr] 10 | use log::{info, LevelFilter}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Builder` and `unbounded_channel` [INFO] [stderr] --> src/ffi.rs:12:12 [INFO] [stderr] | [INFO] [stderr] 12 | runtime::{Builder, Runtime}, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 13 | sync::{ [INFO] [stderr] 14 | mpsc::{unbounded_channel, UnboundedSender}, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Configuration` and `create_as_async` [INFO] [stderr] --> src/ffi.rs:18:12 [INFO] [stderr] | [INFO] [stderr] 18 | use tun2::{create_as_async, AsyncDevice, Configuration}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `WhisperError`, `WispServer`, `connect_to_wisp`, and `start_whisper` [INFO] [stderr] --> src/ffi.rs:22:2 [INFO] [stderr] | [INFO] [stderr] 22 | start_whisper, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 23 | util::{connect_to_wisp, WhisperError}, [INFO] [stderr] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stderr] 24 | WhisperEvent, WispServer, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 8 previous errors; 6 warnings emitted [INFO] [stderr] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/ffi.rs:117:3 [INFO] [stdout] | [INFO] [stdout] 117 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 117 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/ffi.rs:139:3 [INFO] [stdout] | [INFO] [stdout] 139 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 139 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/ffi.rs:149:3 [INFO] [stdout] | [INFO] [stdout] 149 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 149 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/ffi.rs:183:3 [INFO] [stdout] | [INFO] [stdout] 183 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 183 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lib.rs:166:10 [INFO] [stdout] | [INFO] [stdout] 166 | while let Some(pkt) = stack_rx.next().await { [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/lib.rs:170:4 [INFO] [stdout] | [INFO] [stdout] 170 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lib.rs:167:8 [INFO] [stdout] | [INFO] [stdout] 167 | if let Ok(pkt) = pkt { [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/lib.rs:169:5 [INFO] [stdout] | [INFO] [stdout] 169 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 167 ~ match pkt { Ok(pkt) => { [INFO] [stdout] 168 | tun_tx.send(pkt).await.unwrap(); [INFO] [stdout] 169 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lib.rs:175:10 [INFO] [stdout] | [INFO] [stdout] 175 | while let Some(pkt) = tun_rx.next().await { [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/lib.rs:179:4 [INFO] [stdout] | [INFO] [stdout] 179 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lib.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | if let Ok(pkt) = pkt { [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/lib.rs:178:5 [INFO] [stdout] | [INFO] [stdout] 178 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 176 ~ match pkt { Ok(pkt) => { [INFO] [stdout] 177 | stack_tx.send(pkt).await.unwrap(); [INFO] [stdout] 178 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lib.rs:185:10 [INFO] [stdout] | [INFO] [stdout] 185 | while let Some((mut stream, _src, dest)) = tcp_listener.next().await { [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/lib.rs:202:4 [INFO] [stdout] | [INFO] [stdout] 202 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lib.rs:211:10 [INFO] [stdout] | [INFO] [stdout] 211 | while let Some((pkt, src, dest)) = udp_read.next().await { [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/lib.rs:239:4 [INFO] [stdout] | [INFO] [stdout] 239 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lib.rs:212:8 [INFO] [stdout] | [INFO] [stdout] 212 | if let Some(mut stream) = udp_map.get_mut(&(src, dest)) { [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] 218 | } else if let Ok(wisp_stream) = udp_mux [INFO] [stdout] | _________________________________________________- [INFO] [stdout] 219 | | .client_new_stream(StreamType::Udp, dest.ip().to_string(), dest.port()) [INFO] [stdout] 220 | | .await [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/lib.rs:218:5 [INFO] [stdout] | [INFO] [stdout] 218 | } else if let Ok(wisp_stream) = udp_mux [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/lib.rs:238:5 [INFO] [stdout] | [INFO] [stdout] 238 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 212 ~ match udp_map.get_mut(&(src, dest)) { Some(mut stream) => { [INFO] [stdout] 213 | if let Err(err) = stream.send(pkt).await { [INFO] [stdout] ... [INFO] [stdout] 217 | } [INFO] [stdout] 218 ~ } _ => { match udp_mux [INFO] [stdout] 219 | .client_new_stream(StreamType::Udp, dest.ip().to_string(), dest.port()) [INFO] [stdout] 220 | .await [INFO] [stdout] 221 ~ { Ok(wisp_stream) => { [INFO] [stdout] 222 | info!("connected udp: {:?}", dest); [INFO] [stdout] ... [INFO] [stdout] 237 | }); [INFO] [stdout] 238 ~ } _ => {}}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lib.rs:213:9 [INFO] [stdout] | [INFO] [stdout] 213 | if let Err(err) = stream.send(pkt).await { [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/lib.rs:217:6 [INFO] [stdout] | [INFO] [stdout] 217 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 213 ~ match stream.send(pkt).await { Err(err) => { [INFO] [stdout] 214 | error!("error while sending udp packet to {}: {:?}", dest, err); [INFO] [stdout] 215 | drop(stream); [INFO] [stdout] 216 | udp_map.remove(&(src, dest)); [INFO] [stdout] 217 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lib.rs:232:13 [INFO] [stdout] | [INFO] [stdout] 232 | while let Some(Ok(pkt)) = wisp_r.next().await { [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/lib.rs:234:7 [INFO] [stdout] | [INFO] [stdout] 234 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/ffi.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 46 | RUNTIME.get_or_try_init(|| Builder::new_current_thread().enable_all().build()) [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] 80 | if let Ok(rt) = build_runtime!() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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/ffi.rs:112:2 [INFO] [stdout] | [INFO] [stdout] 112 | } 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] 46 ~ match [INFO] [stdout] 47 | }; [INFO] [stdout] ... [INFO] [stdout] 79 | }; [INFO] [stdout] 80 ~ if let Ok(rt) = build_runtime!() { Ok(rt) => { [INFO] [stdout] 81 | rt.block_on(async { [INFO] [stdout] ... [INFO] [stdout] 111 | .is_ok() [INFO] [stdout] 112 ~ } _ => { [INFO] [stdout] 113 | false [INFO] [stdout] 114 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/ffi.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 46 | RUNTIME.get_or_try_init(|| Builder::new_current_thread().enable_all().build()) [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] 119 | if let Ok(rt) = build_runtime!() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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/ffi.rs:134:2 [INFO] [stdout] | [INFO] [stdout] 134 | } 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] 46 ~ match [INFO] [stdout] 47 | }; [INFO] [stdout] ... [INFO] [stdout] 118 | pub extern "C" fn whisper_get_ws_ip() -> *mut c_char { [INFO] [stdout] 119 ~ if let Ok(rt) = build_runtime!() { Ok(rt) => { [INFO] [stdout] 120 | let ip = rt.block_on(async { [INFO] [stdout] ... [INFO] [stdout] 133 | } [INFO] [stdout] 134 ~ } _ => { [INFO] [stdout] 135 | ptr::null_mut() [INFO] [stdout] 136 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/ffi.rs:122:7 [INFO] [stdout] | [INFO] [stdout] 122 | if let Some(init) = &whisper.0 { [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] 123 | CString::new(init.socketaddr.ip().to_string()).map_err(WhisperError::other) [INFO] [stdout] 124 | } else if let Some(running) = &whisper.1 { [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/ffi.rs:124:4 [INFO] [stdout] | [INFO] [stdout] 124 | } else if let Some(running) = &whisper.1 { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/ffi.rs:126:4 [INFO] [stdout] | [INFO] [stdout] 126 | } 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] 122 ~ match &whisper.0 { Some(init) => { [INFO] [stdout] 123 | CString::new(init.socketaddr.ip().to_string()).map_err(WhisperError::other) [INFO] [stdout] 124 ~ } _ => { match &whisper.1 { Some(running) => { [INFO] [stdout] 125 | CString::new(running.socketaddr.ip().to_string()).map_err(WhisperError::other) [INFO] [stdout] 126 ~ } _ => { [INFO] [stdout] 127 | Err(WhisperError::NotInitialized) [INFO] [stdout] 128 ~ }}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/ffi.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 46 | RUNTIME.get_or_try_init(|| Builder::new_current_thread().enable_all().build()) [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] 151 | if let Ok(rt) = build_runtime!() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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/ffi.rs:178:2 [INFO] [stdout] | [INFO] [stdout] 178 | } 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] 46 ~ match [INFO] [stdout] 47 | }; [INFO] [stdout] ... [INFO] [stdout] 150 | pub extern "C" fn whisper_start() -> bool { [INFO] [stdout] 151 ~ if let Ok(rt) = build_runtime!() { Ok(rt) => { [INFO] [stdout] 152 | rt.block_on(async { [INFO] [stdout] ... [INFO] [stdout] 177 | .is_ok() [INFO] [stdout] 178 ~ } _ => { [INFO] [stdout] 179 | false [INFO] [stdout] 180 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/ffi.rs:185:5 [INFO] [stdout] | [INFO] [stdout] 46 | RUNTIME.get_or_try_init(|| Builder::new_current_thread().enable_all().build()) [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] 185 | if let Ok(rt) = build_runtime!() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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/ffi.rs:200:2 [INFO] [stdout] | [INFO] [stdout] 200 | } 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] 46 ~ match [INFO] [stdout] 47 | }; [INFO] [stdout] ... [INFO] [stdout] 184 | pub extern "C" fn whisper_stop() -> bool { [INFO] [stdout] 185 ~ if let Ok(rt) = build_runtime!() { Ok(rt) => { [INFO] [stdout] 186 | rt.block_on(async { [INFO] [stdout] ... [INFO] [stdout] 199 | .is_ok() [INFO] [stdout] 200 ~ } _ => { [INFO] [stdout] 201 | false [INFO] [stdout] 202 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/util.rs:136:12 [INFO] [stdout] | [INFO] [stdout] 136 | } else if let Some(url) = &opts.url { [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/util.rs:190:2 [INFO] [stdout] | [INFO] [stdout] 190 | } 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] 136 ~ } else { match &opts.url { Some(url) => { [INFO] [stdout] 137 | info!("Connecting to WebSocket: {:?}", url); [INFO] [stdout] ... [INFO] [stdout] 189 | ) [INFO] [stdout] 190 ~ } _ => { [INFO] [stdout] 191 | unreachable!("neither pty nor url specified"); [INFO] [stdout] 192 ~ }}}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/util.rs:206:6 [INFO] [stdout] | [INFO] [stdout] 206 | if let Err(err) = fut.await { [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/util.rs:209:3 [INFO] [stdout] | [INFO] [stdout] 209 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 206 ~ match fut.await { Err(err) => { [INFO] [stdout] 207 | eprintln!("Error in Wisp multiplexor future: {:?}", err); [INFO] [stdout] 208 | abort(); [INFO] [stdout] 209 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/bin/whisper.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `whisper` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/ffi.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: expected one of `.`, `;`, `?`, `}`, or an operator, found `=>` [INFO] [stderr] --> src/ffi.rs:80:44 [INFO] [stderr] | [INFO] [stderr] 80 | if let Ok(rt) = build_runtime!() { Ok(rt) => { [INFO] [stderr] | ^^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stderr] | [INFO] [stderr] help: you might have meant to write a "greater than or equal to" comparison [INFO] [stderr] | [INFO] [stderr] 80 | if let Ok(rt) = build_runtime!() { Ok(rt) >= { [INFO] [stderr] | ~~ [INFO] [stderr] [INFO] [stderr] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `=>` [INFO] [stderr] --> src/ffi.rs:119:44 [INFO] [stderr] | [INFO] [stderr] 119 | if let Ok(rt) = build_runtime!() { Ok(rt) => { [INFO] [stderr] | ^^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stderr] | [INFO] [stderr] help: you might have meant to write a "greater than or equal to" comparison [INFO] [stderr] | [INFO] [stderr] 119 | if let Ok(rt) = build_runtime!() { Ok(rt) >= { [INFO] [stderr] | ~~ [INFO] [stderr] [INFO] [stderr] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `=>` [INFO] [stderr] --> src/ffi.rs:151:44 [INFO] [stderr] | [INFO] [stderr] 151 | if let Ok(rt) = build_runtime!() { Ok(rt) => { [INFO] [stderr] | ^^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stderr] | [INFO] [stderr] help: you might have meant to write a "greater than or equal to" comparison [INFO] [stderr] | [INFO] [stderr] 151 | if let Ok(rt) = build_runtime!() { Ok(rt) >= { [INFO] [stderr] | ~~ [INFO] [stderr] [INFO] [stderr] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `=>` [INFO] [stderr] --> src/ffi.rs:185:44 [INFO] [stderr] | [INFO] [stderr] 185 | if let Ok(rt) = build_runtime!() { Ok(rt) => { [INFO] [stderr] | ^^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stderr] | [INFO] [stderr] help: you might have meant to write a "greater than or equal to" comparison [INFO] [stderr] | [INFO] [stderr] 185 | if let Ok(rt) = build_runtime!() { Ok(rt) >= { [INFO] [stderr] | ~~ [INFO] [stderr] [INFO] [stderr] error: macro expansion ends with an incomplete expression: expected expression [INFO] [stderr] --> src/ffi.rs:46:8 [INFO] [stderr] | [INFO] [stderr] 46 | match [INFO] [stderr] | -----^ expected expression [INFO] [stderr] | | [INFO] [stderr] | while parsing this `match` expression [INFO] [stderr] [INFO] [stderr] error: macro expansion ends with an incomplete expression: expected expression [INFO] [stderr] --> src/ffi.rs:46:8 [INFO] [stderr] | [INFO] [stderr] 46 | match [INFO] [stderr] | -----^ expected expression [INFO] [stderr] | | [INFO] [stderr] | while parsing this `match` expression [INFO] [stderr] [INFO] [stderr] error: macro expansion ends with an incomplete expression: expected expression [INFO] [stderr] --> src/ffi.rs:46:8 [INFO] [stderr] | [INFO] [stderr] 46 | match [INFO] [stderr] | -----^ expected expression [INFO] [stderr] | | [INFO] [stderr] | while parsing this `match` expression [INFO] [stderr] [INFO] [stderr] error: macro expansion ends with an incomplete expression: expected expression [INFO] [stderr] --> src/ffi.rs:46:8 [INFO] [stderr] | [INFO] [stderr] 46 | match [INFO] [stderr] | -----^ expected expression [INFO] [stderr] | | [INFO] [stderr] | while parsing this `match` expression [INFO] [stderr] [INFO] [stderr] warning: unused import: `ptr` [INFO] [stderr] --> src/ffi.rs:4:2 [INFO] [stderr] | [INFO] [stderr] 4 | ptr, [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `hyper::Uri` [INFO] [stderr] --> src/ffi.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use hyper::Uri; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `info` [INFO] [stderr] --> src/ffi.rs:10:11 [INFO] [stderr] | [INFO] [stderr] 10 | use log::{info, LevelFilter}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Builder` and `unbounded_channel` [INFO] [stderr] --> src/ffi.rs:12:12 [INFO] [stderr] | [INFO] [stderr] 12 | runtime::{Builder, Runtime}, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 13 | sync::{ [INFO] [stderr] 14 | mpsc::{unbounded_channel, UnboundedSender}, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Configuration` and `create_as_async` [INFO] [stderr] --> src/ffi.rs:18:12 [INFO] [stderr] | [INFO] [stderr] 18 | use tun2::{create_as_async, AsyncDevice, Configuration}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `WhisperError`, `WispServer`, `connect_to_wisp`, and `start_whisper` [INFO] [stderr] --> src/ffi.rs:22:2 [INFO] [stderr] | [INFO] [stderr] 22 | start_whisper, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 23 | util::{connect_to_wisp, WhisperError}, [INFO] [stderr] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stderr] 24 | WhisperEvent, WispServer, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 8 previous errors; 6 warnings emitted [INFO] [stderr] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/ffi.rs:50:3 [INFO] [stdout] | [INFO] [stdout] 50 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] = note: `--force-warn unsafe-attr-outside-unsafe` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 50 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/ffi.rs:72:3 [INFO] [stdout] | [INFO] [stdout] 72 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 72 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/ffi.rs:117:3 [INFO] [stdout] | [INFO] [stdout] 117 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 117 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/ffi.rs:139:3 [INFO] [stdout] | [INFO] [stdout] 139 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 139 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/ffi.rs:149:3 [INFO] [stdout] | [INFO] [stdout] 149 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 149 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/ffi.rs:183:3 [INFO] [stdout] | [INFO] [stdout] 183 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 183 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lib.rs:166:10 [INFO] [stdout] | [INFO] [stdout] 166 | while let Some(pkt) = stack_rx.next().await { [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/lib.rs:170:4 [INFO] [stdout] | [INFO] [stdout] 170 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lib.rs:167:8 [INFO] [stdout] | [INFO] [stdout] 167 | if let Ok(pkt) = pkt { [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/lib.rs:169:5 [INFO] [stdout] | [INFO] [stdout] 169 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 167 ~ match pkt { Ok(pkt) => { [INFO] [stdout] 168 | tun_tx.send(pkt).await.unwrap(); [INFO] [stdout] 169 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lib.rs:175:10 [INFO] [stdout] | [INFO] [stdout] 175 | while let Some(pkt) = tun_rx.next().await { [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/lib.rs:179:4 [INFO] [stdout] | [INFO] [stdout] 179 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lib.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | if let Ok(pkt) = pkt { [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/lib.rs:178:5 [INFO] [stdout] | [INFO] [stdout] 178 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 176 ~ match pkt { Ok(pkt) => { [INFO] [stdout] 177 | stack_tx.send(pkt).await.unwrap(); [INFO] [stdout] 178 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lib.rs:185:10 [INFO] [stdout] | [INFO] [stdout] 185 | while let Some((mut stream, _src, dest)) = tcp_listener.next().await { [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/lib.rs:202:4 [INFO] [stdout] | [INFO] [stdout] 202 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lib.rs:211:10 [INFO] [stdout] | [INFO] [stdout] 211 | while let Some((pkt, src, dest)) = udp_read.next().await { [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/lib.rs:239:4 [INFO] [stdout] | [INFO] [stdout] 239 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lib.rs:212:8 [INFO] [stdout] | [INFO] [stdout] 212 | if let Some(mut stream) = udp_map.get_mut(&(src, dest)) { [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] 218 | } else if let Ok(wisp_stream) = udp_mux [INFO] [stdout] | _________________________________________________- [INFO] [stdout] 219 | | .client_new_stream(StreamType::Udp, dest.ip().to_string(), dest.port()) [INFO] [stdout] 220 | | .await [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/lib.rs:218:5 [INFO] [stdout] | [INFO] [stdout] 218 | } else if let Ok(wisp_stream) = udp_mux [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/lib.rs:238:5 [INFO] [stdout] | [INFO] [stdout] 238 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 212 ~ match udp_map.get_mut(&(src, dest)) { Some(mut stream) => { [INFO] [stdout] 213 | if let Err(err) = stream.send(pkt).await { [INFO] [stdout] ... [INFO] [stdout] 217 | } [INFO] [stdout] 218 ~ } _ => { match udp_mux [INFO] [stdout] 219 | .client_new_stream(StreamType::Udp, dest.ip().to_string(), dest.port()) [INFO] [stdout] 220 | .await [INFO] [stdout] 221 ~ { Ok(wisp_stream) => { [INFO] [stdout] 222 | info!("connected udp: {:?}", dest); [INFO] [stdout] ... [INFO] [stdout] 237 | }); [INFO] [stdout] 238 ~ } _ => {}}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lib.rs:213:9 [INFO] [stdout] | [INFO] [stdout] 213 | if let Err(err) = stream.send(pkt).await { [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/lib.rs:217:6 [INFO] [stdout] | [INFO] [stdout] 217 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 213 ~ match stream.send(pkt).await { Err(err) => { [INFO] [stdout] 214 | error!("error while sending udp packet to {}: {:?}", dest, err); [INFO] [stdout] 215 | drop(stream); [INFO] [stdout] 216 | udp_map.remove(&(src, dest)); [INFO] [stdout] 217 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lib.rs:232:13 [INFO] [stdout] | [INFO] [stdout] 232 | while let Some(Ok(pkt)) = wisp_r.next().await { [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/lib.rs:234:7 [INFO] [stdout] | [INFO] [stdout] 234 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/ffi.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 46 | RUNTIME.get_or_try_init(|| Builder::new_current_thread().enable_all().build()) [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] 80 | if let Ok(rt) = build_runtime!() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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/ffi.rs:112:2 [INFO] [stdout] | [INFO] [stdout] 112 | } 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] 46 ~ match [INFO] [stdout] 47 | }; [INFO] [stdout] ... [INFO] [stdout] 79 | }; [INFO] [stdout] 80 ~ if let Ok(rt) = build_runtime!() { Ok(rt) => { [INFO] [stdout] 81 | rt.block_on(async { [INFO] [stdout] ... [INFO] [stdout] 111 | .is_ok() [INFO] [stdout] 112 ~ } _ => { [INFO] [stdout] 113 | false [INFO] [stdout] 114 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/ffi.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 46 | RUNTIME.get_or_try_init(|| Builder::new_current_thread().enable_all().build()) [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] 119 | if let Ok(rt) = build_runtime!() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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/ffi.rs:134:2 [INFO] [stdout] | [INFO] [stdout] 134 | } 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] 46 ~ match [INFO] [stdout] 47 | }; [INFO] [stdout] ... [INFO] [stdout] 118 | pub extern "C" fn whisper_get_ws_ip() -> *mut c_char { [INFO] [stdout] 119 ~ if let Ok(rt) = build_runtime!() { Ok(rt) => { [INFO] [stdout] 120 | let ip = rt.block_on(async { [INFO] [stdout] ... [INFO] [stdout] 133 | } [INFO] [stdout] 134 ~ } _ => { [INFO] [stdout] 135 | ptr::null_mut() [INFO] [stdout] 136 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/ffi.rs:122:7 [INFO] [stdout] | [INFO] [stdout] 122 | if let Some(init) = &whisper.0 { [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] 123 | CString::new(init.socketaddr.ip().to_string()).map_err(WhisperError::other) [INFO] [stdout] 124 | } else if let Some(running) = &whisper.1 { [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/ffi.rs:124:4 [INFO] [stdout] | [INFO] [stdout] 124 | } else if let Some(running) = &whisper.1 { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/ffi.rs:126:4 [INFO] [stdout] | [INFO] [stdout] 126 | } 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] 122 ~ match &whisper.0 { Some(init) => { [INFO] [stdout] 123 | CString::new(init.socketaddr.ip().to_string()).map_err(WhisperError::other) [INFO] [stdout] 124 ~ } _ => { match &whisper.1 { Some(running) => { [INFO] [stdout] 125 | CString::new(running.socketaddr.ip().to_string()).map_err(WhisperError::other) [INFO] [stdout] 126 ~ } _ => { [INFO] [stdout] 127 | Err(WhisperError::NotInitialized) [INFO] [stdout] 128 ~ }}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/ffi.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 46 | RUNTIME.get_or_try_init(|| Builder::new_current_thread().enable_all().build()) [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] 151 | if let Ok(rt) = build_runtime!() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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/ffi.rs:178:2 [INFO] [stdout] | [INFO] [stdout] 178 | } 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] 46 ~ match [INFO] [stdout] 47 | }; [INFO] [stdout] ... [INFO] [stdout] 150 | pub extern "C" fn whisper_start() -> bool { [INFO] [stdout] 151 ~ if let Ok(rt) = build_runtime!() { Ok(rt) => { [INFO] [stdout] 152 | rt.block_on(async { [INFO] [stdout] ... [INFO] [stdout] 177 | .is_ok() [INFO] [stdout] 178 ~ } _ => { [INFO] [stdout] 179 | false [INFO] [stdout] 180 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/ffi.rs:185:5 [INFO] [stdout] | [INFO] [stdout] 46 | RUNTIME.get_or_try_init(|| Builder::new_current_thread().enable_all().build()) [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] 185 | if let Ok(rt) = build_runtime!() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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/ffi.rs:200:2 [INFO] [stdout] | [INFO] [stdout] 200 | } 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] 46 ~ match [INFO] [stdout] 47 | }; [INFO] [stdout] ... [INFO] [stdout] 184 | pub extern "C" fn whisper_stop() -> bool { [INFO] [stdout] 185 ~ if let Ok(rt) = build_runtime!() { Ok(rt) => { [INFO] [stdout] 186 | rt.block_on(async { [INFO] [stdout] ... [INFO] [stdout] 199 | .is_ok() [INFO] [stdout] 200 ~ } _ => { [INFO] [stdout] 201 | false [INFO] [stdout] 202 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/util.rs:136:12 [INFO] [stdout] | [INFO] [stdout] 136 | } else if let Some(url) = &opts.url { [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/util.rs:190:2 [INFO] [stdout] | [INFO] [stdout] 190 | } 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] 136 ~ } else { match &opts.url { Some(url) => { [INFO] [stdout] 137 | info!("Connecting to WebSocket: {:?}", url); [INFO] [stdout] ... [INFO] [stdout] 189 | ) [INFO] [stdout] 190 ~ } _ => { [INFO] [stdout] 191 | unreachable!("neither pty nor url specified"); [INFO] [stdout] 192 ~ }}}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/util.rs:206:6 [INFO] [stdout] | [INFO] [stdout] 206 | if let Err(err) = fut.await { [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/util.rs:209:3 [INFO] [stdout] | [INFO] [stdout] 209 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 206 ~ match fut.await { Err(err) => { [INFO] [stdout] 207 | eprintln!("Error in Wisp multiplexor future: {:?}", err); [INFO] [stdout] 208 | abort(); [INFO] [stdout] 209 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 23.02s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking whisper v0.1.0 (/tmp/fixit) [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/ffi.rs:50:3 [INFO] [stdout] | [INFO] [stdout] 50 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 50 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/ffi.rs:50:3 [INFO] [stdout] | [INFO] [stdout] 50 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 50 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/ffi.rs:72:3 [INFO] [stdout] | [INFO] [stdout] 72 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 72 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/ffi.rs:72:3 [INFO] [stdout] | [INFO] [stdout] 72 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 72 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/ffi.rs:117:3 [INFO] [stdout] | [INFO] [stdout] 117 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 117 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/ffi.rs:117:3 [INFO] [stdout] | [INFO] [stdout] 117 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 117 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/ffi.rs:139:3 [INFO] [stdout] | [INFO] [stdout] 139 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 139 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/ffi.rs:139:3 [INFO] [stdout] | [INFO] [stdout] 139 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 139 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/ffi.rs:149:3 [INFO] [stdout] | [INFO] [stdout] 149 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 149 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/ffi.rs:149:3 [INFO] [stdout] | [INFO] [stdout] 149 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 149 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/ffi.rs:183:3 [INFO] [stdout] | [INFO] [stdout] 183 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 183 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/ffi.rs:183:3 [INFO] [stdout] | [INFO] [stdout] 183 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 183 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `whisper` (lib test) due to 7 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `whisper` (lib) due to 7 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" "ec9d70f4a6a0f68e5dc29970765343025455f6cde637cd3ce56722f8bda5859c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ec9d70f4a6a0f68e5dc29970765343025455f6cde637cd3ce56722f8bda5859c", kill_on_drop: false }` [INFO] [stdout] ec9d70f4a6a0f68e5dc29970765343025455f6cde637cd3ce56722f8bda5859c