[INFO] cloning repository https://github.com/vinceDa/rust-mq [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vinceDa/rust-mq" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FvinceDa%2Frust-mq", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FvinceDa%2Frust-mq'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 794d7e5c371f860a01afecc0862055c87b9e14cf [INFO] checking vinceDa/rust-mq against master#f8f6997469237299c1d60814c7b9828602a1f8e4 for pr-143808 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FvinceDa%2Frust-mq" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/vinceDa/rust-mq [INFO] finished tweaking git repo https://github.com/vinceDa/rust-mq [INFO] tweaked toml for git repo https://github.com/vinceDa/rust-mq written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/vinceDa/rust-mq on toolchain f8f6997469237299c1d60814c7b9828602a1f8e4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/vinceDa/rust-mq 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" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bdb12c73a16ee81afca05f239d2cab88345873c00aceed434fd3ac2b4ce52399 [INFO] running `Command { std: "docker" "start" "-a" "bdb12c73a16ee81afca05f239d2cab88345873c00aceed434fd3ac2b4ce52399", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bdb12c73a16ee81afca05f239d2cab88345873c00aceed434fd3ac2b4ce52399", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bdb12c73a16ee81afca05f239d2cab88345873c00aceed434fd3ac2b4ce52399", kill_on_drop: false }` [INFO] [stdout] bdb12c73a16ee81afca05f239d2cab88345873c00aceed434fd3ac2b4ce52399 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] af7d137ea10dea2d37d11e2ea12e218327e1e220abc02b764487da6d56249d98 [INFO] running `Command { std: "docker" "start" "-a" "af7d137ea10dea2d37d11e2ea12e218327e1e220abc02b764487da6d56249d98", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.81 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling serde v1.0.199 [INFO] [stderr] Compiling serde_json v1.0.116 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking ryu v1.0.17 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.60 [INFO] [stderr] Compiling serde_derive v1.0.199 [INFO] [stderr] Checking rust-mq v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/topic/message.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | if (self.size == self.max) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 38 - if (self.size == self.max) { [INFO] [stdout] 38 + if self.size == self.max { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/topic/message.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | if (self.size == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 49 - if (self.size == 0) { [INFO] [stdout] 49 + if self.size == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::topic` [INFO] [stdout] --> src/topic/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::topic; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `topic::message::Topic` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use topic::message::Topic; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MessageQueue` [INFO] [stdout] --> src/main.rs:13:46 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::topic::message::{Broker, Message, MessageQueue}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `topic` [INFO] [stdout] --> src/topic/message.rs:162:18 [INFO] [stdout] | [INFO] [stdout] 162 | Some(topic) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_topic` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `topic` [INFO] [stdout] --> src/topic/message.rs:174:18 [INFO] [stdout] | [INFO] [stdout] 174 | Some(topic) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_topic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream` [INFO] [stdout] --> src/server/server.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | let stream = stream.unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/topic/message.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | if (self.size == self.max) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 38 - if (self.size == self.max) { [INFO] [stdout] 38 + if self.size == self.max { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/topic/message.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | if (self.size == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 49 - if (self.size == 0) { [INFO] [stdout] 49 + if self.size == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::topic` [INFO] [stdout] --> src/topic/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::topic; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `topic::message::Topic` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use topic::message::Topic; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MessageQueue` [INFO] [stdout] --> src/main.rs:13:46 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::topic::message::{Broker, Message, MessageQueue}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_empty` is never used [INFO] [stdout] --> src/topic/message.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl MessageQueue { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/topic/message.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 90 | pub struct Topic { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 91 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove_queue` and `get_queue` are never used [INFO] [stdout] --> src/topic/message.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 95 | impl Topic { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 107 | fn remove_queue(&mut self, queue_name: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn get_queue(&mut self, queue_name: &str) -> Option<&MessageQueue> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_topic` and `get_topic` are never used [INFO] [stdout] --> src/topic/message.rs:148:12 [INFO] [stdout] | [INFO] [stdout] 141 | impl Broker { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 148 | pub fn add_topic(&mut self, topic_name: &str, topic: Topic) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub fn get_topic(&mut self, topic_name: &str) -> Option<&Topic> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/server/server.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `topic` [INFO] [stdout] --> src/topic/message.rs:162:18 [INFO] [stdout] | [INFO] [stdout] 162 | Some(topic) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_topic` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `topic` [INFO] [stdout] --> src/topic/message.rs:174:18 [INFO] [stdout] | [INFO] [stdout] 174 | Some(topic) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_topic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream` [INFO] [stdout] --> src/server/server.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | let stream = stream.unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/topic/message.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 90 | pub struct Topic { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 91 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove_queue` and `get_queue` are never used [INFO] [stdout] --> src/topic/message.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 95 | impl Topic { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 107 | fn remove_queue(&mut self, queue_name: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn get_queue(&mut self, queue_name: &str) -> Option<&MessageQueue> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_topic` and `get_topic` are never used [INFO] [stdout] --> src/topic/message.rs:148:12 [INFO] [stdout] | [INFO] [stdout] 141 | impl Broker { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 148 | pub fn add_topic(&mut self, topic_name: &str, topic: Topic) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub fn get_topic(&mut self, topic_name: &str) -> Option<&Topic> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/server/server.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.07s [INFO] running `Command { std: "docker" "inspect" "af7d137ea10dea2d37d11e2ea12e218327e1e220abc02b764487da6d56249d98", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "af7d137ea10dea2d37d11e2ea12e218327e1e220abc02b764487da6d56249d98", kill_on_drop: false }` [INFO] [stdout] af7d137ea10dea2d37d11e2ea12e218327e1e220abc02b764487da6d56249d98