[INFO] cloning repository https://github.com/QaQAdrian/network_traffic [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/QaQAdrian/network_traffic" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FQaQAdrian%2Fnetwork_traffic", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FQaQAdrian%2Fnetwork_traffic'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bf2f4c7a313e64163254c4245e74343bd97cb5c1 [INFO] checking QaQAdrian/network_traffic/bf2f4c7a313e64163254c4245e74343bd97cb5c1 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FQaQAdrian%2Fnetwork_traffic" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/QaQAdrian/network_traffic on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/QaQAdrian/network_traffic [INFO] finished tweaking git repo https://github.com/QaQAdrian/network_traffic [INFO] tweaked toml for git repo https://github.com/QaQAdrian/network_traffic written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/QaQAdrian/network_traffic 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" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 66d233411cbbc7d3a1ce6b27e20cb6b4cea524716a7a635d8309cf629095686e [INFO] running `Command { std: "docker" "start" "-a" "66d233411cbbc7d3a1ce6b27e20cb6b4cea524716a7a635d8309cf629095686e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "66d233411cbbc7d3a1ce6b27e20cb6b4cea524716a7a635d8309cf629095686e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "66d233411cbbc7d3a1ce6b27e20cb6b4cea524716a7a635d8309cf629095686e", kill_on_drop: false }` [INFO] [stdout] 66d233411cbbc7d3a1ce6b27e20cb6b4cea524716a7a635d8309cf629095686e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail_expr_drop_order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d05d6b93e253a0322cd49b47979a162a37b3351d9b6c05c91a9a3b8a7bd097fe [INFO] running `Command { std: "docker" "start" "-a" "d05d6b93e253a0322cd49b47979a162a37b3351d9b6c05c91a9a3b8a7bd097fe", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Compiling memchr v2.6.4 [INFO] [stderr] Checking no-std-net v0.6.0 [INFO] [stderr] Compiling serde v1.0.192 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling memoffset v0.7.1 [INFO] [stderr] Compiling thiserror v1.0.50 [INFO] [stderr] Checking pnet_base v0.34.0 [INFO] [stderr] Checking pnet_macros_support v0.34.0 [INFO] [stderr] Compiling pnet v0.34.0 [INFO] [stderr] Compiling serde_json v1.0.108 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.39 [INFO] [stderr] Checking pnet_sys v0.34.0 [INFO] [stderr] Checking nix v0.26.4 [INFO] [stderr] Compiling regex-automata v0.4.3 [INFO] [stderr] Compiling serde_derive v1.0.192 [INFO] [stderr] Compiling thiserror-impl v1.0.50 [INFO] [stderr] Compiling regex v1.10.2 [INFO] [stderr] Checking netstat2 v0.9.1 [INFO] [stderr] Compiling pnet_macros v0.34.0 [INFO] [stderr] Checking pnet_packet v0.34.0 [INFO] [stderr] Checking pnet_transport v0.34.0 [INFO] [stderr] Checking ipnetwork v0.20.0 [INFO] [stderr] Checking pnet_datalink v0.34.0 [INFO] [stderr] Checking network-traffic v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `interface_name`, `source_ip`, and `destination_ip` are never read [INFO] [stdout] --> src/network/analyze.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Frame { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 17 | pub interface_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub source_ip: IpAddr, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 23 | pub source_port: u16, [INFO] [stdout] 24 | pub destination_ip: IpAddr, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Frame` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `another_frames` is never read [INFO] [stdout] --> src/network/network_traffic.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct NetworkTraffic { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 21 | pub frames: Arc>>, [INFO] [stdout] 22 | pub another_frames: Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Lo`, `Utun`, `Awdl`, `Llw`, `Bridge`, and `P2p` are never constructed [INFO] [stdout] --> src/network/config.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum InterfaceType { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 13 | Lo, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 16 | Utun, [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | Awdl, [INFO] [stdout] | ^^^^ [INFO] [stdout] 18 | Llw, [INFO] [stdout] | ^^^ [INFO] [stdout] 19 | Bridge, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 20 | P2p, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InterfaceType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/network/config.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/network/network_traffic.rs:236:43 [INFO] [stdout] | [INFO] [stdout] 227 | .map(|(package_sender, package_receiver, item)| { [INFO] [stdout] | ---------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 228 | println!("interface {}, start", &item.name); [INFO] [stdout] 229 | let tx = tx.clone(); [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 230 | let (stop_tx, stop_rx) = mpsc::channel(); [INFO] [stdout] | ------- ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 231 | let thread = std::thread::Builder::new() [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 236 | (stop_tx, package_sender, thread.unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `network-traffic` (bin "network-traffic" test) due to 2 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/lib.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let v = Vec::from_raw_parts(statistics.list as *mut ProcessPacketLength, statistics.length, statistics.length); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Lo`, `Utun`, `Awdl`, `Llw`, `Bridge`, and `P2p` are never constructed [INFO] [stdout] --> src/network/config.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum InterfaceType { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 13 | Lo, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 16 | Utun, [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | Awdl, [INFO] [stdout] | ^^^^ [INFO] [stdout] 18 | Llw, [INFO] [stdout] | ^^^ [INFO] [stdout] 19 | Bridge, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 20 | P2p, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InterfaceType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/network/config.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing [INFO] [stdout] --> src/lib.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | drop(unsafe { [INFO] [stdout] | _____^ - [INFO] [stdout] | |__________| [INFO] [stdout] 46 | || let v = Vec::from_raw_parts(statistics.list as *mut ProcessPacketLength, statistics.length, statistics.length); [INFO] [stdout] 47 | || }); [INFO] [stdout] | ||_____-^ [INFO] [stdout] | |______| [INFO] [stdout] | argument has type `()` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_copy_types)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 45 ~ let _ = unsafe { [INFO] [stdout] 46 | let v = Vec::from_raw_parts(statistics.list as *mut ProcessPacketLength, statistics.length, statistics.length); [INFO] [stdout] 47 ~ }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/network/network_traffic.rs:236:43 [INFO] [stdout] | [INFO] [stdout] 227 | .map(|(package_sender, package_receiver, item)| { [INFO] [stdout] | ---------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 228 | println!("interface {}, start", &item.name); [INFO] [stdout] 229 | let tx = tx.clone(); [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 230 | let (stop_tx, stop_rx) = mpsc::channel(); [INFO] [stdout] | ------- ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 231 | let thread = std::thread::Builder::new() [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 236 | (stop_tx, package_sender, thread.unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `network-traffic` (lib test) due to 2 previous errors; 3 warnings emitted [INFO] [stdout] error: aborting due to 1 previous error; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `network-traffic` (lib) due to 2 previous errors; 4 warnings emitted [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/lib.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let v = Vec::from_raw_parts(statistics.list as *mut ProcessPacketLength, statistics.length, statistics.length); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Lo`, `Utun`, `Awdl`, `Llw`, `Bridge`, and `P2p` are never constructed [INFO] [stdout] --> src/network/config.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum InterfaceType { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 13 | Lo, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 16 | Utun, [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | Awdl, [INFO] [stdout] | ^^^^ [INFO] [stdout] 18 | Llw, [INFO] [stdout] | ^^^ [INFO] [stdout] 19 | Bridge, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 20 | P2p, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InterfaceType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/network/config.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `NetworkTraffic` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `network_traffic` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing [INFO] [stdout] --> src/lib.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | drop(unsafe { [INFO] [stdout] | _____^ - [INFO] [stdout] | |__________| [INFO] [stdout] 46 | || let v = Vec::from_raw_parts(statistics.list as *mut ProcessPacketLength, statistics.length, statistics.length); [INFO] [stdout] 47 | || }); [INFO] [stdout] | ||_____-^ [INFO] [stdout] | |______| [INFO] [stdout] | argument has type `()` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_copy_types)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 45 ~ let _ = unsafe { [INFO] [stdout] 46 | let v = Vec::from_raw_parts(statistics.list as *mut ProcessPacketLength, statistics.length, statistics.length); [INFO] [stdout] 47 ~ }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/network/network_traffic.rs:236:43 [INFO] [stdout] | [INFO] [stdout] 227 | .map(|(package_sender, package_receiver, item)| { [INFO] [stdout] | ---------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 228 | println!("interface {}, start", &item.name); [INFO] [stdout] 229 | let tx = tx.clone(); [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 230 | let (stop_tx, stop_rx) = mpsc::channel(); [INFO] [stdout] | ------- ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 231 | let thread = std::thread::Builder::new() [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 236 | (stop_tx, package_sender, thread.unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `interface_name`, `source_ip`, and `destination_ip` are never read [INFO] [stdout] --> src/network/analyze.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Frame { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 17 | pub interface_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub source_ip: IpAddr, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 23 | pub source_port: u16, [INFO] [stdout] 24 | pub destination_ip: IpAddr, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Frame` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `another_frames` is never read [INFO] [stdout] --> src/network/network_traffic.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct NetworkTraffic { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 21 | pub frames: Arc>>, [INFO] [stdout] 22 | pub another_frames: Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Lo`, `Utun`, `Awdl`, `Llw`, `Bridge`, and `P2p` are never constructed [INFO] [stdout] --> src/network/config.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum InterfaceType { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 13 | Lo, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 16 | Utun, [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | Awdl, [INFO] [stdout] | ^^^^ [INFO] [stdout] 18 | Llw, [INFO] [stdout] | ^^^ [INFO] [stdout] 19 | Bridge, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 20 | P2p, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InterfaceType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/network/config.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/network/network_traffic.rs:236:43 [INFO] [stdout] | [INFO] [stdout] 227 | .map(|(package_sender, package_receiver, item)| { [INFO] [stdout] | ---------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 228 | println!("interface {}, start", &item.name); [INFO] [stdout] 229 | let tx = tx.clone(); [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 230 | let (stop_tx, stop_rx) = mpsc::channel(); [INFO] [stdout] | ------- ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 231 | let thread = std::thread::Builder::new() [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 236 | (stop_tx, package_sender, thread.unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `network-traffic` (bin "network-traffic") due to 2 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "d05d6b93e253a0322cd49b47979a162a37b3351d9b6c05c91a9a3b8a7bd097fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d05d6b93e253a0322cd49b47979a162a37b3351d9b6c05c91a9a3b8a7bd097fe", kill_on_drop: false }` [INFO] [stdout] d05d6b93e253a0322cd49b47979a162a37b3351d9b6c05c91a9a3b8a7bd097fe