[INFO] cloning repository https://github.com/AlphaGodzilla/PartitionLink
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AlphaGodzilla/PartitionLink" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlphaGodzilla%2FPartitionLink", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlphaGodzilla%2FPartitionLink'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] b16f35fa03438a4eae961fdd9c5afa7573317939
[INFO] checking AlphaGodzilla/PartitionLink against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlphaGodzilla%2FPartitionLink" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/AlphaGodzilla/PartitionLink on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/AlphaGodzilla/PartitionLink
[INFO] finished tweaking git repo https://github.com/AlphaGodzilla/PartitionLink
[INFO] tweaked toml for git repo https://github.com/AlphaGodzilla/PartitionLink written to /workspace/builds/worker-6-tc1/source/Cargo.toml
[INFO] crate git repo https://github.com/AlphaGodzilla/PartitionLink 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] Updating crates.io index
[INFO] [stderr] Downloading crates ...
[INFO] [stderr] Downloaded tokio-context v0.1.3
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 5d0cc32c0d140607baf18fef717477554b4077562b3cd17004f3b2641d858af1
[INFO] running `Command { std: "docker" "start" "-a" "5d0cc32c0d140607baf18fef717477554b4077562b3cd17004f3b2641d858af1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "5d0cc32c0d140607baf18fef717477554b4077562b3cd17004f3b2641d858af1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5d0cc32c0d140607baf18fef717477554b4077562b3cd17004f3b2641d858af1", kill_on_drop: false }`
[INFO] [stdout] 5d0cc32c0d140607baf18fef717477554b4077562b3cd17004f3b2641d858af1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 23afe9e288a281d6c6b71ed82eb80918ec5cdf90e43cdb92b387df9a4b96563c
[INFO] running `Command { std: "docker" "start" "-a" "23afe9e288a281d6c6b71ed82eb80918ec5cdf90e43cdb92b387df9a4b96563c", kill_on_drop: false }`
[INFO] [stderr] Checking memchr v2.7.4
[INFO] [stderr] Compiling serde v1.0.208
[INFO] [stderr] Checking smallvec v1.13.2
[INFO] [stderr] Compiling cc v1.1.8
[INFO] [stderr] Checking regex-syntax v0.8.4
[INFO] [stderr] Compiling syn v2.0.72
[INFO] [stderr] Checking utf8parse v0.2.2
[INFO] [stderr] Compiling version_check v0.9.5
[INFO] [stderr] Checking gimli v0.29.0
[INFO] [stderr] Checking parking_lot_core v0.9.10
[INFO] [stderr] Compiling thiserror v1.0.63
[INFO] [stderr] Checking miniz_oxide v0.7.4
[INFO] [stderr] Checking parking_lot v0.12.3
[INFO] [stderr] Compiling ahash v0.8.11
[INFO] [stderr] Checking aho-corasick v1.1.3
[INFO] [stderr] Checking object v0.36.3
[INFO] [stderr] Checking anstyle-parse v0.2.5
[INFO] [stderr] Checking getrandom v0.2.15
[INFO] [stderr] Checking mio v1.0.1
[INFO] [stderr] Compiling anyhow v1.0.86
[INFO] [stderr] Checking anstyle-query v1.1.1
[INFO] [stderr] Compiling serde_json v1.0.125
[INFO] [stderr] Checking anstyle v1.0.8
[INFO] [stderr] Checking colorchoice v1.0.2
[INFO] [stderr] Checking rustc-demangle v0.1.24
[INFO] [stderr] Checking is_terminal_polyfill v1.70.1
[INFO] [stderr] Checking anstream v0.6.15
[INFO] [stderr] Checking cesu8 v1.1.0
[INFO] [stderr] Checking once_cell v1.19.0
[INFO] [stderr] Compiling backtrace v0.3.73
[INFO] [stderr] Checking regex-automata v0.4.7
[INFO] [stderr] Checking zerocopy v0.7.35
[INFO] [stderr] Checking humantime v2.1.0
[INFO] [stderr] Checking jni-sys v0.3.0
[INFO] [stderr] Checking uuid v1.10.0
[INFO] [stderr] Checking addr2line v0.22.0
[INFO] [stderr] Compiling serde_derive v1.0.208
[INFO] [stderr] Compiling tokio-macros v2.4.0
[INFO] [stderr] Compiling thiserror-impl v1.0.63
[INFO] [stderr] Compiling async-trait v0.1.81
[INFO] [stderr] Checking regex v1.10.6
[INFO] [stderr] Checking env_filter v0.1.2
[INFO] [stderr] Checking env_logger v0.11.5
[INFO] [stderr] Checking bytes v1.7.1
[INFO] [stderr] Checking combine v4.6.7
[INFO] [stderr] Checking tokio v1.39.2
[INFO] [stderr] Checking tokio-context v0.1.3
[INFO] [stderr] Checking jni v0.21.1
[INFO] [stderr] Checking PartitionLink v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `log::debug`
[INFO] [stdout] --> src/lib.rs:10:5
[INFO] [stdout] |
[INFO] [stdout] 10 | use log::debug;
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `log::debug`
[INFO] [stdout] --> src/lib.rs:10:5
[INFO] [stdout] |
[INFO] [stdout] 10 | use log::debug;
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unreachable expression
[INFO] [stdout] --> src/client.rs:36:5
[INFO] [stdout] |
[INFO] [stdout] 30 | / loop {
[INFO] [stdout] 31 | | time::sleep(Duration::from_secs(1)).await;
[INFO] [stdout] 32 | | debug!("准备写入, {:?}", payload_bytes);
[INFO] [stdout] 33 | | stream.write(payload_bytes).await?;
[INFO] [stdout] 34 | | debug!("写入完成");
[INFO] [stdout] 35 | | }
[INFO] [stdout] | |_____- any code following this expression is unreachable
[INFO] [stdout] 36 | Ok(())
[INFO] [stdout] | ^^^^^^ unreachable expression
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unreachable expression
[INFO] [stdout] --> src/client.rs:36:5
[INFO] [stdout] |
[INFO] [stdout] 30 | / loop {
[INFO] [stdout] 31 | | time::sleep(Duration::from_secs(1)).await;
[INFO] [stdout] 32 | | debug!("准备写入, {:?}", payload_bytes);
[INFO] [stdout] 33 | | stream.write(payload_bytes).await?;
[INFO] [stdout] 34 | | debug!("写入完成");
[INFO] [stdout] 35 | | }
[INFO] [stdout] | |_____- any code following this expression is unreachable
[INFO] [stdout] 36 | Ok(())
[INFO] [stdout] | ^^^^^^ unreachable expression
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `frame`
[INFO] [stdout] --> src/cmd_server.rs:85:41
[INFO] [stdout] |
[INFO] [stdout] 85 | pub async fn write_frame(&mut self, frame: &Frame) -> anyhow::Result<()> {
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_frame`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `frame`
[INFO] [stdout] --> src/cmd_server.rs:85:41
[INFO] [stdout] |
[INFO] [stdout] 85 | pub async fn write_frame(&mut self, frame: &Frame) -> anyhow::Result<()> {
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_frame`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variants `Incomplete`, `MissMatch`, and `Complete` are never constructed
[INFO] [stdout] --> src/protocol/frame.rs:13:5
[INFO] [stdout] |
[INFO] [stdout] 12 | pub enum FrameMatchResult<'a> {
[INFO] [stdout] | ---------------- variants in this enum
[INFO] [stdout] 13 | Incomplete(&'a str),
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout] 14 | MissMatch(&'a str),
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout] 15 | Complete,
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `FrameMatchResult` has derived impls for the traits `Debug` and `Clone`, 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: associated items `set_header`, `parse`, `check`, and `is_last` are never used
[INFO] [stdout] --> src/protocol/frame.rs:39:12
[INFO] [stdout] |
[INFO] [stdout] 25 | impl Frame {
[INFO] [stdout] | ---------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 39 | pub fn set_header(&mut self, header: Header) -> &mut Frame {
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 77 | pub fn parse(cursor: &mut Cursor<&[u8]>) -> anyhow::Result {
[INFO] [stdout] | ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 99 | pub fn check<'a>(cursor: &mut Cursor<&[u8]>) -> anyhow::Result> {
[INFO] [stdout] | ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 149 | pub fn is_last(&self) -> bool {
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: method `inner_value` is never used
[INFO] [stdout] --> src/protocol/length.rs:11:12
[INFO] [stdout] |
[INFO] [stdout] 6 | impl Length {
[INFO] [stdout] | ----------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 11 | pub fn inner_value(&self) -> u8 {
[INFO] [stdout] | ^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `frame`
[INFO] [stdout] --> src/cmd_server.rs:85:41
[INFO] [stdout] |
[INFO] [stdout] 85 | pub async fn write_frame(&mut self, frame: &Frame) -> anyhow::Result<()> {
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_frame`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated items `set_header`, `parse`, and `is_last` are never used
[INFO] [stdout] --> src/protocol/frame.rs:39:12
[INFO] [stdout] |
[INFO] [stdout] 25 | impl Frame {
[INFO] [stdout] | ---------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 39 | pub fn set_header(&mut self, header: Header) -> &mut Frame {
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 77 | pub fn parse(cursor: &mut Cursor<&[u8]>) -> anyhow::Result {
[INFO] [stdout] | ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 149 | pub fn is_last(&self) -> bool {
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(dead_code)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: method `inner_value` is never used
[INFO] [stdout] --> src/protocol/length.rs:11:12
[INFO] [stdout] |
[INFO] [stdout] 6 | impl Length {
[INFO] [stdout] | ----------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 11 | pub fn inner_value(&self) -> u8 {
[INFO] [stdout] | ^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: 3 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: 4 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `cfg`
[INFO] [stdout] --> src/cmd_server.rs:133:38
[INFO] [stdout] |
[INFO] [stdout] 133 | async fn connection(ctx: RefContext, cfg: Arc, stream: TcpStream) {
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cfg`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `frame`
[INFO] [stdout] --> src/cmd_server.rs:85:41
[INFO] [stdout] |
[INFO] [stdout] 85 | pub async fn write_frame(&mut self, frame: &Frame) -> anyhow::Result<()> {
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_frame`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `cfg`
[INFO] [stdout] --> src/cmd_server.rs:133:38
[INFO] [stdout] |
[INFO] [stdout] 133 | async fn connection(ctx: RefContext, cfg: Arc, stream: TcpStream) {
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cfg`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `cfg`
[INFO] [stdout] --> src/cmd_server.rs:133:38
[INFO] [stdout] |
[INFO] [stdout] 133 | async fn connection(ctx: RefContext, cfg: Arc, stream: TcpStream) {
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cfg`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `cfg`
[INFO] [stdout] --> src/cmd_server.rs:133:38
[INFO] [stdout] |
[INFO] [stdout] 133 | async fn connection(ctx: RefContext, cfg: Arc, stream: TcpStream) {
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cfg`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: method `write_frame` is never used
[INFO] [stdout] --> src/cmd_server.rs:85:18
[INFO] [stdout] |
[INFO] [stdout] 26 | impl Connection {
[INFO] [stdout] | --------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 85 | pub async fn write_frame(&mut self, frame: &Frame) -> anyhow::Result<()> {
[INFO] [stdout] | ^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(dead_code)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `cmd` is never read
[INFO] [stdout] --> src/command.rs:17:9
[INFO] [stdout] |
[INFO] [stdout] 16 | pub struct Command {
[INFO] [stdout] | ------- field in this struct
[INFO] [stdout] 17 | pub cmd: CMD,
[INFO] [stdout] | ^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `Command` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variants `String`, `Bytes`, `List`, and `Hash` are never constructed
[INFO] [stdout] --> src/db.rs:4:5
[INFO] [stdout] |
[INFO] [stdout] 3 | pub enum DBValue {
[INFO] [stdout] | ------- variants in this enum
[INFO] [stdout] 4 | String(String),
[INFO] [stdout] | ^^^^^^
[INFO] [stdout] 5 | Bytes(Vec),
[INFO] [stdout] | ^^^^^
[INFO] [stdout] 6 | List(Vec),
[INFO] [stdout] | ^^^^
[INFO] [stdout] 7 | Hash(AHashMap),
[INFO] [stdout] | ^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `db` is never read
[INFO] [stdout] --> src/db.rs:11:5
[INFO] [stdout] |
[INFO] [stdout] 10 | pub struct Database {
[INFO] [stdout] | -------- field in this struct
[INFO] [stdout] 11 | db: AHashMap,
[INFO] [stdout] | ^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: methods `str_set` and `str_get` are never used
[INFO] [stdout] --> src/db.rs:27:8
[INFO] [stdout] |
[INFO] [stdout] 20 | impl Database {
[INFO] [stdout] | ------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 27 | fn str_set(&mut self, key: String, value: DBValue) {
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 31 | fn str_get(&mut self, key: &str) -> Option<&DBValue> {
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: method `exist` is never used
[INFO] [stdout] --> src/node.rs:73:12
[INFO] [stdout] |
[INFO] [stdout] 52 | impl NodeTable {
[INFO] [stdout] | -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 73 | pub fn exist(&self, id: &str) -> anyhow::Result {
[INFO] [stdout] | ^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `encode_raw` is never read
[INFO] [stdout] --> src/protocol/frame.rs:23:5
[INFO] [stdout] |
[INFO] [stdout] 19 | pub struct Frame {
[INFO] [stdout] | ----- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 23 | encode_raw: Option,
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `Frame` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: methods `set_head`, `set_op`, and `encode` are never used
[INFO] [stdout] --> src/protocol/frame.rs:44:12
[INFO] [stdout] |
[INFO] [stdout] 25 | impl Frame {
[INFO] [stdout] | ---------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 44 | pub fn set_head(&mut self, head: Head) -> &mut Frame {
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 49 | pub fn set_op(&mut self, cmd: Operator) -> &mut Frame {
[INFO] [stdout] | ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 64 | pub fn encode(&mut self) -> &[u8] {
[INFO] [stdout] | ^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: 10 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `env`
[INFO] [stdout] --> src/lib.rs:52:47
[INFO] [stdout] |
[INFO] [stdout] 52 | pub extern "C" fn Java_TokioRuntime_start(mut env: JNIEnv, _class: JClass) {
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/lib.rs:52:43
[INFO] [stdout] |
[INFO] [stdout] 52 | pub extern "C" fn Java_TokioRuntime_start(mut env: JNIEnv, _class: JClass) {
[INFO] [stdout] | ----^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `env`
[INFO] [stdout] --> src/lib.rs:87:49
[INFO] [stdout] |
[INFO] [stdout] 87 | pub extern "C" fn Java_SimpleInMemDB_makeDB(mut env: JNIEnv, _class: JClass) -> jlong {
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/lib.rs:87:45
[INFO] [stdout] |
[INFO] [stdout] 87 | pub extern "C" fn Java_SimpleInMemDB_makeDB(mut env: JNIEnv, _class: JClass) -> jlong {
[INFO] [stdout] | ----^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `env`
[INFO] [stdout] --> src/lib.rs:93:9
[INFO] [stdout] |
[INFO] [stdout] 93 | mut env: JNIEnv,
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/lib.rs:93:5
[INFO] [stdout] |
[INFO] [stdout] 93 | mut env: JNIEnv,
[INFO] [stdout] | ----^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: method `write_frame` is never used
[INFO] [stdout] --> src/cmd_server.rs:85:18
[INFO] [stdout] |
[INFO] [stdout] 26 | impl Connection {
[INFO] [stdout] | --------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 85 | pub async fn write_frame(&mut self, frame: &Frame) -> anyhow::Result<()> {
[INFO] [stdout] | ^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(dead_code)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `cmd` is never read
[INFO] [stdout] --> src/command.rs:17:9
[INFO] [stdout] |
[INFO] [stdout] 16 | pub struct Command {
[INFO] [stdout] | ------- field in this struct
[INFO] [stdout] 17 | pub cmd: CMD,
[INFO] [stdout] | ^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `Command` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variants `String`, `Bytes`, `List`, and `Hash` are never constructed
[INFO] [stdout] --> src/db.rs:4:5
[INFO] [stdout] |
[INFO] [stdout] 3 | pub enum DBValue {
[INFO] [stdout] | ------- variants in this enum
[INFO] [stdout] 4 | String(String),
[INFO] [stdout] | ^^^^^^
[INFO] [stdout] 5 | Bytes(Vec),
[INFO] [stdout] | ^^^^^
[INFO] [stdout] 6 | List(Vec),
[INFO] [stdout] | ^^^^
[INFO] [stdout] 7 | Hash(AHashMap),
[INFO] [stdout] | ^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `db` is never read
[INFO] [stdout] --> src/db.rs:11:5
[INFO] [stdout] |
[INFO] [stdout] 10 | pub struct Database {
[INFO] [stdout] | -------- field in this struct
[INFO] [stdout] 11 | db: AHashMap,
[INFO] [stdout] | ^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: methods `str_set` and `str_get` are never used
[INFO] [stdout] --> src/db.rs:27:8
[INFO] [stdout] |
[INFO] [stdout] 20 | impl Database {
[INFO] [stdout] | ------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 27 | fn str_set(&mut self, key: String, value: DBValue) {
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 31 | fn str_get(&mut self, key: &str) -> Option<&DBValue> {
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: method `exist` is never used
[INFO] [stdout] --> src/node.rs:73:12
[INFO] [stdout] |
[INFO] [stdout] 52 | impl NodeTable {
[INFO] [stdout] | -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 73 | pub fn exist(&self, id: &str) -> anyhow::Result {
[INFO] [stdout] | ^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `encode_raw` is never read
[INFO] [stdout] --> src/protocol/frame.rs:23:5
[INFO] [stdout] |
[INFO] [stdout] 19 | pub struct Frame {
[INFO] [stdout] | ----- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 23 | encode_raw: Option,
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `Frame` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: methods `set_head`, `set_op`, and `encode` are never used
[INFO] [stdout] --> src/protocol/frame.rs:44:12
[INFO] [stdout] |
[INFO] [stdout] 25 | impl Frame {
[INFO] [stdout] | ---------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 44 | pub fn set_head(&mut self, head: Head) -> &mut Frame {
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 49 | pub fn set_op(&mut self, cmd: Operator) -> &mut Frame {
[INFO] [stdout] | ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 64 | pub fn encode(&mut self) -> &[u8] {
[INFO] [stdout] | ^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: crate `PartitionLink` should have a snake case name
[INFO] [stdout] |
[INFO] [stdout] = help: convert the identifier to snake case: `partition_link`
[INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `env`
[INFO] [stdout] --> src/lib.rs:52:47
[INFO] [stdout] |
[INFO] [stdout] 52 | pub extern "C" fn Java_TokioRuntime_start(mut env: JNIEnv, _class: JClass) {
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/lib.rs:52:43
[INFO] [stdout] |
[INFO] [stdout] 52 | pub extern "C" fn Java_TokioRuntime_start(mut env: JNIEnv, _class: JClass) {
[INFO] [stdout] | ----^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `env`
[INFO] [stdout] --> src/lib.rs:87:49
[INFO] [stdout] |
[INFO] [stdout] 87 | pub extern "C" fn Java_SimpleInMemDB_makeDB(mut env: JNIEnv, _class: JClass) -> jlong {
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/lib.rs:87:45
[INFO] [stdout] |
[INFO] [stdout] 87 | pub extern "C" fn Java_SimpleInMemDB_makeDB(mut env: JNIEnv, _class: JClass) -> jlong {
[INFO] [stdout] | ----^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `env`
[INFO] [stdout] --> src/lib.rs:93:9
[INFO] [stdout] |
[INFO] [stdout] 93 | mut env: JNIEnv,
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/lib.rs:93:5
[INFO] [stdout] |
[INFO] [stdout] 93 | mut env: JNIEnv,
[INFO] [stdout] | ----^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: 18 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: method `write_frame` is never used
[INFO] [stdout] --> src/cmd_server.rs:85:18
[INFO] [stdout] |
[INFO] [stdout] 26 | impl Connection {
[INFO] [stdout] | --------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 85 | pub async fn write_frame(&mut self, frame: &Frame) -> anyhow::Result<()> {
[INFO] [stdout] | ^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(dead_code)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `cmd` is never read
[INFO] [stdout] --> src/command.rs:17:9
[INFO] [stdout] |
[INFO] [stdout] 16 | pub struct Command {
[INFO] [stdout] | ------- field in this struct
[INFO] [stdout] 17 | pub cmd: CMD,
[INFO] [stdout] | ^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `Command` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variants `String`, `Bytes`, `List`, and `Hash` are never constructed
[INFO] [stdout] --> src/db.rs:4:5
[INFO] [stdout] |
[INFO] [stdout] 3 | pub enum DBValue {
[INFO] [stdout] | ------- variants in this enum
[INFO] [stdout] 4 | String(String),
[INFO] [stdout] | ^^^^^^
[INFO] [stdout] 5 | Bytes(Vec),
[INFO] [stdout] | ^^^^^
[INFO] [stdout] 6 | List(Vec),
[INFO] [stdout] | ^^^^
[INFO] [stdout] 7 | Hash(AHashMap),
[INFO] [stdout] | ^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `db` is never read
[INFO] [stdout] --> src/db.rs:11:5
[INFO] [stdout] |
[INFO] [stdout] 10 | pub struct Database {
[INFO] [stdout] | -------- field in this struct
[INFO] [stdout] 11 | db: AHashMap,
[INFO] [stdout] | ^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: methods `str_set` and `str_get` are never used
[INFO] [stdout] --> src/db.rs:27:8
[INFO] [stdout] |
[INFO] [stdout] 20 | impl Database {
[INFO] [stdout] | ------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 27 | fn str_set(&mut self, key: String, value: DBValue) {
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 31 | fn str_get(&mut self, key: &str) -> Option<&DBValue> {
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: method `exist` is never used
[INFO] [stdout] --> src/node.rs:73:12
[INFO] [stdout] |
[INFO] [stdout] 52 | impl NodeTable {
[INFO] [stdout] | -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 73 | pub fn exist(&self, id: &str) -> anyhow::Result {
[INFO] [stdout] | ^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `encode_raw` is never read
[INFO] [stdout] --> src/protocol/frame.rs:23:5
[INFO] [stdout] |
[INFO] [stdout] 19 | pub struct Frame {
[INFO] [stdout] | ----- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 23 | encode_raw: Option,
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `Frame` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: methods `set_head`, `set_op`, and `encode` are never used
[INFO] [stdout] --> src/protocol/frame.rs:44:12
[INFO] [stdout] |
[INFO] [stdout] 25 | impl Frame {
[INFO] [stdout] | ---------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 44 | pub fn set_head(&mut self, head: Head) -> &mut Frame {
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 49 | pub fn set_op(&mut self, cmd: Operator) -> &mut Frame {
[INFO] [stdout] | ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 64 | pub fn encode(&mut self) -> &[u8] {
[INFO] [stdout] | ^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: method `write_frame` is never used
[INFO] [stdout] --> src/cmd_server.rs:85:18
[INFO] [stdout] |
[INFO] [stdout] 26 | impl Connection {
[INFO] [stdout] | --------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 85 | pub async fn write_frame(&mut self, frame: &Frame) -> anyhow::Result<()> {
[INFO] [stdout] | ^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(dead_code)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `cmd` is never read
[INFO] [stdout] --> src/command.rs:17:9
[INFO] [stdout] |
[INFO] [stdout] 16 | pub struct Command {
[INFO] [stdout] | ------- field in this struct
[INFO] [stdout] 17 | pub cmd: CMD,
[INFO] [stdout] | ^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `Command` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variants `String`, `Bytes`, `List`, and `Hash` are never constructed
[INFO] [stdout] --> src/db.rs:4:5
[INFO] [stdout] |
[INFO] [stdout] 3 | pub enum DBValue {
[INFO] [stdout] | ------- variants in this enum
[INFO] [stdout] 4 | String(String),
[INFO] [stdout] | ^^^^^^
[INFO] [stdout] 5 | Bytes(Vec),
[INFO] [stdout] | ^^^^^
[INFO] [stdout] 6 | List(Vec),
[INFO] [stdout] | ^^^^
[INFO] [stdout] 7 | Hash(AHashMap),
[INFO] [stdout] | ^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `db` is never read
[INFO] [stdout] --> src/db.rs:11:5
[INFO] [stdout] |
[INFO] [stdout] 10 | pub struct Database {
[INFO] [stdout] | -------- field in this struct
[INFO] [stdout] 11 | db: AHashMap,
[INFO] [stdout] | ^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: methods `str_set` and `str_get` are never used
[INFO] [stdout] --> src/db.rs:27:8
[INFO] [stdout] |
[INFO] [stdout] 20 | impl Database {
[INFO] [stdout] | ------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 27 | fn str_set(&mut self, key: String, value: DBValue) {
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 31 | fn str_get(&mut self, key: &str) -> Option<&DBValue> {
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: method `exist` is never used
[INFO] [stdout] --> src/node.rs:73:12
[INFO] [stdout] |
[INFO] [stdout] 52 | impl NodeTable {
[INFO] [stdout] | -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 73 | pub fn exist(&self, id: &str) -> anyhow::Result {
[INFO] [stdout] | ^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `encode_raw` is never read
[INFO] [stdout] --> src/protocol/frame.rs:23:5
[INFO] [stdout] |
[INFO] [stdout] 19 | pub struct Frame {
[INFO] [stdout] | ----- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 23 | encode_raw: Option,
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `Frame` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: methods `set_head`, `set_op`, and `encode` are never used
[INFO] [stdout] --> src/protocol/frame.rs:44:12
[INFO] [stdout] |
[INFO] [stdout] 25 | impl Frame {
[INFO] [stdout] | ---------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 44 | pub fn set_head(&mut self, head: Head) -> &mut Frame {
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 49 | pub fn set_op(&mut self, cmd: Operator) -> &mut Frame {
[INFO] [stdout] | ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 64 | pub fn encode(&mut self) -> &[u8] {
[INFO] [stdout] | ^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: 17 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: 10 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.00s
[INFO] running `Command { std: "docker" "inspect" "23afe9e288a281d6c6b71ed82eb80918ec5cdf90e43cdb92b387df9a4b96563c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "23afe9e288a281d6c6b71ed82eb80918ec5cdf90e43cdb92b387df9a4b96563c", kill_on_drop: false }`
[INFO] [stdout] 23afe9e288a281d6c6b71ed82eb80918ec5cdf90e43cdb92b387df9a4b96563c
[INFO] checking AlphaGodzilla/PartitionLink against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlphaGodzilla%2FPartitionLink" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/AlphaGodzilla/PartitionLink on toolchain f9935d29d867449445ee008640ccca1bf1ae0889
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/AlphaGodzilla/PartitionLink
[INFO] finished tweaking git repo https://github.com/AlphaGodzilla/PartitionLink
[INFO] tweaked toml for git repo https://github.com/AlphaGodzilla/PartitionLink written to /workspace/builds/worker-6-tc2/source/Cargo.toml
[INFO] crate git repo https://github.com/AlphaGodzilla/PartitionLink 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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 3f0c8679395e47d412ff918918a41d043e84c9a43947379783efc0615dc9ad16
[INFO] running `Command { std: "docker" "start" "-a" "3f0c8679395e47d412ff918918a41d043e84c9a43947379783efc0615dc9ad16", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "3f0c8679395e47d412ff918918a41d043e84c9a43947379783efc0615dc9ad16", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3f0c8679395e47d412ff918918a41d043e84c9a43947379783efc0615dc9ad16", kill_on_drop: false }`
[INFO] [stdout] 3f0c8679395e47d412ff918918a41d043e84c9a43947379783efc0615dc9ad16
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 35af106fe1daefb4a55f470f03eee25d463e0847f77885d87c14197a2d40ad40
[INFO] running `Command { std: "docker" "start" "-a" "35af106fe1daefb4a55f470f03eee25d463e0847f77885d87c14197a2d40ad40", kill_on_drop: false }`
[INFO] [stderr] Checking memchr v2.7.4
[INFO] [stderr] Compiling serde v1.0.208
[INFO] [stderr] Compiling cc v1.1.8
[INFO] [stderr] Checking regex-syntax v0.8.4
[INFO] [stderr] Compiling syn v2.0.72
[INFO] [stderr] Checking smallvec v1.13.2
[INFO] [stderr] Compiling thiserror v1.0.63
[INFO] [stderr] Checking gimli v0.29.0
[INFO] [stderr] Checking parking_lot_core v0.9.10
[INFO] [stderr] Checking utf8parse v0.2.2
[INFO] [stderr] Compiling version_check v0.9.5
[INFO] [stderr] Checking anstyle-parse v0.2.5
[INFO] [stderr] Checking parking_lot v0.12.3
[INFO] [stderr] Checking miniz_oxide v0.7.4
[INFO] [stderr] Checking aho-corasick v1.1.3
[INFO] [stderr] Checking object v0.36.3
[INFO] [stderr] Compiling ahash v0.8.11
[INFO] [stderr] Checking getrandom v0.2.15
[INFO] [stderr] Checking mio v1.0.1
[INFO] [stderr] Checking rustc-demangle v0.1.24
[INFO] [stderr] Checking colorchoice v1.0.2
[INFO] [stderr] Checking anstyle-query v1.1.1
[INFO] [stderr] Checking anstyle v1.0.8
[INFO] [stderr] Checking is_terminal_polyfill v1.70.1
[INFO] [stderr] Compiling serde_json v1.0.125
[INFO] [stderr] Compiling anyhow v1.0.86
[INFO] [stderr] Checking anstream v0.6.15
[INFO] [stderr] Checking humantime v2.1.0
[INFO] [stderr] Checking regex-automata v0.4.7
[INFO] [stderr] Checking once_cell v1.19.0
[INFO] [stderr] Checking cesu8 v1.1.0
[INFO] [stderr] Checking zerocopy v0.7.35
[INFO] [stderr] Compiling backtrace v0.3.73
[INFO] [stderr] Checking jni-sys v0.3.0
[INFO] [stderr] Checking uuid v1.10.0
[INFO] [stderr] Checking addr2line v0.22.0
[INFO] [stderr] Compiling serde_derive v1.0.208
[INFO] [stderr] Compiling thiserror-impl v1.0.63
[INFO] [stderr] Compiling tokio-macros v2.4.0
[INFO] [stderr] Compiling async-trait v0.1.81
[INFO] [stderr] Checking regex v1.10.6
[INFO] [stderr] Checking env_filter v0.1.2
[INFO] [stderr] Checking env_logger v0.11.5
[INFO] [stderr] Checking bytes v1.7.1
[INFO] [stderr] Checking tokio v1.39.2
[INFO] [stderr] Checking combine v4.6.7
[INFO] [stderr] Checking tokio-context v0.1.3
[INFO] [stderr] Checking jni v0.21.1
[INFO] [stderr] Checking PartitionLink v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `log::debug`
[INFO] [stdout] --> src/lib.rs:10:5
[INFO] [stdout] |
[INFO] [stdout] 10 | use log::debug;
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unreachable expression
[INFO] [stdout] --> src/client.rs:36:5
[INFO] [stdout] |
[INFO] [stdout] 30 | / loop {
[INFO] [stdout] 31 | | time::sleep(Duration::from_secs(1)).await;
[INFO] [stdout] 32 | | debug!("准备写入, {:?}", payload_bytes);
[INFO] [stdout] 33 | | stream.write(payload_bytes).await?;
[INFO] [stdout] 34 | | debug!("写入完成");
[INFO] [stdout] 35 | | }
[INFO] [stdout] | |_____- any code following this expression is unreachable
[INFO] [stdout] 36 | Ok(())
[INFO] [stdout] | ^^^^^^ unreachable expression
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `log::debug`
[INFO] [stdout] --> src/lib.rs:10:5
[INFO] [stdout] |
[INFO] [stdout] 10 | use log::debug;
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `frame`
[INFO] [stdout] --> src/cmd_server.rs:85:41
[INFO] [stdout] |
[INFO] [stdout] 85 | pub async fn write_frame(&mut self, frame: &Frame) -> anyhow::Result<()> {
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_frame`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variants `Incomplete`, `MissMatch`, and `Complete` are never constructed
[INFO] [stdout] --> src/protocol/frame.rs:13:5
[INFO] [stdout] |
[INFO] [stdout] 12 | pub enum FrameMatchResult<'a> {
[INFO] [stdout] | ---------------- variants in this enum
[INFO] [stdout] 13 | Incomplete(&'a str),
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout] 14 | MissMatch(&'a str),
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout] 15 | Complete,
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `FrameMatchResult` has derived impls for the traits `Debug` and `Clone`, 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: associated items `set_header`, `parse`, `check`, and `is_last` are never used
[INFO] [stdout] --> src/protocol/frame.rs:39:12
[INFO] [stdout] |
[INFO] [stdout] 25 | impl Frame {
[INFO] [stdout] | ---------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 39 | pub fn set_header(&mut self, header: Header) -> &mut Frame {
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 77 | pub fn parse(cursor: &mut Cursor<&[u8]>) -> anyhow::Result {
[INFO] [stdout] | ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 99 | pub fn check<'a>(cursor: &mut Cursor<&[u8]>) -> anyhow::Result> {
[INFO] [stdout] | ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 149 | pub fn is_last(&self) -> bool {
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: method `inner_value` is never used
[INFO] [stdout] --> src/protocol/length.rs:11:12
[INFO] [stdout] |
[INFO] [stdout] 6 | impl Length {
[INFO] [stdout] | ----------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 11 | pub fn inner_value(&self) -> u8 {
[INFO] [stdout] | ^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `frame`
[INFO] [stdout] --> src/cmd_server.rs:85:41
[INFO] [stdout] |
[INFO] [stdout] 85 | pub async fn write_frame(&mut self, frame: &Frame) -> anyhow::Result<()> {
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_frame`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: 4 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `frame`
[INFO] [stdout] --> src/cmd_server.rs:85:41
[INFO] [stdout] |
[INFO] [stdout] 85 | pub async fn write_frame(&mut self, frame: &Frame) -> anyhow::Result<()> {
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_frame`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unreachable expression
[INFO] [stdout] --> src/client.rs:36:5
[INFO] [stdout] |
[INFO] [stdout] 30 | / loop {
[INFO] [stdout] 31 | | time::sleep(Duration::from_secs(1)).await;
[INFO] [stdout] 32 | | debug!("准备写入, {:?}", payload_bytes);
[INFO] [stdout] 33 | | stream.write(payload_bytes).await?;
[INFO] [stdout] 34 | | debug!("写入完成");
[INFO] [stdout] 35 | | }
[INFO] [stdout] | |_____- any code following this expression is unreachable
[INFO] [stdout] 36 | Ok(())
[INFO] [stdout] | ^^^^^^ unreachable expression
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `cfg`
[INFO] [stdout] --> src/cmd_server.rs:133:38
[INFO] [stdout] |
[INFO] [stdout] 133 | async fn connection(ctx: RefContext, cfg: Arc, stream: TcpStream) {
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cfg`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `frame`
[INFO] [stdout] --> src/cmd_server.rs:85:41
[INFO] [stdout] |
[INFO] [stdout] 85 | pub async fn write_frame(&mut self, frame: &Frame) -> anyhow::Result<()> {
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_frame`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated items `set_header`, `parse`, and `is_last` are never used
[INFO] [stdout] --> src/protocol/frame.rs:39:12
[INFO] [stdout] |
[INFO] [stdout] 25 | impl Frame {
[INFO] [stdout] | ---------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 39 | pub fn set_header(&mut self, header: Header) -> &mut Frame {
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 77 | pub fn parse(cursor: &mut Cursor<&[u8]>) -> anyhow::Result {
[INFO] [stdout] | ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 149 | pub fn is_last(&self) -> bool {
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(dead_code)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: method `inner_value` is never used
[INFO] [stdout] --> src/protocol/length.rs:11:12
[INFO] [stdout] |
[INFO] [stdout] 6 | impl Length {
[INFO] [stdout] | ----------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 11 | pub fn inner_value(&self) -> u8 {
[INFO] [stdout] | ^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `cfg`
[INFO] [stdout] --> src/cmd_server.rs:133:38
[INFO] [stdout] |
[INFO] [stdout] 133 | async fn connection(ctx: RefContext, cfg: Arc, stream: TcpStream) {
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cfg`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `cfg`
[INFO] [stdout] --> src/cmd_server.rs:133:38
[INFO] [stdout] |
[INFO] [stdout] 133 | async fn connection(ctx: RefContext, cfg: Arc, stream: TcpStream) {
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cfg`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: 3 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `cfg`
[INFO] [stdout] --> src/cmd_server.rs:133:38
[INFO] [stdout] |
[INFO] [stdout] 133 | async fn connection(ctx: RefContext, cfg: Arc, stream: TcpStream) {
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cfg`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `env`
[INFO] [stdout] --> src/lib.rs:52:47
[INFO] [stdout] |
[INFO] [stdout] 52 | pub extern "C" fn Java_TokioRuntime_start(mut env: JNIEnv, _class: JClass) {
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/lib.rs:52:43
[INFO] [stdout] |
[INFO] [stdout] 52 | pub extern "C" fn Java_TokioRuntime_start(mut env: JNIEnv, _class: JClass) {
[INFO] [stdout] | ----^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `env`
[INFO] [stdout] --> src/lib.rs:87:49
[INFO] [stdout] |
[INFO] [stdout] 87 | pub extern "C" fn Java_SimpleInMemDB_makeDB(mut env: JNIEnv, _class: JClass) -> jlong {
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/lib.rs:87:45
[INFO] [stdout] |
[INFO] [stdout] 87 | pub extern "C" fn Java_SimpleInMemDB_makeDB(mut env: JNIEnv, _class: JClass) -> jlong {
[INFO] [stdout] | ----^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `env`
[INFO] [stdout] --> src/lib.rs:93:9
[INFO] [stdout] |
[INFO] [stdout] 93 | mut env: JNIEnv,
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/lib.rs:93:5
[INFO] [stdout] |
[INFO] [stdout] 93 | mut env: JNIEnv,
[INFO] [stdout] | ----^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: method `write_frame` is never used
[INFO] [stdout] --> src/cmd_server.rs:85:18
[INFO] [stdout] |
[INFO] [stdout] 26 | impl Connection {
[INFO] [stdout] | --------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 85 | pub async fn write_frame(&mut self, frame: &Frame) -> anyhow::Result<()> {
[INFO] [stdout] | ^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(dead_code)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `cmd` is never read
[INFO] [stdout] --> src/command.rs:17:9
[INFO] [stdout] |
[INFO] [stdout] 16 | pub struct Command {
[INFO] [stdout] | ------- field in this struct
[INFO] [stdout] 17 | pub cmd: CMD,
[INFO] [stdout] | ^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `Command` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variants `String`, `Bytes`, `List`, and `Hash` are never constructed
[INFO] [stdout] --> src/db.rs:4:5
[INFO] [stdout] |
[INFO] [stdout] 3 | pub enum DBValue {
[INFO] [stdout] | ------- variants in this enum
[INFO] [stdout] 4 | String(String),
[INFO] [stdout] | ^^^^^^
[INFO] [stdout] 5 | Bytes(Vec),
[INFO] [stdout] | ^^^^^
[INFO] [stdout] 6 | List(Vec),
[INFO] [stdout] | ^^^^
[INFO] [stdout] 7 | Hash(AHashMap),
[INFO] [stdout] | ^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `db` is never read
[INFO] [stdout] --> src/db.rs:11:5
[INFO] [stdout] |
[INFO] [stdout] 10 | pub struct Database {
[INFO] [stdout] | -------- field in this struct
[INFO] [stdout] 11 | db: AHashMap,
[INFO] [stdout] | ^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: methods `str_set` and `str_get` are never used
[INFO] [stdout] --> src/db.rs:27:8
[INFO] [stdout] |
[INFO] [stdout] 20 | impl Database {
[INFO] [stdout] | ------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 27 | fn str_set(&mut self, key: String, value: DBValue) {
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 31 | fn str_get(&mut self, key: &str) -> Option<&DBValue> {
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: method `exist` is never used
[INFO] [stdout] --> src/node.rs:73:12
[INFO] [stdout] |
[INFO] [stdout] 52 | impl NodeTable {
[INFO] [stdout] | -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 73 | pub fn exist(&self, id: &str) -> anyhow::Result {
[INFO] [stdout] | ^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `encode_raw` is never read
[INFO] [stdout] --> src/protocol/frame.rs:23:5
[INFO] [stdout] |
[INFO] [stdout] 19 | pub struct Frame {
[INFO] [stdout] | ----- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 23 | encode_raw: Option,
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `Frame` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: methods `set_head`, `set_op`, and `encode` are never used
[INFO] [stdout] --> src/protocol/frame.rs:44:12
[INFO] [stdout] |
[INFO] [stdout] 25 | impl Frame {
[INFO] [stdout] | ---------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 44 | pub fn set_head(&mut self, head: Head) -> &mut Frame {
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 49 | pub fn set_op(&mut self, cmd: Operator) -> &mut Frame {
[INFO] [stdout] | ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 64 | pub fn encode(&mut self) -> &[u8] {
[INFO] [stdout] | ^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: crate `PartitionLink` should have a snake case name
[INFO] [stdout] |
[INFO] [stdout] = help: convert the identifier to snake case: `partition_link`
[INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default
[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/cmd_server.rs:30:21
[INFO] [stdout] |
[INFO] [stdout] 27 | pub fn new(stream: TcpStream) -> Self {
[INFO] [stdout] | ----------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 30 | buffer: BytesMut::new(),
[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: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021
[INFO] [stdout] --> src/discover.rs:118:12
[INFO] [stdout] |
[INFO] [stdout] 37 | let cfg = self.cfg.clone();
[INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 46 | let socket = Socket::new(Domain::IPV4, Type::DGRAM, Some(Protocol::UDP))?;
[INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 51 | let socket = UdpSocket::from_std(socket.into())?;
[INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 52 |
[INFO] [stdout] 53 | let socket = Arc::new(socket);
[INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 58 | return Err(anyhow::anyhow!("Multicast IP should be IPv4"));
[INFO] [stdout] | ---------------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 64 | let socket_ref = socket.clone();
[INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 67 | let ctx = parent_ctx.clone();
[INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 89 | let socket_ref = socket.clone();
[INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 92 | let (tx, rx) = tokio::sync::mpsc::channel(16);
[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] 93 | let ctx = parent_ctx.clone();
[INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 118 | Ok(Some(rx))
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout] | |
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] |
[INFO] [stdout] = warning: this changes meaning in Rust 2024
[INFO] [stdout] = note: for more information, see issue #123739
[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/runtime.rs:65:12
[INFO] [stdout] |
[INFO] [stdout] 25 | cfg: Arc,
[INFO] [stdout] | ---------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 26 | ) -> anyhow::Result<(JoinHandle<()>, JoinHandle<()>)> {
[INFO] [stdout] 27 | let mut node_table = NodeTable::new(cfg.clone());
[INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 28 | // 启动discover
[INFO] [stdout] 29 | let discover_ctx = ctx.clone();
[INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 30 | let mut discover_rev = start_discover(&discover_ctx, cfg.clone())?;
[INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 31 | let cfg_copy = cfg.clone();
[INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 32 | let ctx_copy = ctx.clone();
[INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 33 | let discover_handler = tokio::spawn(async move {
[INFO] [stdout] | ---------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 56 | let ctx_copy = ctx.clone();
[INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 57 | let cfg_copy = cfg.clone();
[INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 58 | let cmd_server_handler = tokio::spawn(async move {
[INFO] [stdout] | ------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 65 | Ok((discover_handler, cmd_server_handler))
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] | |
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] |
[INFO] [stdout] = warning: this changes meaning in Rust 2024
[INFO] [stdout] = note: for more information, see issue #123739
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: aborting due to 3 previous errors; 18 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] error: could not compile `PartitionLink` (lib) due to 4 previous errors; 18 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: method `write_frame` is never used
[INFO] [stdout] --> src/cmd_server.rs:85:18
[INFO] [stdout] |
[INFO] [stdout] 26 | impl Connection {
[INFO] [stdout] | --------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 85 | pub async fn write_frame(&mut self, frame: &Frame) -> anyhow::Result<()> {
[INFO] [stdout] | ^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(dead_code)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `cmd` is never read
[INFO] [stdout] --> src/command.rs:17:9
[INFO] [stdout] |
[INFO] [stdout] 16 | pub struct Command {
[INFO] [stdout] | ------- field in this struct
[INFO] [stdout] 17 | pub cmd: CMD,
[INFO] [stdout] | ^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `Command` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variants `String`, `Bytes`, `List`, and `Hash` are never constructed
[INFO] [stdout] --> src/db.rs:4:5
[INFO] [stdout] |
[INFO] [stdout] 3 | pub enum DBValue {
[INFO] [stdout] | ------- variants in this enum
[INFO] [stdout] 4 | String(String),
[INFO] [stdout] | ^^^^^^
[INFO] [stdout] 5 | Bytes(Vec),
[INFO] [stdout] | ^^^^^
[INFO] [stdout] 6 | List(Vec),
[INFO] [stdout] | ^^^^
[INFO] [stdout] 7 | Hash(AHashMap),
[INFO] [stdout] | ^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `db` is never read
[INFO] [stdout] --> src/db.rs:11:5
[INFO] [stdout] |
[INFO] [stdout] 10 | pub struct Database {
[INFO] [stdout] | -------- field in this struct
[INFO] [stdout] 11 | db: AHashMap,
[INFO] [stdout] | ^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: methods `str_set` and `str_get` are never used
[INFO] [stdout] --> src/db.rs:27:8
[INFO] [stdout] |
[INFO] [stdout] 20 | impl Database {
[INFO] [stdout] | ------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 27 | fn str_set(&mut self, key: String, value: DBValue) {
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 31 | fn str_get(&mut self, key: &str) -> Option<&DBValue> {
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: method `exist` is never used
[INFO] [stdout] --> src/node.rs:73:12
[INFO] [stdout] |
[INFO] [stdout] 52 | impl NodeTable {
[INFO] [stdout] | -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 73 | pub fn exist(&self, id: &str) -> anyhow::Result {
[INFO] [stdout] | ^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `encode_raw` is never read
[INFO] [stdout] --> src/protocol/frame.rs:23:5
[INFO] [stdout] |
[INFO] [stdout] 19 | pub struct Frame {
[INFO] [stdout] | ----- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 23 | encode_raw: Option,
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `Frame` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: methods `set_head`, `set_op`, and `encode` are never used
[INFO] [stdout] --> src/protocol/frame.rs:44:12
[INFO] [stdout] |
[INFO] [stdout] 25 | impl Frame {
[INFO] [stdout] | ---------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 44 | pub fn set_head(&mut self, head: Head) -> &mut Frame {
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 49 | pub fn set_op(&mut self, cmd: Operator) -> &mut Frame {
[INFO] [stdout] | ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 64 | pub fn encode(&mut self) -> &[u8] {
[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/cmd_server.rs:30:21
[INFO] [stdout] |
[INFO] [stdout] 27 | pub fn new(stream: TcpStream) -> Self {
[INFO] [stdout] | ----------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 30 | buffer: BytesMut::new(),
[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] warning: unused variable: `env`
[INFO] [stdout] --> src/lib.rs:52:47
[INFO] [stdout] |
[INFO] [stdout] 52 | pub extern "C" fn Java_TokioRuntime_start(mut env: JNIEnv, _class: JClass) {
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/lib.rs:52:43
[INFO] [stdout] |
[INFO] [stdout] 52 | pub extern "C" fn Java_TokioRuntime_start(mut env: JNIEnv, _class: JClass) {
[INFO] [stdout] | ----^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_mut)]` on by default
[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/discover.rs:118:12
[INFO] [stdout] |
[INFO] [stdout] 37 | let cfg = self.cfg.clone();
[INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 46 | let socket = Socket::new(Domain::IPV4, Type::DGRAM, Some(Protocol::UDP))?;
[INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 51 | let socket = UdpSocket::from_std(socket.into())?;
[INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 52 |
[INFO] [stdout] 53 | let socket = Arc::new(socket);
[INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 58 | return Err(anyhow::anyhow!("Multicast IP should be IPv4"));
[INFO] [stdout] | ---------------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 64 | let socket_ref = socket.clone();
[INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 67 | let ctx = parent_ctx.clone();
[INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 89 | let socket_ref = socket.clone();
[INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 92 | let (tx, rx) = tokio::sync::mpsc::channel(16);
[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] 93 | let ctx = parent_ctx.clone();
[INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 118 | Ok(Some(rx))
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout] | |
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] |
[INFO] [stdout] = warning: this changes meaning in Rust 2024
[INFO] [stdout] = note: for more information, see issue #123739
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `env`
[INFO] [stdout] --> src/lib.rs:87:49
[INFO] [stdout] |
[INFO] [stdout] 87 | pub extern "C" fn Java_SimpleInMemDB_makeDB(mut env: JNIEnv, _class: JClass) -> jlong {
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/lib.rs:87:45
[INFO] [stdout] |
[INFO] [stdout] 87 | pub extern "C" fn Java_SimpleInMemDB_makeDB(mut env: JNIEnv, _class: JClass) -> jlong {
[INFO] [stdout] | ----^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `env`
[INFO] [stdout] --> src/lib.rs:93:9
[INFO] [stdout] |
[INFO] [stdout] 93 | mut env: JNIEnv,
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env`
[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/runtime.rs:65:12
[INFO] [stdout] |
[INFO] [stdout] 25 | cfg: Arc,
[INFO] [stdout] | ---------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 26 | ) -> anyhow::Result<(JoinHandle<()>, JoinHandle<()>)> {
[INFO] [stdout] 27 | let mut node_table = NodeTable::new(cfg.clone());
[INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 28 | // 启动discover
[INFO] [stdout] 29 | let discover_ctx = ctx.clone();
[INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 30 | let mut discover_rev = start_discover(&discover_ctx, cfg.clone())?;
[INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 31 | let cfg_copy = cfg.clone();
[INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 32 | let ctx_copy = ctx.clone();
[INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 33 | let discover_handler = tokio::spawn(async move {
[INFO] [stdout] | ---------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 56 | let ctx_copy = ctx.clone();
[INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 57 | let cfg_copy = cfg.clone();
[INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 58 | let cmd_server_handler = tokio::spawn(async move {
[INFO] [stdout] | ------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 65 | Ok((discover_handler, cmd_server_handler))
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] | |
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] |
[INFO] [stdout] = warning: this changes meaning in Rust 2024
[INFO] [stdout] = note: for more information, see issue #123739
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/lib.rs:93:5
[INFO] [stdout] |
[INFO] [stdout] 93 | mut env: JNIEnv,
[INFO] [stdout] | ----^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: method `write_frame` is never used
[INFO] [stdout] --> src/cmd_server.rs:85:18
[INFO] [stdout] |
[INFO] [stdout] 26 | impl Connection {
[INFO] [stdout] | --------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 85 | pub async fn write_frame(&mut self, frame: &Frame) -> anyhow::Result<()> {
[INFO] [stdout] | ^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(dead_code)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `cmd` is never read
[INFO] [stdout] --> src/command.rs:17:9
[INFO] [stdout] |
[INFO] [stdout] 16 | pub struct Command {
[INFO] [stdout] | ------- field in this struct
[INFO] [stdout] 17 | pub cmd: CMD,
[INFO] [stdout] | ^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `Command` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variants `String`, `Bytes`, `List`, and `Hash` are never constructed
[INFO] [stdout] --> src/db.rs:4:5
[INFO] [stdout] |
[INFO] [stdout] 3 | pub enum DBValue {
[INFO] [stdout] | ------- variants in this enum
[INFO] [stdout] 4 | String(String),
[INFO] [stdout] | ^^^^^^
[INFO] [stdout] 5 | Bytes(Vec),
[INFO] [stdout] | ^^^^^
[INFO] [stdout] 6 | List(Vec),
[INFO] [stdout] | ^^^^
[INFO] [stdout] 7 | Hash(AHashMap),
[INFO] [stdout] | ^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `db` is never read
[INFO] [stdout] --> src/db.rs:11:5
[INFO] [stdout] |
[INFO] [stdout] 10 | pub struct Database {
[INFO] [stdout] | -------- field in this struct
[INFO] [stdout] 11 | db: AHashMap,
[INFO] [stdout] | ^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: methods `str_set` and `str_get` are never used
[INFO] [stdout] --> src/db.rs:27:8
[INFO] [stdout] |
[INFO] [stdout] 20 | impl Database {
[INFO] [stdout] | ------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 27 | fn str_set(&mut self, key: String, value: DBValue) {
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 31 | fn str_get(&mut self, key: &str) -> Option<&DBValue> {
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: method `exist` is never used
[INFO] [stdout] --> src/node.rs:73:12
[INFO] [stdout] |
[INFO] [stdout] 52 | impl NodeTable {
[INFO] [stdout] | -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 73 | pub fn exist(&self, id: &str) -> anyhow::Result {
[INFO] [stdout] | ^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `encode_raw` is never read
[INFO] [stdout] --> src/protocol/frame.rs:23:5
[INFO] [stdout] |
[INFO] [stdout] 19 | pub struct Frame {
[INFO] [stdout] | ----- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 23 | encode_raw: Option,
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `Frame` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: methods `set_head`, `set_op`, and `encode` are never used
[INFO] [stdout] --> src/protocol/frame.rs:44:12
[INFO] [stdout] |
[INFO] [stdout] 25 | impl Frame {
[INFO] [stdout] | ---------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 44 | pub fn set_head(&mut self, head: Head) -> &mut Frame {
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 49 | pub fn set_op(&mut self, cmd: Operator) -> &mut Frame {
[INFO] [stdout] | ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 64 | pub fn encode(&mut self) -> &[u8] {
[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/cmd_server.rs:30:21
[INFO] [stdout] |
[INFO] [stdout] 27 | pub fn new(stream: TcpStream) -> Self {
[INFO] [stdout] | ----------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 30 | buffer: BytesMut::new(),
[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: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021
[INFO] [stdout] --> src/discover.rs:118:12
[INFO] [stdout] |
[INFO] [stdout] 37 | let cfg = self.cfg.clone();
[INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 46 | let socket = Socket::new(Domain::IPV4, Type::DGRAM, Some(Protocol::UDP))?;
[INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 51 | let socket = UdpSocket::from_std(socket.into())?;
[INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 52 |
[INFO] [stdout] 53 | let socket = Arc::new(socket);
[INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 58 | return Err(anyhow::anyhow!("Multicast IP should be IPv4"));
[INFO] [stdout] | ---------------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 64 | let socket_ref = socket.clone();
[INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 67 | let ctx = parent_ctx.clone();
[INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 89 | let socket_ref = socket.clone();
[INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 92 | let (tx, rx) = tokio::sync::mpsc::channel(16);
[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] 93 | let ctx = parent_ctx.clone();
[INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 118 | Ok(Some(rx))
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout] | |
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] |
[INFO] [stdout] = warning: this changes meaning in Rust 2024
[INFO] [stdout] = note: for more information, see issue #123739
[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/runtime.rs:65:12
[INFO] [stdout] |
[INFO] [stdout] 25 | cfg: Arc,
[INFO] [stdout] | ---------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 26 | ) -> anyhow::Result<(JoinHandle<()>, JoinHandle<()>)> {
[INFO] [stdout] 27 | let mut node_table = NodeTable::new(cfg.clone());
[INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 28 | // 启动discover
[INFO] [stdout] 29 | let discover_ctx = ctx.clone();
[INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 30 | let mut discover_rev = start_discover(&discover_ctx, cfg.clone())?;
[INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 31 | let cfg_copy = cfg.clone();
[INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 32 | let ctx_copy = ctx.clone();
[INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 33 | let discover_handler = tokio::spawn(async move {
[INFO] [stdout] | ---------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 56 | let ctx_copy = ctx.clone();
[INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 57 | let cfg_copy = cfg.clone();
[INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 58 | let cmd_server_handler = tokio::spawn(async move {
[INFO] [stdout] | ------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 65 | Ok((discover_handler, cmd_server_handler))
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] | |
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] |
[INFO] [stdout] = warning: this changes meaning in Rust 2024
[INFO] [stdout] = note: for more information, see issue #123739
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: aborting due to 3 previous errors; 10 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: method `write_frame` is never used
[INFO] [stdout] --> src/cmd_server.rs:85:18
[INFO] [stdout] |
[INFO] [stdout] 26 | impl Connection {
[INFO] [stdout] | --------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 85 | pub async fn write_frame(&mut self, frame: &Frame) -> anyhow::Result<()> {
[INFO] [stdout] | ^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(dead_code)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `cmd` is never read
[INFO] [stdout] --> src/command.rs:17:9
[INFO] [stdout] |
[INFO] [stdout] 16 | pub struct Command {
[INFO] [stdout] | ------- field in this struct
[INFO] [stdout] 17 | pub cmd: CMD,
[INFO] [stdout] | ^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `Command` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variants `String`, `Bytes`, `List`, and `Hash` are never constructed
[INFO] [stdout] --> src/db.rs:4:5
[INFO] [stdout] |
[INFO] [stdout] 3 | pub enum DBValue {
[INFO] [stdout] | ------- variants in this enum
[INFO] [stdout] 4 | String(String),
[INFO] [stdout] | ^^^^^^
[INFO] [stdout] 5 | Bytes(Vec),
[INFO] [stdout] | ^^^^^
[INFO] [stdout] 6 | List(Vec),
[INFO] [stdout] | ^^^^
[INFO] [stdout] 7 | Hash(AHashMap),
[INFO] [stdout] | ^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `db` is never read
[INFO] [stdout] --> src/db.rs:11:5
[INFO] [stdout] |
[INFO] [stdout] 10 | pub struct Database {
[INFO] [stdout] | -------- field in this struct
[INFO] [stdout] 11 | db: AHashMap,
[INFO] [stdout] | ^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: methods `str_set` and `str_get` are never used
[INFO] [stdout] --> src/db.rs:27:8
[INFO] [stdout] |
[INFO] [stdout] 20 | impl Database {
[INFO] [stdout] | ------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 27 | fn str_set(&mut self, key: String, value: DBValue) {
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 31 | fn str_get(&mut self, key: &str) -> Option<&DBValue> {
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: method `exist` is never used
[INFO] [stdout] --> src/node.rs:73:12
[INFO] [stdout] |
[INFO] [stdout] 52 | impl NodeTable {
[INFO] [stdout] | -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 73 | pub fn exist(&self, id: &str) -> anyhow::Result {
[INFO] [stdout] | ^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `encode_raw` is never read
[INFO] [stdout] --> src/protocol/frame.rs:23:5
[INFO] [stdout] |
[INFO] [stdout] 19 | pub struct Frame {
[INFO] [stdout] | ----- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 23 | encode_raw: Option,
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `Frame` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: methods `set_head`, `set_op`, and `encode` are never used
[INFO] [stdout] --> src/protocol/frame.rs:44:12
[INFO] [stdout] |
[INFO] [stdout] 25 | impl Frame {
[INFO] [stdout] | ---------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 44 | pub fn set_head(&mut self, head: Head) -> &mut Frame {
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 49 | pub fn set_op(&mut self, cmd: Operator) -> &mut Frame {
[INFO] [stdout] | ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 64 | pub fn encode(&mut self) -> &[u8] {
[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/cmd_server.rs:30:21
[INFO] [stdout] |
[INFO] [stdout] 27 | pub fn new(stream: TcpStream) -> Self {
[INFO] [stdout] | ----------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 30 | buffer: BytesMut::new(),
[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: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021
[INFO] [stdout] --> src/discover.rs:118:12
[INFO] [stdout] |
[INFO] [stdout] 37 | let cfg = self.cfg.clone();
[INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 46 | let socket = Socket::new(Domain::IPV4, Type::DGRAM, Some(Protocol::UDP))?;
[INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 51 | let socket = UdpSocket::from_std(socket.into())?;
[INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 52 |
[INFO] [stdout] 53 | let socket = Arc::new(socket);
[INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 58 | return Err(anyhow::anyhow!("Multicast IP should be IPv4"));
[INFO] [stdout] | ---------------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 64 | let socket_ref = socket.clone();
[INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 67 | let ctx = parent_ctx.clone();
[INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 89 | let socket_ref = socket.clone();
[INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 92 | let (tx, rx) = tokio::sync::mpsc::channel(16);
[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] 93 | let ctx = parent_ctx.clone();
[INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 118 | Ok(Some(rx))
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout] | |
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] |
[INFO] [stdout] = warning: this changes meaning in Rust 2024
[INFO] [stdout] = note: for more information, see issue #123739
[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/runtime.rs:65:12
[INFO] [stdout] |
[INFO] [stdout] 25 | cfg: Arc,
[INFO] [stdout] | ---------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 26 | ) -> anyhow::Result<(JoinHandle<()>, JoinHandle<()>)> {
[INFO] [stdout] 27 | let mut node_table = NodeTable::new(cfg.clone());
[INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 28 | // 启动discover
[INFO] [stdout] 29 | let discover_ctx = ctx.clone();
[INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 30 | let mut discover_rev = start_discover(&discover_ctx, cfg.clone())?;
[INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 31 | let cfg_copy = cfg.clone();
[INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 32 | let ctx_copy = ctx.clone();
[INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 33 | let discover_handler = tokio::spawn(async move {
[INFO] [stdout] | ---------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 56 | let ctx_copy = ctx.clone();
[INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 57 | let cfg_copy = cfg.clone();
[INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 58 | let cmd_server_handler = tokio::spawn(async move {
[INFO] [stdout] | ------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 65 | Ok((discover_handler, cmd_server_handler))
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] | |
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] |
[INFO] [stdout] = warning: this changes meaning in Rust 2024
[INFO] [stdout] = note: for more information, see issue #123739
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: aborting due to 3 previous errors; 17 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] error: could not compile `PartitionLink` (bin "server") due to 4 previous errors; 10 warnings emitted
[INFO] [stdout] error: aborting due to 3 previous errors; 10 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] error: could not compile `PartitionLink` (lib test) due to 4 previous errors; 17 warnings emitted
[INFO] [stderr] error: could not compile `PartitionLink` (bin "server" test) due to 4 previous errors; 10 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "35af106fe1daefb4a55f470f03eee25d463e0847f77885d87c14197a2d40ad40", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "35af106fe1daefb4a55f470f03eee25d463e0847f77885d87c14197a2d40ad40", kill_on_drop: false }`
[INFO] [stdout] 35af106fe1daefb4a55f470f03eee25d463e0847f77885d87c14197a2d40ad40