[INFO] cloning repository https://github.com/DevSCNinja/shadowsocks-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/DevSCNinja/shadowsocks-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDevSCNinja%2Fshadowsocks-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDevSCNinja%2Fshadowsocks-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a9215fbd0239eee79ebce1107e5f3bc361f8face [INFO] checking DevSCNinja/shadowsocks-rust/a9215fbd0239eee79ebce1107e5f3bc361f8face against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDevSCNinja%2Fshadowsocks-rust" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/DevSCNinja/shadowsocks-rust 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/DevSCNinja/shadowsocks-rust [INFO] finished tweaking git repo https://github.com/DevSCNinja/shadowsocks-rust [INFO] tweaked toml for git repo https://github.com/DevSCNinja/shadowsocks-rust written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/DevSCNinja/shadowsocks-rust 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 3d4f352500d289a2049e4666da4173bebb0995f9e0887962ae596cb208f9aa55 [INFO] running `Command { std: "docker" "start" "-a" "3d4f352500d289a2049e4666da4173bebb0995f9e0887962ae596cb208f9aa55", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3d4f352500d289a2049e4666da4173bebb0995f9e0887962ae596cb208f9aa55", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3d4f352500d289a2049e4666da4173bebb0995f9e0887962ae596cb208f9aa55", kill_on_drop: false }` [INFO] [stdout] 3d4f352500d289a2049e4666da4173bebb0995f9e0887962ae596cb208f9aa55 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] be6eac947fee86e7854b96f7cda470672b59bbe267224b2ab75991bece816911 [INFO] running `Command { std: "docker" "start" "-a" "be6eac947fee86e7854b96f7cda470672b59bbe267224b2ab75991bece816911", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating crates/shadowsocks/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Fixed crates/shadowsocks/Cargo.toml (6 fixes) [INFO] [stderr] Migrating crates/shadowsocks-service/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Fixed crates/shadowsocks-service/Cargo.toml (14 fixes) [INFO] [stderr] Migrating crates/shadowsocks-tools/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Fixed Cargo.toml (8 fixes) [INFO] [stderr] Compiling libc v0.2.119 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Checking subtle v2.4.1 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking pin-project-lite v0.2.8 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling parking_lot_core v0.9.1 [INFO] [stderr] Checking bytes v1.1.0 [INFO] [stderr] Checking lock_api v0.4.6 [INFO] [stderr] Checking futures-sink v0.3.21 [INFO] [stderr] Checking zeroize v1.3.0 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Checking cpufeatures v0.2.1 [INFO] [stderr] Checking once_cell v1.10.0 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Checking slab v0.4.5 [INFO] [stderr] Checking futures-io v0.3.21 [INFO] [stderr] Checking const-oid v0.7.1 [INFO] [stderr] Checking itoa v1.0.1 [INFO] [stderr] Checking matches v0.1.9 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Checking base16ct v0.1.1 [INFO] [stderr] Checking tinyvec v1.5.1 [INFO] [stderr] Checking linked-hash-map v0.5.4 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Checking der v0.5.1 [INFO] [stderr] Compiling async-trait v0.1.52 [INFO] [stderr] Checking ryu v1.0.9 [INFO] [stderr] Compiling crossbeam-utils v0.8.7 [INFO] [stderr] Checking unicode-bidi v0.3.7 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Checking untrusted v0.7.1 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Checking ipnet v2.4.0 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking data-encoding v2.3.2 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking walkdir v2.3.2 [INFO] [stderr] Checking lru-cache v0.1.2 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Checking arc-swap v1.5.0 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Checking byte_string v1.0.0 [INFO] [stderr] Checking crossbeam-channel v0.5.2 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling sha1-asm v0.5.1 [INFO] [stderr] Checking unicode-normalization v0.1.19 [INFO] [stderr] Compiling md5-asm v0.5.0 [INFO] [stderr] Checking termcolor v1.1.3 [INFO] [stderr] Compiling ucd-trie v0.1.3 [INFO] [stderr] Checking tracing-core v0.1.23 [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling pest v2.1.3 [INFO] [stderr] Checking http v0.2.6 [INFO] [stderr] Checking getrandom v0.2.5 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Checking inotify-sys v0.1.5 [INFO] [stderr] Checking hostname v0.3.1 [INFO] [stderr] Checking filetime v0.2.15 [INFO] [stderr] Checking inotify v0.9.6 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking nix v0.23.1 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking resolv-conf v0.7.0 [INFO] [stderr] Checking parking_lot v0.12.0 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Checking signature v1.4.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking traitobject v0.1.0 [INFO] [stderr] Compiling httparse v1.6.0 [INFO] [stderr] Checking ed25519 v1.4.0 [INFO] [stderr] Compiling anyhow v1.0.56 [INFO] [stderr] Checking crypto-common v0.1.3 [INFO] [stderr] Checking block-buffer v0.10.2 [INFO] [stderr] Checking cipher v0.3.0 [INFO] [stderr] Checking sec1 v0.2.1 [INFO] [stderr] Checking crypto-bigint v0.3.2 [INFO] [stderr] Checking universal-hash v0.4.1 [INFO] [stderr] Checking digest v0.10.3 [INFO] [stderr] Checking aead v0.4.3 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking aes v0.7.5 [INFO] [stderr] Checking ctr v0.8.0 [INFO] [stderr] Checking polyval v0.5.3 [INFO] [stderr] Checking poly1305 v0.7.2 [INFO] [stderr] Checking chacha20 v0.8.1 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Compiling pest_meta v2.1.3 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking md-5 v0.10.1 [INFO] [stderr] Checking ghash v0.4.4 [INFO] [stderr] Checking sha1 v0.10.1 [INFO] [stderr] Checking ordered-float v2.10.0 [INFO] [stderr] Checking hkdf v0.12.3 [INFO] [stderr] Checking chacha20poly1305 v0.9.0 [INFO] [stderr] Checking aes-gcm v0.9.4 [INFO] [stderr] Checking unsafe-any v0.4.2 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Checking terminal_size v0.1.17 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Checking regex v1.5.5 [INFO] [stderr] Checking tower-service v0.3.1 [INFO] [stderr] Checking elliptic-curve v0.11.12 [INFO] [stderr] Checking try-lock v0.2.3 [INFO] [stderr] Checking textwrap v0.15.0 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking typemap v0.3.3 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking ecdsa v0.13.4 [INFO] [stderr] Checking thread-id v3.3.0 [INFO] [stderr] Checking dirs-sys v0.3.6 [INFO] [stderr] Checking os_str_bytes v6.0.0 [INFO] [stderr] Checking log-mdc v0.1.0 [INFO] [stderr] Checking p256 v0.10.1 [INFO] [stderr] Checking p384 v0.9.0 [INFO] [stderr] Checking checked_int_cast v1.0.0 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking tower-layer v0.3.1 [INFO] [stderr] Checking httpdate v1.0.2 [INFO] [stderr] Checking arc-swap v0.4.8 [INFO] [stderr] Checking iprange v0.6.7 [INFO] [stderr] Checking http-body v0.4.4 [INFO] [stderr] Checking qrcode v0.12.0 [INFO] [stderr] Checking clap v3.1.6 [INFO] [stderr] Checking spin v0.9.2 [INFO] [stderr] Checking lru_time_cache v0.11.11 [INFO] [stderr] Checking dirs v4.0.0 [INFO] [stderr] Checking boxfnonce v0.1.1 [INFO] [stderr] Checking directories v4.0.1 [INFO] [stderr] Checking xdg v2.4.1 [INFO] [stderr] Checking rpassword v5.0.1 [INFO] [stderr] Checking daemonize v0.4.1 [INFO] [stderr] Checking exitcode v1.1.2 [INFO] [stderr] Checking ring-compat v0.4.1 [INFO] [stderr] Compiling pest_generator v2.1.3 [INFO] [stderr] Checking shadowsocks-crypto v0.3.6 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling enum-as-inner v0.4.0 [INFO] [stderr] Compiling pin-project-internal v1.0.10 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling pest_derive v2.1.0 [INFO] [stderr] Compiling build-time v0.1.1 [INFO] [stderr] Checking thiserror v1.0.30 [INFO] [stderr] Checking pin-project v1.0.10 [INFO] [stderr] Checking futures-executor v0.3.21 [INFO] [stderr] Checking futures v0.3.21 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde-value v0.7.0 [INFO] [stderr] Checking serde_yaml v0.8.23 [INFO] [stderr] Checking json5 v0.4.1 [INFO] [stderr] Checking mio v0.8.1 [INFO] [stderr] Checking mio v0.7.14 [INFO] [stderr] Checking tracing v0.1.32 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking env_logger v0.9.0 [INFO] [stderr] Checking tower v0.4.12 [INFO] [stderr] Checking notify v5.0.0-pre.13 [INFO] [stderr] Checking tokio v1.17.0 [INFO] [stderr] Checking log4rs v1.0.0 [INFO] [stderr] Checking trust-dns-proto v0.21.1 [INFO] [stderr] Checking tokio-tfo v0.1.9 [INFO] [stderr] Checking sendfd v0.4.1 [INFO] [stderr] Checking tokio-util v0.6.9 [INFO] [stderr] Checking h2 v0.3.12 [INFO] [stderr] Checking trust-dns-resolver v0.21.1 [INFO] [stderr] Checking shadowsocks v1.14.0 (/tmp/fixit/crates/shadowsocks) [INFO] [stderr] Migrating crates/shadowsocks/src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Checking hyper v0.14.17 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `shadowsocks` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * crates/shadowsocks/src/dns_resolver/mod.rs [INFO] [stderr] * crates/shadowsocks/src/net/sys/unix/mod.rs [INFO] [stderr] * crates/shadowsocks/src/net/tcp.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] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> crates/shadowsocks/src/dns_resolver/mod.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 13 | ($context:expr, $addr:expr, $port:expr, |$resolved_addr:ident| $body:block) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 13 | ($context:expr_2021, $addr:expr, $port:expr, |$resolved_addr:ident| $body:block) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> crates/shadowsocks/src/dns_resolver/mod.rs:13:6 [INFO] [stderr] | [INFO] [stderr] 13 | ($context:expr_2021, $addr:expr_2021, $port:expr_2021, |$resolved_addr:ident| $body:block) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> crates/shadowsocks/src/dns_resolver/mod.rs:13:26 [INFO] [stderr] | [INFO] [stderr] 13 | ($context:expr_2021, $addr:expr_2021, $port:expr_2021, |$resolved_addr:ident| $body:block) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> crates/shadowsocks/src/dns_resolver/mod.rs:13:43 [INFO] [stderr] | [INFO] [stderr] 13 | ($context:expr_2021, $addr:expr_2021, $port:expr_2021, |$resolved_addr:ident| $body:block) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> crates/shadowsocks/src/dns_resolver/mod.rs:52:16 [INFO] [stderr] | [INFO] [stderr] 52 | (RESOLVE @ $addrs:expr_2021, $resolved_addr:ident, $body:block) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> crates/shadowsocks/src/dns_resolver/mod.rs:73:6 [INFO] [stderr] | [INFO] [stderr] 73 | ($context:expr_2021, $addr:expr_2021, $port:expr_2021, |$resolved_addr:ident| $body:block) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> crates/shadowsocks/src/dns_resolver/mod.rs:73:26 [INFO] [stderr] | [INFO] [stderr] 73 | ($context:expr_2021, $addr:expr_2021, $port:expr_2021, |$resolved_addr:ident| $body:block) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> crates/shadowsocks/src/dns_resolver/mod.rs:73:43 [INFO] [stderr] | [INFO] [stderr] 73 | ($context:expr_2021, $addr:expr_2021, $port:expr_2021, |$resolved_addr:ident| $body:block) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> crates/shadowsocks/src/net/tcp.rs:217:41 [INFO] [stderr] | [INFO] [stderr] 217 | ($socket:ident . $func:ident ($($arg:expr_2021),*)) => { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> crates/shadowsocks/src/net/sys/unix/mod.rs:55:41 [INFO] [stderr] | [INFO] [stderr] 55 | ($socket:ident . $func:ident ($($arg:expr_2021),*)) => { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error: aborting due to 9 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> crates/shadowsocks/src/dns_resolver/mod.rs:13:27 [INFO] [stdout] | [INFO] [stdout] 13 | ($context:expr, $addr:expr, $port:expr, |$resolved_addr:ident| $body:block) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 13 | ($context:expr, $addr:expr_2021, $port:expr, |$resolved_addr:ident| $body:block) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> crates/shadowsocks/src/dns_resolver/mod.rs:13:39 [INFO] [stdout] | [INFO] [stdout] 13 | ($context:expr, $addr:expr, $port:expr, |$resolved_addr:ident| $body:block) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 13 | ($context:expr, $addr:expr, $port:expr_2021, |$resolved_addr:ident| $body:block) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> crates/shadowsocks/src/dns_resolver/mod.rs:52:23 [INFO] [stdout] | [INFO] [stdout] 52 | (RESOLVE @ $addrs:expr, $resolved_addr:ident, $body:block) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 52 | (RESOLVE @ $addrs:expr_2021, $resolved_addr:ident, $body:block) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> crates/shadowsocks/src/dns_resolver/mod.rs:73:15 [INFO] [stdout] | [INFO] [stdout] 73 | ($context:expr, $addr:expr, $port:expr, |$resolved_addr:ident| $body:block) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 73 | ($context:expr_2021, $addr:expr, $port:expr, |$resolved_addr:ident| $body:block) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> crates/shadowsocks/src/dns_resolver/mod.rs:73:27 [INFO] [stdout] | [INFO] [stdout] 73 | ($context:expr, $addr:expr, $port:expr, |$resolved_addr:ident| $body:block) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 73 | ($context:expr, $addr:expr_2021, $port:expr, |$resolved_addr:ident| $body:block) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> crates/shadowsocks/src/dns_resolver/mod.rs:73:39 [INFO] [stdout] | [INFO] [stdout] 73 | ($context:expr, $addr:expr, $port:expr, |$resolved_addr:ident| $body:block) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 73 | ($context:expr, $addr:expr, $port:expr_2021, |$resolved_addr:ident| $body:block) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> crates/shadowsocks/src/net/sys/unix/mod.rs:55:46 [INFO] [stdout] | [INFO] [stdout] 55 | ($socket:ident . $func:ident ($($arg:expr),*)) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 55 | ($socket:ident . $func:ident ($($arg:expr_2021),*)) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> crates/shadowsocks/src/net/tcp.rs:217:46 [INFO] [stdout] | [INFO] [stdout] 217 | ($socket:ident . $func:ident ($($arg:expr),*)) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 217 | ($socket:ident . $func:ident ($($arg:expr_2021),*)) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks/src/dns_resolver/resolver.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 78 | if let DnsResolver::TrustDnsSystem { ref abortable, .. } = *self { [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] --> crates/shadowsocks/src/dns_resolver/resolver.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | } [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] 78 ~ match *self { DnsResolver::TrustDnsSystem { ref abortable, .. } => { [INFO] [stdout] 79 | abortable.abort(); [INFO] [stdout] 80 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks/src/dns_resolver/resolver.rs:155:20 [INFO] [stdout] | [INFO] [stdout] 155 | if let EventKind::Modify(..) = ev.kind { [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] --> crates/shadowsocks/src/dns_resolver/resolver.rs:157:17 [INFO] [stdout] | [INFO] [stdout] 157 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 155 ~ match ev.kind { EventKind::Modify(..) => { [INFO] [stdout] 156 | tx.send(ev).expect("watcher.send"); [INFO] [stdout] 157 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks/src/dns_resolver/resolver.rs:235:20 [INFO] [stdout] | [INFO] [stdout] 235 | if let Err(err) = trust_dns_notify_update_dns(inner).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] --> crates/shadowsocks/src/dns_resolver/resolver.rs:237:17 [INFO] [stdout] | [INFO] [stdout] 237 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 235 ~ match trust_dns_notify_update_dns(inner).await { Err(err) => { [INFO] [stdout] 236 | error!("failed to watch DNS system configuration changes, error: {}", err); [INFO] [stdout] 237 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `into_raw_fd` that must be used [INFO] [stdout] --> crates/shadowsocks/src/net/sys/mod.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | sock.into_raw_fd(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: losing the raw file descriptor may leak resources [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 70 | let _ = sock.into_raw_fd(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks/src/plugin/mod.rs:216:16 [INFO] [stdout] | [INFO] [stdout] 216 | if let Ok(..) = self.process.start_kill() { [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] --> crates/shadowsocks/src/plugin/mod.rs:218:13 [INFO] [stdout] | [INFO] [stdout] 218 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 216 ~ match self.process.start_kill() { Ok(..) => { [INFO] [stdout] 217 | debug!("killed plugin process {:?}", self.process.id()); [INFO] [stdout] 218 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `shadowsocks` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * crates/shadowsocks/src/dns_resolver/mod.rs [INFO] [stderr] * crates/shadowsocks/src/net/sys/unix/mod.rs [INFO] [stderr] * crates/shadowsocks/src/net/tcp.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[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> crates/shadowsocks/src/dns_resolver/mod.rs:13:6 [INFO] [stderr] | [INFO] [stderr] 13 | ($context:expr_2021, $addr:expr_2021, $port:expr_2021, |$resolved_addr:ident| $body:block) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> crates/shadowsocks/src/dns_resolver/mod.rs:13:26 [INFO] [stderr] | [INFO] [stderr] 13 | ($context:expr_2021, $addr:expr_2021, $port:expr_2021, |$resolved_addr:ident| $body:block) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> crates/shadowsocks/src/dns_resolver/mod.rs:13:43 [INFO] [stderr] | [INFO] [stderr] 13 | ($context:expr_2021, $addr:expr_2021, $port:expr_2021, |$resolved_addr:ident| $body:block) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> crates/shadowsocks/src/dns_resolver/mod.rs:52:16 [INFO] [stderr] | [INFO] [stderr] 52 | (RESOLVE @ $addrs:expr_2021, $resolved_addr:ident, $body:block) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> crates/shadowsocks/src/dns_resolver/mod.rs:73:6 [INFO] [stderr] | [INFO] [stderr] 73 | ($context:expr_2021, $addr:expr_2021, $port:expr_2021, |$resolved_addr:ident| $body:block) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> crates/shadowsocks/src/dns_resolver/mod.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 13 | ($context:expr, $addr:expr, $port:expr, |$resolved_addr:ident| $body:block) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 13 | ($context:expr_2021, $addr:expr, $port:expr, |$resolved_addr:ident| $body:block) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> crates/shadowsocks/src/dns_resolver/mod.rs:73:26 [INFO] [stderr] | [INFO] [stderr] 73 | ($context:expr_2021, $addr:expr_2021, $port:expr_2021, |$resolved_addr:ident| $body:block) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> crates/shadowsocks/src/dns_resolver/mod.rs:13:27 [INFO] [stdout] | [INFO] [stdout] 13 | ($context:expr, $addr:expr, $port:expr, |$resolved_addr:ident| $body:block) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 13 | ($context:expr, $addr:expr_2021, $port:expr, |$resolved_addr:ident| $body:block) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> crates/shadowsocks/src/dns_resolver/mod.rs:73:43 [INFO] [stderr] | [INFO] [stderr] 73 | ($context:expr_2021, $addr:expr_2021, $port:expr_2021, |$resolved_addr:ident| $body:block) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> crates/shadowsocks/src/net/tcp.rs:217:41 [INFO] [stderr] | [INFO] [stderr] 217 | ($socket:ident . $func:ident ($($arg:expr_2021),*)) => { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> crates/shadowsocks/src/dns_resolver/mod.rs:13:39 [INFO] [stdout] | [INFO] [stdout] 13 | ($context:expr, $addr:expr, $port:expr, |$resolved_addr:ident| $body:block) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 13 | ($context:expr, $addr:expr, $port:expr_2021, |$resolved_addr:ident| $body:block) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> crates/shadowsocks/src/dns_resolver/mod.rs:52:23 [INFO] [stdout] | [INFO] [stdout] 52 | (RESOLVE @ $addrs:expr, $resolved_addr:ident, $body:block) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 52 | (RESOLVE @ $addrs:expr_2021, $resolved_addr:ident, $body:block) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> crates/shadowsocks/src/dns_resolver/mod.rs:73:15 [INFO] [stdout] | [INFO] [stdout] 73 | ($context:expr, $addr:expr, $port:expr, |$resolved_addr:ident| $body:block) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 73 | ($context:expr_2021, $addr:expr, $port:expr, |$resolved_addr:ident| $body:block) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> crates/shadowsocks/src/dns_resolver/mod.rs:73:27 [INFO] [stdout] | [INFO] [stdout] 73 | ($context:expr, $addr:expr, $port:expr, |$resolved_addr:ident| $body:block) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 73 | ($context:expr, $addr:expr_2021, $port:expr, |$resolved_addr:ident| $body:block) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> crates/shadowsocks/src/dns_resolver/mod.rs:73:39 [INFO] [stdout] | [INFO] [stdout] 73 | ($context:expr, $addr:expr, $port:expr, |$resolved_addr:ident| $body:block) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 73 | ($context:expr, $addr:expr, $port:expr_2021, |$resolved_addr:ident| $body:block) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> crates/shadowsocks/src/net/sys/unix/mod.rs:55:41 [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> crates/shadowsocks/src/net/sys/unix/mod.rs:55:46 [INFO] [stdout] | [INFO] [stdout] 55 | ($socket:ident . $func:ident ($($arg:expr),*)) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 55 | ($socket:ident . $func:ident ($($arg:expr_2021),*)) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stderr] 55 | ($socket:ident . $func:ident ($($arg:expr_2021),*)) => { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> crates/shadowsocks/src/net/tcp.rs:217:46 [INFO] [stdout] | [INFO] [stdout] 217 | ($socket:ident . $func:ident ($($arg:expr),*)) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 217 | ($socket:ident . $func:ident ($($arg:expr_2021),*)) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error: aborting due to 9 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks/src/dns_resolver/resolver.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 78 | if let DnsResolver::TrustDnsSystem { ref abortable, .. } = *self { [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] --> crates/shadowsocks/src/dns_resolver/resolver.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | } [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] 78 ~ match *self { DnsResolver::TrustDnsSystem { ref abortable, .. } => { [INFO] [stdout] 79 | abortable.abort(); [INFO] [stdout] 80 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks/src/dns_resolver/resolver.rs:155:20 [INFO] [stdout] | [INFO] [stdout] 155 | if let EventKind::Modify(..) = ev.kind { [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] --> crates/shadowsocks/src/dns_resolver/resolver.rs:157:17 [INFO] [stdout] | [INFO] [stdout] 157 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 155 ~ match ev.kind { EventKind::Modify(..) => { [INFO] [stdout] 156 | tx.send(ev).expect("watcher.send"); [INFO] [stdout] 157 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks/src/dns_resolver/resolver.rs:235:20 [INFO] [stdout] | [INFO] [stdout] 235 | if let Err(err) = trust_dns_notify_update_dns(inner).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] --> crates/shadowsocks/src/dns_resolver/resolver.rs:237:17 [INFO] [stdout] | [INFO] [stdout] 237 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 235 ~ match trust_dns_notify_update_dns(inner).await { Err(err) => { [INFO] [stdout] 236 | error!("failed to watch DNS system configuration changes, error: {}", err); [INFO] [stdout] 237 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `into_raw_fd` that must be used [INFO] [stdout] --> crates/shadowsocks/src/net/sys/mod.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | sock.into_raw_fd(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: losing the raw file descriptor may leak resources [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 70 | let _ = sock.into_raw_fd(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks/src/plugin/mod.rs:216:16 [INFO] [stdout] | [INFO] [stdout] 216 | if let Ok(..) = self.process.start_kill() { [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] --> crates/shadowsocks/src/plugin/mod.rs:218:13 [INFO] [stdout] | [INFO] [stdout] 218 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 216 ~ match self.process.start_kill() { Ok(..) => { [INFO] [stdout] 217 | debug!("killed plugin process {:?}", self.process.id()); [INFO] [stdout] 218 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking shadowsocks-tools v0.1.0 (/tmp/fixit/crates/shadowsocks-tools) [INFO] [stderr] Migrating crates/shadowsocks/tests/tcp_tfo.rs from 2021 edition to 2024 [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks/tests/tcp_tfo.rs:50:15 [INFO] [stdout] | [INFO] [stdout] 50 | while let Ok((mut stream, peer_addr)) = listener.accept().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] --> crates/shadowsocks/tests/tcp_tfo.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating crates/shadowsocks/tests/udp.rs from 2021 edition to 2024 [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking shadowsocks-service v1.14.1 (/tmp/fixit/crates/shadowsocks-service) [INFO] [stderr] Migrating crates/shadowsocks-tools/src/dns_pressure.rs from 2021 edition to 2024 [INFO] [stderr] Migrating crates/shadowsocks/tests/tcp.rs from 2021 edition to 2024 [INFO] [stderr] Migrating crates/shadowsocks-service/src/lib.rs from 2021 edition to 2024 [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks/tests/tcp.rs:112:15 [INFO] [stdout] | [INFO] [stdout] 112 | while let Ok((stream, peer_addr)) = listener.accept().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] --> crates/shadowsocks/tests/tcp.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | } [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] --> crates/shadowsocks/tests/tcp.rs:126:15 [INFO] [stdout] | [INFO] [stdout] 126 | while let Ok((stream, peer_addr)) = listener.accept().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] --> crates/shadowsocks/tests/tcp.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `shadowsocks_service` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * crates/shadowsocks-service/src/config.rs [INFO] [stderr] * crates/shadowsocks-service/src/local/http/http_stream.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[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> crates/shadowsocks-service/src/config.rs:1102:17 [INFO] [stderr] | [INFO] [stderr] 1102 | ($error:ty, $kind:expr_2021, $desc:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> crates/shadowsocks-service/src/config.rs:1102:34 [INFO] [stderr] | [INFO] [stderr] 1102 | ($error:ty, $kind:expr_2021, $desc:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> crates/shadowsocks-service/src/local/http/http_stream.rs:153:6 [INFO] [stderr] | [INFO] [stderr] 153 | ($self:expr_2021, $method:ident $(, $param:expr_2021)*) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> crates/shadowsocks-service/src/local/http/http_stream.rs:153:41 [INFO] [stderr] | [INFO] [stderr] 153 | ($self:expr_2021, $method:ident $(, $param:expr_2021)*) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error: aborting due to 4 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> crates/shadowsocks-service/src/config.rs:1102:23 [INFO] [stdout] | [INFO] [stdout] 1102 | ($error:ty, $kind:expr, $desc:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 1102 | ($error:ty, $kind:expr_2021, $desc:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> crates/shadowsocks-service/src/config.rs:1102:35 [INFO] [stdout] | [INFO] [stdout] 1102 | ($error:ty, $kind:expr, $desc:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 1102 | ($error:ty, $kind:expr, $desc:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> crates/shadowsocks-service/src/local/http/http_stream.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 153 | ($self:expr, $method:ident $(, $param:expr)*) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 153 | ($self:expr_2021, $method:ident $(, $param:expr)*) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> crates/shadowsocks-service/src/local/http/http_stream.rs:153:43 [INFO] [stdout] | [INFO] [stdout] 153 | ($self:expr, $method:ident $(, $param:expr)*) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 153 | ($self:expr, $method:ident $(, $param:expr_2021)*) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `into_future` will become ambiguous in Rust 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/local/mod.rs:64:24 [INFO] [stdout] | [INFO] [stdout] 64 | let (res, _) = self.vfut.into_future().await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: disambiguate the associated function: `StreamExt::into_future(self.vfut)` [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 [INFO] [stdout] = note: `--force-warn rust-2024-prelude-collisions` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `into_future` will become ambiguous in Rust 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/server/server.rs:157:24 [INFO] [stdout] | [INFO] [stdout] 157 | let (res, _) = vfut.into_future().await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: disambiguate the associated function: `StreamExt::into_future(vfut)` [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 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/acl/mod.rs:186:16 [INFO] [stdout] | [INFO] [stdout] 186 | if let Some(tree_rule) = caps.get(1) { [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] 194 | } else if let Some(set_rule) = caps.get(2) { [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] --> crates/shadowsocks-service/src/acl/mod.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 194 | } else if let Some(set_rule) = caps.get(2) { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/acl/mod.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 202 | } [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] 186 ~ match caps.get(1) { Some(tree_rule) => { [INFO] [stdout] 187 | if let Ok(tree_rule) = str::from_utf8(tree_rule.as_bytes()) { [INFO] [stdout] ... [INFO] [stdout] 193 | } [INFO] [stdout] 194 ~ } _ => { match caps.get(2) { Some(set_rule) => { [INFO] [stdout] 195 | if let Ok(set_rule) = str::from_utf8(set_rule.as_bytes()) { [INFO] [stdout] ... [INFO] [stdout] 201 | } [INFO] [stdout] 202 ~ } _ => {}}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/acl/mod.rs:189:24 [INFO] [stdout] | [INFO] [stdout] 189 | if let Ok(..) = self.add_tree_rule_inner(&tree_rule) { [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] --> crates/shadowsocks-service/src/acl/mod.rs:192:21 [INFO] [stdout] | [INFO] [stdout] 192 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 189 ~ match self.add_tree_rule_inner(&tree_rule) { Ok(..) => { [INFO] [stdout] 190 | trace!("REGEX-RULE {} => TREE-RULE {}", rule, tree_rule); [INFO] [stdout] 191 | return; [INFO] [stdout] 192 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/acl/mod.rs:197:24 [INFO] [stdout] | [INFO] [stdout] 197 | if let Ok(..) = self.add_set_rule_inner(&set_rule) { [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] --> crates/shadowsocks-service/src/acl/mod.rs:200:21 [INFO] [stdout] | [INFO] [stdout] 200 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 197 ~ match self.add_set_rule_inner(&set_rule) { Ok(..) => { [INFO] [stdout] 198 | trace!("REGEX-RULE {} => SET-RULE {}", rule, set_rule); [INFO] [stdout] 199 | return; [INFO] [stdout] 200 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/local/mod.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 93 | if let Err(err) = set_nofile(nofile) { [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] --> crates/shadowsocks-service/src/local/mod.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 93 ~ match set_nofile(nofile) { Err(err) => { [INFO] [stdout] 94 | log::warn!("set_nofile {} failed, error: {}", nofile, err); [INFO] [stdout] 95 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/local/http/dispatcher.rs:280:15 [INFO] [stdout] | [INFO] [stdout] 280 | while let Some(..) = headers.remove(&header) {} [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] --> crates/shadowsocks-service/src/local/http/dispatcher.rs:280:55 [INFO] [stdout] | [INFO] [stdout] 280 | while let Some(..) = headers.remove(&header) {} [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/local/http/dispatcher.rs:297:15 [INFO] [stdout] | [INFO] [stdout] 297 | while let Some(..) = headers.remove(*header) {} [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] --> crates/shadowsocks-service/src/local/http/dispatcher.rs:297:55 [INFO] [stdout] | [INFO] [stdout] 297 | while let Some(..) = headers.remove(*header) {} [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs:198:12 [INFO] [stdout] | [INFO] [stdout] 198 | if let Some(ref p) = self.plugin_abortable { [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] --> crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs:200:9 [INFO] [stdout] | [INFO] [stdout] 200 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 198 ~ match self.plugin_abortable { Some(ref p) => { [INFO] [stdout] 199 | p.abort(); [INFO] [stdout] 200 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/local/net/udp/association.rs:295:28 [INFO] [stdout] | [INFO] [stdout] 295 | if let Err(..) = self.keepalive_tx.try_send(self.peer_addr) { [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] --> crates/shadowsocks-service/src/local/net/udp/association.rs:297:25 [INFO] [stdout] | [INFO] [stdout] 297 | } 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] 295 ~ match self.keepalive_tx.try_send(self.peer_addr) { Err(..) => { [INFO] [stdout] 296 | debug!("udp relay {} keep-alive failed, channel full or closed", self.peer_addr); [INFO] [stdout] 297 ~ } _ => { [INFO] [stdout] 298 | self.keepalive_flag = false; [INFO] [stdout] 299 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/local/net/udp/association.rs:351:16 [INFO] [stdout] | [INFO] [stdout] 351 | if let Err(err) = self.dispatch_received_bypassed_packet(target_addr, data).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] --> crates/shadowsocks-service/src/local/net/udp/association.rs:359:13 [INFO] [stdout] | [INFO] [stdout] 359 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 351 ~ match self.dispatch_received_bypassed_packet(target_addr, data).await { Err(err) => { [INFO] [stdout] 352 | error!( [INFO] [stdout] ... [INFO] [stdout] 358 | ); [INFO] [stdout] 359 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/local/net/udp/association.rs:361:16 [INFO] [stdout] | [INFO] [stdout] 361 | if let Err(err) = self.dispatch_received_proxied_packet(target_addr, data).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] --> crates/shadowsocks-service/src/local/net/udp/association.rs:369:13 [INFO] [stdout] | [INFO] [stdout] 369 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 361 ~ match self.dispatch_received_proxied_packet(target_addr, data).await { Err(err) => { [INFO] [stdout] 362 | error!( [INFO] [stdout] ... [INFO] [stdout] 368 | ); [INFO] [stdout] 369 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/local/net/udp/association.rs:469:12 [INFO] [stdout] | [INFO] [stdout] 469 | if let Err(err) = self.respond_writer.send_to(self.peer_addr, addr, data).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] --> crates/shadowsocks-service/src/local/net/udp/association.rs:478:9 [INFO] [stdout] | [INFO] [stdout] 478 | } 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] 469 ~ match self.respond_writer.send_to(self.peer_addr, addr, data).await { Err(err) => { [INFO] [stdout] 470 | warn!( [INFO] [stdout] ... [INFO] [stdout] 477 | ); [INFO] [stdout] 478 ~ } _ => { [INFO] [stdout] 479 | trace!( [INFO] [stdout] ... [INFO] [stdout] 485 | ); [INFO] [stdout] 486 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/local/socks/server/socks5/udprelay.rs:149:24 [INFO] [stdout] | [INFO] [stdout] 149 | if let Err(err) = manager.send_to(peer_addr, header.address, payload).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] --> crates/shadowsocks-service/src/local/socks/server/socks5/udprelay.rs:156:21 [INFO] [stdout] | [INFO] [stdout] 156 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 149 ~ match manager.send_to(peer_addr, header.address, payload).await { Err(err) => { [INFO] [stdout] 150 | error!( [INFO] [stdout] ... [INFO] [stdout] 155 | ); [INFO] [stdout] 156 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/local/tunnel/udprelay.rs:119:24 [INFO] [stdout] | [INFO] [stdout] 119 | if let Err(err) = self [INFO] [stdout] | ________________________^ - [INFO] [stdout] | |_______________________________________| [INFO] [stdout] 120 | || .send_packet(&listener, peer_addr, &balancer, forward_addr, data) [INFO] [stdout] 121 | || .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] | [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] --> crates/shadowsocks-service/src/local/tunnel/udprelay.rs:130:21 [INFO] [stdout] | [INFO] [stdout] 130 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 119 ~ match self [INFO] [stdout] 120 | .send_packet(&listener, peer_addr, &balancer, forward_addr, data) [INFO] [stdout] 121 | .await [INFO] [stdout] 122 ~ { Err(err) => { [INFO] [stdout] 123 | error!( [INFO] [stdout] ... [INFO] [stdout] 129 | ); [INFO] [stdout] 130 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/local/tunnel/udprelay.rs:280:28 [INFO] [stdout] | [INFO] [stdout] 280 | if let Err(..) = self.keepalive_tx.try_send(self.peer_addr) { [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] --> crates/shadowsocks-service/src/local/tunnel/udprelay.rs:282:25 [INFO] [stdout] | [INFO] [stdout] 282 | } 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] 280 ~ match self.keepalive_tx.try_send(self.peer_addr) { Err(..) => { [INFO] [stdout] 281 | debug!("udp relay {} keep-alive failed, channel full or closed", self.peer_addr); [INFO] [stdout] 282 ~ } _ => { [INFO] [stdout] 283 | self.keepalive_flag = false; [INFO] [stdout] 284 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/local/tunnel/udprelay.rs:315:12 [INFO] [stdout] | [INFO] [stdout] 315 | if let Err(err) = self.dispatch_received_proxied_packet(data).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] --> crates/shadowsocks-service/src/local/tunnel/udprelay.rs:323:9 [INFO] [stdout] | [INFO] [stdout] 323 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 315 ~ match self.dispatch_received_proxied_packet(data).await { Err(err) => { [INFO] [stdout] 316 | error!( [INFO] [stdout] ... [INFO] [stdout] 322 | ); [INFO] [stdout] 323 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/local/tunnel/udprelay.rs:370:12 [INFO] [stdout] | [INFO] [stdout] 370 | if let Err(err) = self.inbound.send_to(data, self.peer_addr).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] --> crates/shadowsocks-service/src/local/tunnel/udprelay.rs:378:9 [INFO] [stdout] | [INFO] [stdout] 378 | } 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] 370 ~ match self.inbound.send_to(data, self.peer_addr).await { Err(err) => { [INFO] [stdout] 371 | warn!( [INFO] [stdout] ... [INFO] [stdout] 377 | ); [INFO] [stdout] 378 ~ } _ => { [INFO] [stdout] 379 | trace!("udp relay {} <- {} with {} bytes", self.peer_addr, addr, data.len()); [INFO] [stdout] 380 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/manager/mod.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | if let Err(err) = set_nofile(nofile) { [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] --> crates/shadowsocks-service/src/manager/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 29 ~ match set_nofile(nofile) { Err(err) => { [INFO] [stdout] 30 | log::warn!("set_nofile {} failed, error: {}", nofile, err); [INFO] [stdout] 31 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/manager/server.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | if let ServerInstanceMode::Builtin { ref abortable, .. } = self.mode { [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] --> crates/shadowsocks-service/src/manager/server.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 57 ~ match self.mode { ServerInstanceMode::Builtin { ref abortable, .. } => { [INFO] [stdout] 58 | abortable.abort(); [INFO] [stdout] 59 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/manager/server.rs:289:16 [INFO] [stdout] | [INFO] [stdout] 289 | if let Ok(mut pid_file) = File::open(&pid_path) { [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] --> crates/shadowsocks-service/src/manager/server.rs:304:13 [INFO] [stdout] | [INFO] [stdout] 304 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 289 ~ match File::open(&pid_path) { Ok(mut pid_file) => { [INFO] [stdout] 290 | let mut pid_content = String::new(); [INFO] [stdout] ... [INFO] [stdout] 303 | } [INFO] [stdout] 304 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/manager/server.rs:291:20 [INFO] [stdout] | [INFO] [stdout] 291 | if let Ok(..) = pid_file.read_to_string(&mut pid_content) { [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] --> crates/shadowsocks-service/src/manager/server.rs:303:17 [INFO] [stdout] | [INFO] [stdout] 303 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 291 ~ match pid_file.read_to_string(&mut pid_content) { Ok(..) => { [INFO] [stdout] 292 | let pid_content = pid_content.trim(); [INFO] [stdout] ... [INFO] [stdout] 302 | } [INFO] [stdout] 303 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/server/mod.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | if let Err(err) = set_nofile(nofile) { [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] --> crates/shadowsocks-service/src/server/mod.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | } [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 set_nofile(nofile) { Err(err) => { [INFO] [stdout] 47 | log::warn!("set_nofile {} failed, error: {}", nofile, err); [INFO] [stdout] 48 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/server/server.rs:204:24 [INFO] [stdout] | [INFO] [stdout] 204 | if let Err(err) = client.stat(&req).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] --> crates/shadowsocks-service/src/server/server.rs:209:21 [INFO] [stdout] | [INFO] [stdout] 209 | } 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] 204 ~ match client.stat(&req).await { Err(err) => { [INFO] [stdout] 205 | error!( [INFO] [stdout] ... [INFO] [stdout] 208 | ); [INFO] [stdout] 209 ~ } _ => { [INFO] [stdout] 210 | trace!("report to manager {}, {:?}", manager_addr, req); [INFO] [stdout] 211 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/server/tcprelay.rs:78:20 [INFO] [stdout] | [INFO] [stdout] 78 | if let Err(err) = client.serve().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] --> crates/shadowsocks-service/src/server/tcprelay.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 80 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 78 ~ match client.serve().await { Err(err) => { [INFO] [stdout] 79 | debug!("tcp server stream aborted with error: {}", err); [INFO] [stdout] 80 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/server/udprelay.rs:125:24 [INFO] [stdout] | [INFO] [stdout] 125 | if let Err(err) = self.send_packet(&listener, peer_addr, target_addr, data).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] --> crates/shadowsocks-service/src/server/udprelay.rs:132:21 [INFO] [stdout] | [INFO] [stdout] 132 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 125 ~ match self.send_packet(&listener, peer_addr, target_addr, data).await { Err(err) => { [INFO] [stdout] 126 | error!( [INFO] [stdout] ... [INFO] [stdout] 131 | ); [INFO] [stdout] 132 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/server/udprelay.rs:289:28 [INFO] [stdout] | [INFO] [stdout] 289 | if let Err(..) = self.keepalive_tx.try_send(self.peer_addr) { [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] --> crates/shadowsocks-service/src/server/udprelay.rs:291:25 [INFO] [stdout] | [INFO] [stdout] 291 | } 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] 289 ~ match self.keepalive_tx.try_send(self.peer_addr) { Err(..) => { [INFO] [stdout] 290 | debug!("udp relay {} keep-alive failed, channel full or closed", self.peer_addr); [INFO] [stdout] 291 ~ } _ => { [INFO] [stdout] 292 | self.keepalive_flag = false; [INFO] [stdout] 293 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/server/udprelay.rs:332:12 [INFO] [stdout] | [INFO] [stdout] 332 | if let Err(err) = self.dispatch_received_outbound_packet(target_addr, data).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] --> crates/shadowsocks-service/src/server/udprelay.rs:340:9 [INFO] [stdout] | [INFO] [stdout] 340 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 332 ~ match self.dispatch_received_outbound_packet(target_addr, data).await { Err(err) => { [INFO] [stdout] 333 | error!( [INFO] [stdout] ... [INFO] [stdout] 339 | ); [INFO] [stdout] 340 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/server/udprelay.rs:396:12 [INFO] [stdout] | [INFO] [stdout] 396 | if let Err(err) = self.inbound.send_to(self.peer_addr, addr, data).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] --> crates/shadowsocks-service/src/server/udprelay.rs:404:9 [INFO] [stdout] | [INFO] [stdout] 404 | } 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] 396 ~ match self.inbound.send_to(self.peer_addr, addr, data).await { Err(err) => { [INFO] [stdout] 397 | warn!( [INFO] [stdout] ... [INFO] [stdout] 403 | ); [INFO] [stdout] 404 ~ } _ => { [INFO] [stdout] 405 | trace!("udp relay {} <- {} with {} bytes", self.peer_addr, addr, data.len()); [INFO] [stdout] 406 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking shadowsocks-rust v1.14.1 (/tmp/fixit) [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `shadowsocks_service` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * crates/shadowsocks-service/src/config.rs [INFO] [stderr] * crates/shadowsocks-service/src/local/http/http_stream.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[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> crates/shadowsocks-service/src/config.rs:1102:17 [INFO] [stderr] | [INFO] [stderr] 1102 | ($error:ty, $kind:expr_2021, $desc:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> crates/shadowsocks-service/src/config.rs:1102:34 [INFO] [stderr] | [INFO] [stderr] 1102 | ($error:ty, $kind:expr_2021, $desc:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> crates/shadowsocks-service/src/local/http/http_stream.rs:153:6 [INFO] [stderr] | [INFO] [stderr] 153 | ($self:expr_2021, $method:ident $(, $param:expr_2021)*) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> crates/shadowsocks-service/src/local/http/http_stream.rs:153:41 [INFO] [stderr] | [INFO] [stderr] 153 | ($self:expr_2021, $method:ident $(, $param:expr_2021)*) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error: aborting due to 4 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> crates/shadowsocks-service/src/config.rs:1102:23 [INFO] [stdout] | [INFO] [stdout] 1102 | ($error:ty, $kind:expr, $desc:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 1102 | ($error:ty, $kind:expr_2021, $desc:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> crates/shadowsocks-service/src/config.rs:1102:35 [INFO] [stdout] | [INFO] [stdout] 1102 | ($error:ty, $kind:expr, $desc:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 1102 | ($error:ty, $kind:expr, $desc:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> crates/shadowsocks-service/src/local/http/http_stream.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 153 | ($self:expr, $method:ident $(, $param:expr)*) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 153 | ($self:expr_2021, $method:ident $(, $param:expr)*) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> crates/shadowsocks-service/src/local/http/http_stream.rs:153:43 [INFO] [stdout] | [INFO] [stdout] 153 | ($self:expr, $method:ident $(, $param:expr)*) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 153 | ($self:expr, $method:ident $(, $param:expr_2021)*) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `into_future` will become ambiguous in Rust 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/local/mod.rs:64:24 [INFO] [stdout] | [INFO] [stdout] 64 | let (res, _) = self.vfut.into_future().await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: disambiguate the associated function: `StreamExt::into_future(self.vfut)` [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 [INFO] [stdout] = note: `--force-warn rust-2024-prelude-collisions` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `into_future` will become ambiguous in Rust 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/server/server.rs:157:24 [INFO] [stdout] | [INFO] [stdout] 157 | let (res, _) = vfut.into_future().await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: disambiguate the associated function: `StreamExt::into_future(vfut)` [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 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/acl/mod.rs:186:16 [INFO] [stdout] | [INFO] [stdout] 186 | if let Some(tree_rule) = caps.get(1) { [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] 194 | } else if let Some(set_rule) = caps.get(2) { [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] --> crates/shadowsocks-service/src/acl/mod.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 194 | } else if let Some(set_rule) = caps.get(2) { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/acl/mod.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 202 | } [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] 186 ~ match caps.get(1) { Some(tree_rule) => { [INFO] [stdout] 187 | if let Ok(tree_rule) = str::from_utf8(tree_rule.as_bytes()) { [INFO] [stdout] ... [INFO] [stdout] 193 | } [INFO] [stdout] 194 ~ } _ => { match caps.get(2) { Some(set_rule) => { [INFO] [stdout] 195 | if let Ok(set_rule) = str::from_utf8(set_rule.as_bytes()) { [INFO] [stdout] ... [INFO] [stdout] 201 | } [INFO] [stdout] 202 ~ } _ => {}}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/acl/mod.rs:189:24 [INFO] [stdout] | [INFO] [stdout] 189 | if let Ok(..) = self.add_tree_rule_inner(&tree_rule) { [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] --> crates/shadowsocks-service/src/acl/mod.rs:192:21 [INFO] [stdout] | [INFO] [stdout] 192 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 189 ~ match self.add_tree_rule_inner(&tree_rule) { Ok(..) => { [INFO] [stdout] 190 | trace!("REGEX-RULE {} => TREE-RULE {}", rule, tree_rule); [INFO] [stdout] 191 | return; [INFO] [stdout] 192 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/acl/mod.rs:197:24 [INFO] [stdout] | [INFO] [stdout] 197 | if let Ok(..) = self.add_set_rule_inner(&set_rule) { [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] --> crates/shadowsocks-service/src/acl/mod.rs:200:21 [INFO] [stdout] | [INFO] [stdout] 200 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 197 ~ match self.add_set_rule_inner(&set_rule) { Ok(..) => { [INFO] [stdout] 198 | trace!("REGEX-RULE {} => SET-RULE {}", rule, set_rule); [INFO] [stdout] 199 | return; [INFO] [stdout] 200 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/local/mod.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 93 | if let Err(err) = set_nofile(nofile) { [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] --> crates/shadowsocks-service/src/local/mod.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 93 ~ match set_nofile(nofile) { Err(err) => { [INFO] [stdout] 94 | log::warn!("set_nofile {} failed, error: {}", nofile, err); [INFO] [stdout] 95 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/local/http/dispatcher.rs:280:15 [INFO] [stdout] | [INFO] [stdout] 280 | while let Some(..) = headers.remove(&header) {} [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] --> crates/shadowsocks-service/src/local/http/dispatcher.rs:280:55 [INFO] [stdout] | [INFO] [stdout] 280 | while let Some(..) = headers.remove(&header) {} [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/local/http/dispatcher.rs:297:15 [INFO] [stdout] | [INFO] [stdout] 297 | while let Some(..) = headers.remove(*header) {} [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] --> crates/shadowsocks-service/src/local/http/dispatcher.rs:297:55 [INFO] [stdout] | [INFO] [stdout] 297 | while let Some(..) = headers.remove(*header) {} [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs:198:12 [INFO] [stdout] | [INFO] [stdout] 198 | if let Some(ref p) = self.plugin_abortable { [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] --> crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs:200:9 [INFO] [stdout] | [INFO] [stdout] 200 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 198 ~ match self.plugin_abortable { Some(ref p) => { [INFO] [stdout] 199 | p.abort(); [INFO] [stdout] 200 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/local/net/udp/association.rs:295:28 [INFO] [stdout] | [INFO] [stdout] 295 | if let Err(..) = self.keepalive_tx.try_send(self.peer_addr) { [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] --> crates/shadowsocks-service/src/local/net/udp/association.rs:297:25 [INFO] [stdout] | [INFO] [stdout] 297 | } 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] 295 ~ match self.keepalive_tx.try_send(self.peer_addr) { Err(..) => { [INFO] [stdout] 296 | debug!("udp relay {} keep-alive failed, channel full or closed", self.peer_addr); [INFO] [stdout] 297 ~ } _ => { [INFO] [stdout] 298 | self.keepalive_flag = false; [INFO] [stdout] 299 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/local/net/udp/association.rs:351:16 [INFO] [stdout] | [INFO] [stdout] 351 | if let Err(err) = self.dispatch_received_bypassed_packet(target_addr, data).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] --> crates/shadowsocks-service/src/local/net/udp/association.rs:359:13 [INFO] [stdout] | [INFO] [stdout] 359 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 351 ~ match self.dispatch_received_bypassed_packet(target_addr, data).await { Err(err) => { [INFO] [stdout] 352 | error!( [INFO] [stdout] ... [INFO] [stdout] 358 | ); [INFO] [stdout] 359 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/local/net/udp/association.rs:361:16 [INFO] [stdout] | [INFO] [stdout] 361 | if let Err(err) = self.dispatch_received_proxied_packet(target_addr, data).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] --> crates/shadowsocks-service/src/local/net/udp/association.rs:369:13 [INFO] [stdout] | [INFO] [stdout] 369 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 361 ~ match self.dispatch_received_proxied_packet(target_addr, data).await { Err(err) => { [INFO] [stdout] 362 | error!( [INFO] [stdout] ... [INFO] [stdout] 368 | ); [INFO] [stdout] 369 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/local/net/udp/association.rs:469:12 [INFO] [stdout] | [INFO] [stdout] 469 | if let Err(err) = self.respond_writer.send_to(self.peer_addr, addr, data).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] --> crates/shadowsocks-service/src/local/net/udp/association.rs:478:9 [INFO] [stdout] | [INFO] [stdout] 478 | } 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] 469 ~ match self.respond_writer.send_to(self.peer_addr, addr, data).await { Err(err) => { [INFO] [stdout] 470 | warn!( [INFO] [stdout] ... [INFO] [stdout] 477 | ); [INFO] [stdout] 478 ~ } _ => { [INFO] [stdout] 479 | trace!( [INFO] [stdout] ... [INFO] [stdout] 485 | ); [INFO] [stdout] 486 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/local/socks/server/socks5/udprelay.rs:149:24 [INFO] [stdout] | [INFO] [stdout] 149 | if let Err(err) = manager.send_to(peer_addr, header.address, payload).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] --> crates/shadowsocks-service/src/local/socks/server/socks5/udprelay.rs:156:21 [INFO] [stdout] | [INFO] [stdout] 156 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 149 ~ match manager.send_to(peer_addr, header.address, payload).await { Err(err) => { [INFO] [stdout] 150 | error!( [INFO] [stdout] ... [INFO] [stdout] 155 | ); [INFO] [stdout] 156 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/local/tunnel/udprelay.rs:119:24 [INFO] [stdout] | [INFO] [stdout] 119 | if let Err(err) = self [INFO] [stdout] | ________________________^ - [INFO] [stdout] | |_______________________________________| [INFO] [stdout] 120 | || .send_packet(&listener, peer_addr, &balancer, forward_addr, data) [INFO] [stdout] 121 | || .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] | [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] --> crates/shadowsocks-service/src/local/tunnel/udprelay.rs:130:21 [INFO] [stdout] | [INFO] [stdout] 130 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 119 ~ match self [INFO] [stdout] 120 | .send_packet(&listener, peer_addr, &balancer, forward_addr, data) [INFO] [stdout] 121 | .await [INFO] [stdout] 122 ~ { Err(err) => { [INFO] [stdout] 123 | error!( [INFO] [stdout] ... [INFO] [stdout] 129 | ); [INFO] [stdout] 130 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/local/tunnel/udprelay.rs:280:28 [INFO] [stdout] | [INFO] [stdout] 280 | if let Err(..) = self.keepalive_tx.try_send(self.peer_addr) { [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] --> crates/shadowsocks-service/src/local/tunnel/udprelay.rs:282:25 [INFO] [stdout] | [INFO] [stdout] 282 | } 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] 280 ~ match self.keepalive_tx.try_send(self.peer_addr) { Err(..) => { [INFO] [stdout] 281 | debug!("udp relay {} keep-alive failed, channel full or closed", self.peer_addr); [INFO] [stdout] 282 ~ } _ => { [INFO] [stdout] 283 | self.keepalive_flag = false; [INFO] [stdout] 284 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/local/tunnel/udprelay.rs:315:12 [INFO] [stdout] | [INFO] [stdout] 315 | if let Err(err) = self.dispatch_received_proxied_packet(data).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] --> crates/shadowsocks-service/src/local/tunnel/udprelay.rs:323:9 [INFO] [stdout] | [INFO] [stdout] 323 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 315 ~ match self.dispatch_received_proxied_packet(data).await { Err(err) => { [INFO] [stdout] 316 | error!( [INFO] [stdout] ... [INFO] [stdout] 322 | ); [INFO] [stdout] 323 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/local/tunnel/udprelay.rs:370:12 [INFO] [stdout] | [INFO] [stdout] 370 | if let Err(err) = self.inbound.send_to(data, self.peer_addr).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] --> crates/shadowsocks-service/src/local/tunnel/udprelay.rs:378:9 [INFO] [stdout] | [INFO] [stdout] 378 | } 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] 370 ~ match self.inbound.send_to(data, self.peer_addr).await { Err(err) => { [INFO] [stdout] 371 | warn!( [INFO] [stdout] ... [INFO] [stdout] 377 | ); [INFO] [stdout] 378 ~ } _ => { [INFO] [stdout] 379 | trace!("udp relay {} <- {} with {} bytes", self.peer_addr, addr, data.len()); [INFO] [stdout] 380 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/manager/mod.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | if let Err(err) = set_nofile(nofile) { [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] --> crates/shadowsocks-service/src/manager/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 29 ~ match set_nofile(nofile) { Err(err) => { [INFO] [stdout] 30 | log::warn!("set_nofile {} failed, error: {}", nofile, err); [INFO] [stdout] 31 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/manager/server.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | if let ServerInstanceMode::Builtin { ref abortable, .. } = self.mode { [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] --> crates/shadowsocks-service/src/manager/server.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 57 ~ match self.mode { ServerInstanceMode::Builtin { ref abortable, .. } => { [INFO] [stdout] 58 | abortable.abort(); [INFO] [stdout] 59 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/manager/server.rs:289:16 [INFO] [stdout] | [INFO] [stdout] 289 | if let Ok(mut pid_file) = File::open(&pid_path) { [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] --> crates/shadowsocks-service/src/manager/server.rs:304:13 [INFO] [stdout] | [INFO] [stdout] 304 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 289 ~ match File::open(&pid_path) { Ok(mut pid_file) => { [INFO] [stdout] 290 | let mut pid_content = String::new(); [INFO] [stdout] ... [INFO] [stdout] 303 | } [INFO] [stdout] 304 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/manager/server.rs:291:20 [INFO] [stdout] | [INFO] [stdout] 291 | if let Ok(..) = pid_file.read_to_string(&mut pid_content) { [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] --> crates/shadowsocks-service/src/manager/server.rs:303:17 [INFO] [stdout] | [INFO] [stdout] 303 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 291 ~ match pid_file.read_to_string(&mut pid_content) { Ok(..) => { [INFO] [stdout] 292 | let pid_content = pid_content.trim(); [INFO] [stdout] ... [INFO] [stdout] 302 | } [INFO] [stdout] 303 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/server/mod.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | if let Err(err) = set_nofile(nofile) { [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] --> crates/shadowsocks-service/src/server/mod.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | } [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 set_nofile(nofile) { Err(err) => { [INFO] [stdout] 47 | log::warn!("set_nofile {} failed, error: {}", nofile, err); [INFO] [stdout] 48 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/server/server.rs:204:24 [INFO] [stdout] | [INFO] [stdout] 204 | if let Err(err) = client.stat(&req).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] --> crates/shadowsocks-service/src/server/server.rs:209:21 [INFO] [stdout] | [INFO] [stdout] 209 | } 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] 204 ~ match client.stat(&req).await { Err(err) => { [INFO] [stdout] 205 | error!( [INFO] [stdout] ... [INFO] [stdout] 208 | ); [INFO] [stdout] 209 ~ } _ => { [INFO] [stdout] 210 | trace!("report to manager {}, {:?}", manager_addr, req); [INFO] [stdout] 211 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/server/tcprelay.rs:78:20 [INFO] [stdout] | [INFO] [stdout] 78 | if let Err(err) = client.serve().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] --> crates/shadowsocks-service/src/server/tcprelay.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 80 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 78 ~ match client.serve().await { Err(err) => { [INFO] [stdout] 79 | debug!("tcp server stream aborted with error: {}", err); [INFO] [stdout] 80 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/server/udprelay.rs:125:24 [INFO] [stdout] | [INFO] [stdout] 125 | if let Err(err) = self.send_packet(&listener, peer_addr, target_addr, data).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] --> crates/shadowsocks-service/src/server/udprelay.rs:132:21 [INFO] [stdout] | [INFO] [stdout] 132 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 125 ~ match self.send_packet(&listener, peer_addr, target_addr, data).await { Err(err) => { [INFO] [stdout] 126 | error!( [INFO] [stdout] ... [INFO] [stdout] 131 | ); [INFO] [stdout] 132 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/server/udprelay.rs:289:28 [INFO] [stdout] | [INFO] [stdout] 289 | if let Err(..) = self.keepalive_tx.try_send(self.peer_addr) { [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] --> crates/shadowsocks-service/src/server/udprelay.rs:291:25 [INFO] [stdout] | [INFO] [stdout] 291 | } 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] 289 ~ match self.keepalive_tx.try_send(self.peer_addr) { Err(..) => { [INFO] [stdout] 290 | debug!("udp relay {} keep-alive failed, channel full or closed", self.peer_addr); [INFO] [stdout] 291 ~ } _ => { [INFO] [stdout] 292 | self.keepalive_flag = false; [INFO] [stdout] 293 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/server/udprelay.rs:332:12 [INFO] [stdout] | [INFO] [stdout] 332 | if let Err(err) = self.dispatch_received_outbound_packet(target_addr, data).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] --> crates/shadowsocks-service/src/server/udprelay.rs:340:9 [INFO] [stdout] | [INFO] [stdout] 340 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 332 ~ match self.dispatch_received_outbound_packet(target_addr, data).await { Err(err) => { [INFO] [stdout] 333 | error!( [INFO] [stdout] ... [INFO] [stdout] 339 | ); [INFO] [stdout] 340 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> crates/shadowsocks-service/src/server/udprelay.rs:396:12 [INFO] [stdout] | [INFO] [stdout] 396 | if let Err(err) = self.inbound.send_to(self.peer_addr, addr, data).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] --> crates/shadowsocks-service/src/server/udprelay.rs:404:9 [INFO] [stdout] | [INFO] [stdout] 404 | } 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] 396 ~ match self.inbound.send_to(self.peer_addr, addr, data).await { Err(err) => { [INFO] [stdout] 397 | warn!( [INFO] [stdout] ... [INFO] [stdout] 403 | ); [INFO] [stdout] 404 ~ } _ => { [INFO] [stdout] 405 | trace!("udp relay {} <- {} with {} bytes", self.peer_addr, addr, data.len()); [INFO] [stdout] 406 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/validator/mod.rs:14:33 [INFO] [stdout] | [INFO] [stdout] 14 | ($name:ident, $ty:ty, $help:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 14 | ($name:ident, $ty:ty, $help:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `shadowsocks_rust` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/validator/mod.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[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/validator/mod.rs:14:27 [INFO] [stderr] | [INFO] [stderr] 14 | ($name:ident, $ty:ty, $help:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/config.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | if let Ok(mut path) = env::current_dir() { [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/config.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | } 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] 19 ~ match env::current_dir() { Ok(mut path) => { [INFO] [stdout] 20 | path.push("config.json"); [INFO] [stdout] ... [INFO] [stdout] 24 | } [INFO] [stdout] 25 ~ } _ => { [INFO] [stdout] 26 | // config.json in the current working directory (relative path) [INFO] [stdout] ... [INFO] [stdout] 30 | } [INFO] [stdout] 31 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/daemonize/unix.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | if let Err(err) = d.start() { [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/daemonize/unix.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 21 ~ match d.start() { Err(err) => { [INFO] [stdout] 22 | error!("failed to daemonize, {:?} ({})", err, err); [INFO] [stdout] 23 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/service/local.rs:831:16 [INFO] [stdout] | [INFO] [stdout] 831 | if let Err(err) = balancer.reset_servers(servers).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/service/local.rs:833:13 [INFO] [stdout] | [INFO] [stdout] 833 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 831 ~ match balancer.reset_servers(servers).await { Err(err) => { [INFO] [stdout] 832 | error!("auto-reload {} but found error: {}", config_path.display(), err); [INFO] [stdout] 833 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/service/manager.rs:299:20 [INFO] [stdout] | [INFO] [stdout] 299 | if let Some(ref mut manager_config) = config.manager { [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/service/manager.rs:301:17 [INFO] [stdout] | [INFO] [stdout] 301 | } 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] 299 ~ match config.manager { Some(ref mut manager_config) => { [INFO] [stdout] 300 | manager_config.addr = addr; [INFO] [stdout] 301 ~ } _ => { [INFO] [stdout] 302 | config.manager = Some(ManagerConfig::new(addr)); [INFO] [stdout] 303 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/service/manager.rs:353:16 [INFO] [stdout] | [INFO] [stdout] 353 | if let Some(ref mut m) = config.manager { [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/service/manager.rs:355:13 [INFO] [stdout] | [INFO] [stdout] 355 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 353 ~ match config.manager { Some(ref mut m) => { [INFO] [stdout] 354 | m.mode = Mode::UdpOnly; [INFO] [stdout] 355 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/service/manager.rs:359:16 [INFO] [stdout] | [INFO] [stdout] 359 | if let Some(ref mut m) = config.manager { [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/service/manager.rs:361:13 [INFO] [stdout] | [INFO] [stdout] 361 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 359 ~ match config.manager { Some(ref mut m) => { [INFO] [stdout] 360 | m.mode = Mode::TcpAndUdp; [INFO] [stdout] 361 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/service/server.rs:359:20 [INFO] [stdout] | [INFO] [stdout] 359 | if let Some(ref mut manager_config) = config.manager { [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/service/server.rs:361:17 [INFO] [stdout] | [INFO] [stdout] 361 | } 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] 359 ~ match config.manager { Some(ref mut manager_config) => { [INFO] [stdout] 360 | manager_config.addr = addr; [INFO] [stdout] 361 ~ } _ => { [INFO] [stdout] 362 | config.manager = Some(ManagerConfig::new(addr)); [INFO] [stdout] 363 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stdout] --> src/validator/mod.rs:14:27 [INFO] [stdout] | [INFO] [stdout] 14 | ($name:ident, $ty:ty, $help:expr_2021) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #123742 for more information [INFO] [stdout] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0658`. [INFO] [stdout] [INFO] [stderr] error: could not compile `shadowsocks-rust` (lib test) due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] Migrating tests/socks4.rs from 2021 edition to 2024 [INFO] [stderr] Migrating bin/ssurl.rs from 2021 edition to 2024 [INFO] [stderr] Fixed bin/ssurl.rs (1 fix) [INFO] [stderr] Migrating tests/socks5.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/udp.rs from 2021 edition to 2024 [INFO] [stderr] Migrating bin/ssmanager.rs from 2021 edition to 2024 [INFO] [stderr] Migrating bin/sslocal.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/dns.rs from 2021 edition to 2024 [INFO] [stderr] Migrating bin/ssserver.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/tunnel.rs from 2021 edition to 2024 [INFO] [stderr] Migrating bin/ssservice.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/http.rs from 2021 edition to 2024 [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "be6eac947fee86e7854b96f7cda470672b59bbe267224b2ab75991bece816911", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be6eac947fee86e7854b96f7cda470672b59bbe267224b2ab75991bece816911", kill_on_drop: false }` [INFO] [stdout] be6eac947fee86e7854b96f7cda470672b59bbe267224b2ab75991bece816911