[INFO] cloning repository https://github.com/EverSeenTOTOTO/rustdemo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/EverSeenTOTOTO/rustdemo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEverSeenTOTOTO%2Frustdemo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEverSeenTOTOTO%2Frustdemo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2d7e255f34534566bddb160b112f849e428d2215 [INFO] checking EverSeenTOTOTO/rustdemo against master#0d56e340472882fa673d4b98d0802b9a799879d0 for pr-101692 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEverSeenTOTOTO%2Frustdemo" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/EverSeenTOTOTO/rustdemo on toolchain 0d56e340472882fa673d4b98d0802b9a799879d0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0d56e340472882fa673d4b98d0802b9a799879d0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/EverSeenTOTOTO/rustdemo [INFO] finished tweaking git repo https://github.com/EverSeenTOTOTO/rustdemo [INFO] tweaked toml for git repo https://github.com/EverSeenTOTOTO/rustdemo written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/EverSeenTOTOTO/rustdemo already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0d56e340472882fa673d4b98d0802b9a799879d0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded async-global-executor v2.0.3 [INFO] [stderr] Downloaded owo-colors v3.2.0 [INFO] [stderr] Downloaded curl v0.4.42 [INFO] [stderr] Downloaded curl-sys v0.4.52+curl-7.81.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+0d56e340472882fa673d4b98d0802b9a799879d0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d4eb89f0c569db091f4a407d684d5af2117a85455d55d339bc0eefff42a3d7a2 [INFO] running `Command { std: "docker" "start" "-a" "d4eb89f0c569db091f4a407d684d5af2117a85455d55d339bc0eefff42a3d7a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d4eb89f0c569db091f4a407d684d5af2117a85455d55d339bc0eefff42a3d7a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d4eb89f0c569db091f4a407d684d5af2117a85455d55d339bc0eefff42a3d7a2", kill_on_drop: false }` [INFO] [stdout] d4eb89f0c569db091f4a407d684d5af2117a85455d55d339bc0eefff42a3d7a2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+0d56e340472882fa673d4b98d0802b9a799879d0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 381cca4356190370d577ae6f620a28cbeab6ea931da4129fd3fc5ef5f538ac96 [INFO] running `Command { std: "docker" "start" "-a" "381cca4356190370d577ae6f620a28cbeab6ea931da4129fd3fc5ef5f538ac96", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling libc v0.2.117 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling cc v1.0.72 [INFO] [stderr] Compiling pkg-config v0.3.24 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Checking pin-project-lite v0.2.8 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Checking once_cell v1.9.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking futures-io v0.3.21 [INFO] [stderr] Checking cache-padded v1.2.0 [INFO] [stderr] Checking slab v0.4.5 [INFO] [stderr] Checking event-listener v2.5.2 [INFO] [stderr] Checking fastrand v1.7.0 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Checking waker-fn v1.1.0 [INFO] [stderr] Checking parking v2.0.0 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.7 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Checking matches v0.1.9 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Checking futures-sink v0.3.21 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling parking_lot_core v0.9.1 [INFO] [stderr] Checking async-task v4.2.0 [INFO] [stderr] Compiling eyre v0.6.7 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Checking bytes v1.1.0 [INFO] [stderr] Checking itoa v1.0.1 [INFO] [stderr] Compiling unicode-segmentation v1.9.0 [INFO] [stderr] Checking unicode-bidi v0.3.7 [INFO] [stderr] Checking atomic-waker v1.0.0 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Compiling curl v0.4.42 [INFO] [stderr] Compiling encoding_rs v0.8.30 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking gimli v0.26.1 [INFO] [stderr] Checking owo-colors v3.2.0 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling argh_shared v0.1.7 [INFO] [stderr] Checking rustc-demangle v0.1.21 [INFO] [stderr] Checking indenter v0.3.3 [INFO] [stderr] Compiling isahc v1.6.0 [INFO] [stderr] Checking castaway v0.1.2 [INFO] [stderr] Checking keccak v0.1.0 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Checking ryu v1.0.9 [INFO] [stderr] Checking tracing-core v0.1.22 [INFO] [stderr] Checking sharded-slab v0.1.4 [INFO] [stderr] Checking thread_local v1.1.4 [INFO] [stderr] Checking concurrent-queue v1.2.2 [INFO] [stderr] Checking tinyvec v1.5.1 [INFO] [stderr] Checking async-mutex v1.4.0 [INFO] [stderr] Checking async-lock v2.5.0 [INFO] [stderr] Compiling value-bag v1.0.0-alpha.8 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Checking lock_api v0.4.6 [INFO] [stderr] Checking http v0.2.6 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling libdbus-sys v0.2.2 [INFO] [stderr] Checking async-channel v1.6.1 [INFO] [stderr] Checking sluice v0.5.5 [INFO] [stderr] Checking futures-lite v1.12.0 [INFO] [stderr] Checking object v0.27.1 [INFO] [stderr] Compiling libz-sys v1.1.3 [INFO] [stderr] Compiling openssl-sys v0.9.72 [INFO] [stderr] Compiling libnghttp2-sys v0.1.7+1.45.0 [INFO] [stderr] Compiling curl-sys v0.4.52+curl-7.81.0 [INFO] [stderr] Compiling backtrace v0.3.64 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Checking crossbeam-channel v0.5.2 [INFO] [stderr] Checking unicode-normalization v0.1.19 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking dbus v0.9.5 [INFO] [stderr] Checking parking_lot v0.12.0 [INFO] [stderr] Checking async-executor v1.4.1 [INFO] [stderr] Checking blocking v1.1.0 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking crypto-common v0.1.3 [INFO] [stderr] Checking block-buffer v0.10.2 [INFO] [stderr] Checking digest v0.10.3 [INFO] [stderr] Checking sha3 v0.10.1 [INFO] [stderr] Checking addr2line v0.17.0 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Compiling ctor v0.1.21 [INFO] [stderr] Compiling tracing-attributes v0.1.20 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling pin-project-internal v1.0.10 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling async-attributes v1.1.2 [INFO] [stderr] Compiling argh_derive v0.1.7 [INFO] [stderr] Checking polling v2.2.0 [INFO] [stderr] Checking tracing-log v0.1.2 [INFO] [stderr] Checking kv-log-macro v1.0.7 [INFO] [stderr] Checking mio v0.8.0 [INFO] [stderr] Checking tracing-subscriber v0.3.9 [INFO] [stderr] Checking async-io v1.6.0 [INFO] [stderr] Checking async-global-executor v2.0.3 [INFO] [stderr] Checking argh v0.1.7 [INFO] [stderr] Checking async-std v1.10.0 [INFO] [stderr] Checking pin-project v1.0.10 [INFO] [stderr] Checking tracing v0.1.32 [INFO] [stderr] Checking tracing-futures v0.2.5 [INFO] [stderr] Checking tracing-error v0.2.0 [INFO] [stderr] Checking color-spantrace v0.2.0 [INFO] [stderr] Checking color-eyre v0.6.1 [INFO] [stderr] Checking tokio v1.17.0 [INFO] [stderr] Checking futures-executor v0.3.21 [INFO] [stderr] Checking futures v0.3.21 [INFO] [stderr] Checking rustdemo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `is_prime` is never used [INFO] [stdout] --> src/actor.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn is_prime(n: u64) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `rx` and `tx` are never read [INFO] [stdout] --> src/actor.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct SimpleChannelMail { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 26 | rx: Receiver, [INFO] [stdout] | ^^ [INFO] [stdout] 27 | tx: Sender, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `SimpleChannelMail` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `dispatcher_address`, `reducer_address`, `mail` and `main_tx` are never read [INFO] [stdout] --> src/actor.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 73 | pub struct ActorCounter { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 74 | pub address: String, [INFO] [stdout] 75 | dispatcher_address: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 76 | reducer_address: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 77 | mail: SimpleChannelMail, [INFO] [stdout] | ^^^^ [INFO] [stdout] 78 | main_tx: Sender, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ActorCounter` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `dispatcher_address`, `mail` and `main_tx` are never read [INFO] [stdout] --> src/actor.rs:183:5 [INFO] [stdout] | [INFO] [stdout] 179 | pub struct ActorReducer { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 183 | dispatcher_address: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 184 | mail: SimpleChannelMail, [INFO] [stdout] | ^^^^ [INFO] [stdout] 185 | main_tx: Sender, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ActorReducer` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `main_tx`, `all_workers` and `mail` are never read [INFO] [stdout] --> src/actor.rs:262:5 [INFO] [stdout] | [INFO] [stdout] 258 | pub struct ActorDispatcher { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 262 | main_tx: Sender, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 263 | all_workers: Vec, // 仅用于结束时停止worker [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 264 | mail: SimpleChannelMail, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ActorDispatcher` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_actor_multi_thread` is never used [INFO] [stdout] --> src/actor.rs:327:8 [INFO] [stdout] | [INFO] [stdout] 327 | pub fn test_actor_multi_thread() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/actor.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn new(address: &str, rx: Receiver, tx: Sender) -> SimpleChannelMail { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `send` is never used [INFO] [stdout] --> src/actor.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn send(&self, to: &str, command: &str, data: &str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `recv` is never used [INFO] [stdout] --> src/actor.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn recv(&self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `put_back` is never used [INFO] [stdout] --> src/actor.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | fn put_back(&self, msg: &str) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/actor.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn new(address: &str, rx: Receiver, tx: Sender, main_tx: Sender) -> ActorCounter { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `save_dispatcher_address` is never used [INFO] [stdout] --> src/actor.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn save_dispatcher_address(&mut self, address: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `save_reducer_address` is never used [INFO] [stdout] --> src/actor.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn save_reducer_address(&mut self, address: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_dispatcher_address` is never used [INFO] [stdout] --> src/actor.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn get_dispatcher_address(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_reducer_address` is never used [INFO] [stdout] --> src/actor.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn get_reducer_address(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `run` is never used [INFO] [stdout] --> src/actor.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn run(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `count` is never used [INFO] [stdout] --> src/actor.rs:150:8 [INFO] [stdout] | [INFO] [stdout] 150 | fn count(&self, from: u64, to: u64) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `ready` is never used [INFO] [stdout] --> src/actor.rs:168:8 [INFO] [stdout] | [INFO] [stdout] 168 | fn ready(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/actor.rs:189:12 [INFO] [stdout] | [INFO] [stdout] 189 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `save_dispatcher_address` is never used [INFO] [stdout] --> src/actor.rs:206:12 [INFO] [stdout] | [INFO] [stdout] 206 | pub fn save_dispatcher_address(&mut self, address: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_dispatcher_address` is never used [INFO] [stdout] --> src/actor.rs:210:12 [INFO] [stdout] | [INFO] [stdout] 210 | pub fn get_dispatcher_address(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `run` is never used [INFO] [stdout] --> src/actor.rs:222:12 [INFO] [stdout] | [INFO] [stdout] 222 | pub fn run(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/actor.rs:268:12 [INFO] [stdout] | [INFO] [stdout] 268 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `save_worker_address` is never used [INFO] [stdout] --> src/actor.rs:286:12 [INFO] [stdout] | [INFO] [stdout] 286 | pub fn save_worker_address(&mut self, address: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `run` is never used [INFO] [stdout] --> src/actor.rs:291:12 [INFO] [stdout] | [INFO] [stdout] 291 | pub fn run(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `notify` is never used [INFO] [stdout] --> src/actor.rs:317:8 [INFO] [stdout] | [INFO] [stdout] 317 | fn notify(&mut self, worker: &str) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/packet.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | fn new(from: &str, to: &str, command: &str, data: &str) -> Packet { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `stringify` is never used [INFO] [stdout] --> src/packet.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn stringify(from: &str, to: &str, command: &str, data: &str) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `parse` is never used [INFO] [stdout] --> src/packet.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn parse(msg: &str) -> Packet { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_prime` is never used [INFO] [stdout] --> src/actor.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn is_prime(n: u64) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `rx` and `tx` are never read [INFO] [stdout] --> src/actor.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct SimpleChannelMail { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 26 | rx: Receiver, [INFO] [stdout] | ^^ [INFO] [stdout] 27 | tx: Sender, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `SimpleChannelMail` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `dispatcher_address`, `reducer_address`, `mail` and `main_tx` are never read [INFO] [stdout] --> src/actor.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 73 | pub struct ActorCounter { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 74 | pub address: String, [INFO] [stdout] 75 | dispatcher_address: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 76 | reducer_address: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 77 | mail: SimpleChannelMail, [INFO] [stdout] | ^^^^ [INFO] [stdout] 78 | main_tx: Sender, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ActorCounter` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `dispatcher_address`, `mail` and `main_tx` are never read [INFO] [stdout] --> src/actor.rs:183:5 [INFO] [stdout] | [INFO] [stdout] 179 | pub struct ActorReducer { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 183 | dispatcher_address: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 184 | mail: SimpleChannelMail, [INFO] [stdout] | ^^^^ [INFO] [stdout] 185 | main_tx: Sender, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ActorReducer` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `main_tx`, `all_workers` and `mail` are never read [INFO] [stdout] --> src/actor.rs:262:5 [INFO] [stdout] | [INFO] [stdout] 258 | pub struct ActorDispatcher { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 262 | main_tx: Sender, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 263 | all_workers: Vec, // 仅用于结束时停止worker [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 264 | mail: SimpleChannelMail, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ActorDispatcher` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_actor_multi_thread` is never used [INFO] [stdout] --> src/actor.rs:327:8 [INFO] [stdout] | [INFO] [stdout] 327 | pub fn test_actor_multi_thread() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/actor.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn new(address: &str, rx: Receiver, tx: Sender) -> SimpleChannelMail { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `send` is never used [INFO] [stdout] --> src/actor.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn send(&self, to: &str, command: &str, data: &str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `recv` is never used [INFO] [stdout] --> src/actor.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn recv(&self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `put_back` is never used [INFO] [stdout] --> src/actor.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | fn put_back(&self, msg: &str) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/actor.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn new(address: &str, rx: Receiver, tx: Sender, main_tx: Sender) -> ActorCounter { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `save_dispatcher_address` is never used [INFO] [stdout] --> src/actor.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn save_dispatcher_address(&mut self, address: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `save_reducer_address` is never used [INFO] [stdout] --> src/actor.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn save_reducer_address(&mut self, address: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_dispatcher_address` is never used [INFO] [stdout] --> src/actor.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn get_dispatcher_address(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_reducer_address` is never used [INFO] [stdout] --> src/actor.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn get_reducer_address(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `run` is never used [INFO] [stdout] --> src/actor.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn run(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `count` is never used [INFO] [stdout] --> src/actor.rs:150:8 [INFO] [stdout] | [INFO] [stdout] 150 | fn count(&self, from: u64, to: u64) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `ready` is never used [INFO] [stdout] --> src/actor.rs:168:8 [INFO] [stdout] | [INFO] [stdout] 168 | fn ready(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/actor.rs:189:12 [INFO] [stdout] | [INFO] [stdout] 189 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `save_dispatcher_address` is never used [INFO] [stdout] --> src/actor.rs:206:12 [INFO] [stdout] | [INFO] [stdout] 206 | pub fn save_dispatcher_address(&mut self, address: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_dispatcher_address` is never used [INFO] [stdout] --> src/actor.rs:210:12 [INFO] [stdout] | [INFO] [stdout] 210 | pub fn get_dispatcher_address(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `run` is never used [INFO] [stdout] --> src/actor.rs:222:12 [INFO] [stdout] | [INFO] [stdout] 222 | pub fn run(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/actor.rs:268:12 [INFO] [stdout] | [INFO] [stdout] 268 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `save_worker_address` is never used [INFO] [stdout] --> src/actor.rs:286:12 [INFO] [stdout] | [INFO] [stdout] 286 | pub fn save_worker_address(&mut self, address: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `run` is never used [INFO] [stdout] --> src/actor.rs:291:12 [INFO] [stdout] | [INFO] [stdout] 291 | pub fn run(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `notify` is never used [INFO] [stdout] --> src/actor.rs:317:8 [INFO] [stdout] | [INFO] [stdout] 317 | fn notify(&mut self, worker: &str) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/packet.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | fn new(from: &str, to: &str, command: &str, data: &str) -> Packet { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `stringify` is never used [INFO] [stdout] --> src/packet.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn stringify(from: &str, to: &str, command: &str, data: &str) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `parse` is never used [INFO] [stdout] --> src/packet.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn parse(msg: &str) -> Packet { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 28.98s [INFO] running `Command { std: "docker" "inspect" "381cca4356190370d577ae6f620a28cbeab6ea931da4129fd3fc5ef5f538ac96", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "381cca4356190370d577ae6f620a28cbeab6ea931da4129fd3fc5ef5f538ac96", kill_on_drop: false }` [INFO] [stdout] 381cca4356190370d577ae6f620a28cbeab6ea931da4129fd3fc5ef5f538ac96