[INFO] cloning repository https://github.com/j5ik2o/sandbox-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/j5ik2o/sandbox-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fj5ik2o%2Fsandbox-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fj5ik2o%2Fsandbox-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] df47ac15d773a357caf7d93c3cd4319c65b74477 [INFO] testing j5ik2o/sandbox-rs against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fj5ik2o%2Fsandbox-rs" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/j5ik2o/sandbox-rs [INFO] finished tweaking git repo https://github.com/j5ik2o/sandbox-rs [INFO] tweaked toml for git repo https://github.com/j5ik2o/sandbox-rs written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/j5ik2o/sandbox-rs on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/j5ik2o/sandbox-rs 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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bigdecimal v0.1.2 [INFO] [stderr] Downloaded tailcall-impl v0.1.6 [INFO] [stderr] Downloaded tailcall v0.1.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8495b6f40cee6aef5a10d41cafb505eeca55c603a60fb9b470ff4d0a66e15185 [INFO] running `Command { std: "docker" "start" "-a" "8495b6f40cee6aef5a10d41cafb505eeca55c603a60fb9b470ff4d0a66e15185", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8495b6f40cee6aef5a10d41cafb505eeca55c603a60fb9b470ff4d0a66e15185", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8495b6f40cee6aef5a10d41cafb505eeca55c603a60fb9b470ff4d0a66e15185", kill_on_drop: false }` [INFO] [stdout] 8495b6f40cee6aef5a10d41cafb505eeca55c603a60fb9b470ff4d0a66e15185 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] a71deb209881248bcf116fb8b10ba5710906b30c2647c9cf4b419b28405f4523 [INFO] running `Command { std: "docker" "start" "-a" "a71deb209881248bcf116fb8b10ba5710906b30c2647c9cf4b419b28405f4523", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Compiling libc v0.2.101 [INFO] [stderr] Compiling syn v1.0.76 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling tokio v1.11.0 [INFO] [stderr] Compiling anyhow v1.0.43 [INFO] [stderr] Compiling instant v0.1.10 [INFO] [stderr] Compiling lock_api v0.4.5 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling once_cell v1.8.0 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling mio v0.7.13 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling bigdecimal v0.1.2 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling tailcall-impl v0.1.6 [INFO] [stderr] Compiling tokio-macros v1.3.0 [INFO] [stderr] Compiling tailcall v0.1.6 [INFO] [stderr] Compiling sandbox-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `main1` is never used [INFO] [stdout] --> src/main.rs:123:4 [INFO] [stdout] | [INFO] [stdout] 123 | fn main1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/address_book.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 4 | impl AddressEntryId { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 5 | pub(crate) fn new(value: u64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `USD` and `JPY` are never constructed [INFO] [stdout] --> src/currency.rs:5:3 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Currency { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 5 | USD, [INFO] [stdout] | ^^^ [INFO] [stdout] 6 | JPY, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Currency` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `one`, `zero`, `abs`, `rem`, `is_zero`, and `is_non_zero` are never used [INFO] [stdout] --> src/money.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 24 | impl Money { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 25 | pub fn one(currency: Currency) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn zero(currency: Currency) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn abs(self) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn rem(self, n: BigDecimal) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn is_zero(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn is_non_zero(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Node` is never used [INFO] [stdout] --> src/node.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/node.rs:62:10 [INFO] [stdout] | [INFO] [stdout] 58 | / impl<'a, T: Clone> Node [INFO] [stdout] 59 | | where [INFO] [stdout] 60 | | T: PartialOrd + 'a, [INFO] [stdout] | |_____________________- associated items in this implementation [INFO] [stdout] 61 | { [INFO] [stdout] 62 | pub fn from_vec(values: &[T]) -> Node { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn of_leaf(value: T) -> Node { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn of_branch(left: Node, value: T, right: Node) -> Node { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn find(&'a self, value: T) -> Option<&'a Node> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn map(&'a self, mut f: F) -> Node [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | pub fn as_value(&self) -> &T { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 166 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub fn as_max(&self) -> &T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | pub fn as_min(&self) -> &T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RefNode` is never used [INFO] [stdout] --> src/ref_node.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum RefNode<'a, T> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RefNode` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/ref_node.rs:63:10 [INFO] [stdout] | [INFO] [stdout] 58 | / impl<'a, T: Clone> RefNode<'a, T> [INFO] [stdout] 59 | | where [INFO] [stdout] 60 | | &'a T: PartialOrd, [INFO] [stdout] 61 | | T: PartialOrd, [INFO] [stdout] | |________________- associated items in this implementation [INFO] [stdout] 62 | { [INFO] [stdout] 63 | pub fn from_vec(values: &'a [T]) -> RefNode<'a, T> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn of_leaf(value: &'a T) -> RefNode<'a, T> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn of_branch(left: RefNode<'a, T>, value: &'a T, right: RefNode<'a, T>) -> RefNode<'a, T> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn find(&'a self, value: T) -> Option<&'a RefNode> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn map<'b, B, F>(&'a self, mut f: F) -> RefNode<'b, B> [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn as_value(&self) -> &T { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | pub fn as_max(&self) -> &T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 172 | pub fn as_min(&self) -> &T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Entity` is never used [INFO] [stdout] --> src/thread.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait Entity [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ThreadId` is never constructed [INFO] [stdout] --> src/thread.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct ThreadId(u64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ThreadId` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/thread.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 14 | impl ThreadId { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 15 | pub fn new(value: u64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MemberId` is never constructed [INFO] [stdout] --> src/thread.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct MemberId(u64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MemberId` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/thread.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 23 | impl MemberId { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 24 | pub fn new(value: u64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MemberName` is never constructed [INFO] [stdout] --> src/thread.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct MemberName(String); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MemberName` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/thread.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 32 | impl MemberName { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 33 | pub fn new(value: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Member` is never constructed [INFO] [stdout] --> src/thread.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct Member { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Member` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/thread.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 44 | impl Member { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 45 | pub fn new(id: MemberId, name: MemberName) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MessageId` is never constructed [INFO] [stdout] --> src/thread.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct MessageId(u64); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MessageId` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/thread.rs:60:10 [INFO] [stdout] | [INFO] [stdout] 59 | impl MessageId { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 60 | pub fn new(value: u64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MessageText` is never constructed [INFO] [stdout] --> src/thread.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct MessageText(String); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MessageText` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/thread.rs:69:10 [INFO] [stdout] | [INFO] [stdout] 68 | impl MessageText { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 69 | pub fn new(value: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Message` is never constructed [INFO] [stdout] --> src/thread.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | pub struct Message { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Message` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/thread.rs:82:10 [INFO] [stdout] | [INFO] [stdout] 81 | impl Message { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 82 | pub fn new(id: MessageId, sender_id: MemberId, text: MessageText) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Thread` is never constructed [INFO] [stdout] --> src/thread.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 98 | pub struct Thread { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Thread` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/thread.rs:105:10 [INFO] [stdout] | [INFO] [stdout] 104 | impl Thread { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 105 | pub fn new(id: ThreadId, members: &[Member], messages: &[Message]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | fn is_member_id(&self, member_id: &MemberId) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub fn add_message(&mut self, message: Message) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub fn add_messages(&mut self, messages: &[Message]) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn remove_messages(&mut self, message_ids: &[MessageId]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn messages(&self) -> &[Message] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn add_members(&mut self, members: &[Member]) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | pub fn remove_members(&mut self, member_ids: &[MemberId]) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | fn convert_to_idx(members: &Vec, member_ids: &[ID]) -> Vec [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 172 | pub fn members(&self) -> &[Member] { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserName` is never constructed [INFO] [stdout] --> src/user_names.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct UserName(String); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UserName` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/user_names.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 4 | impl UserName { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 5 | pub fn new(value: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserNames` is never constructed [INFO] [stdout] --> src/user_names.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct UserNames(Vec); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UserNames` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_user_name0`, `add_user_name1`, and `add_user_name2` are never used [INFO] [stdout] --> src/user_names.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 13 | impl UserNames { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 14 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn add_user_name0(&mut self, user_name: UserName) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn add_user_name1(&mut self, user_name: UserName) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn add_user_name2(mut self, user_name: UserName) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` in tuple element 0 that must be used [INFO] [stdout] --> src/main.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | tokio::join!(h1, h2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `$crate::join` which comes from the expansion of the macro `tokio::join` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` in tuple element 1 that must be used [INFO] [stdout] --> src/main.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | tokio::join!(h1, h2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `$crate::join` which comes from the expansion of the macro `tokio::join` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ref_node.rs:87:16 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn find(&'a self, value: T) -> Option<&'a RefNode> { [INFO] [stdout] | ^^ -- ---------- the lifetimes get resolved as `'a` [INFO] [stdout] | | | [INFO] [stdout] | | the lifetimes get resolved as `'a` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 87 | pub fn find(&'a self, value: T) -> Option<&'a RefNode<'a, T>> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 15.97s [INFO] running `Command { std: "docker" "inspect" "a71deb209881248bcf116fb8b10ba5710906b30c2647c9cf4b419b28405f4523", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a71deb209881248bcf116fb8b10ba5710906b30c2647c9cf4b419b28405f4523", kill_on_drop: false }` [INFO] [stdout] a71deb209881248bcf116fb8b10ba5710906b30c2647c9cf4b419b28405f4523 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] fd519a2368570d48d4e8413dbd2e2d19ac069b837a424c49c28ccaf101f81951 [INFO] running `Command { std: "docker" "start" "-a" "fd519a2368570d48d4e8413dbd2e2d19ac069b837a424c49c28ccaf101f81951", kill_on_drop: false }` [INFO] [stderr] Compiling sandbox-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `main1` is never used [INFO] [stdout] --> src/main.rs:123:4 [INFO] [stdout] | [INFO] [stdout] 123 | fn main1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `USD` and `JPY` are never constructed [INFO] [stdout] --> src/currency.rs:5:3 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Currency { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 5 | USD, [INFO] [stdout] | ^^^ [INFO] [stdout] 6 | JPY, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Currency` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `one`, `zero`, `abs`, `rem`, `is_zero`, and `is_non_zero` are never used [INFO] [stdout] --> src/money.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 24 | impl Money { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 25 | pub fn one(currency: Currency) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn zero(currency: Currency) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn abs(self) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn rem(self, n: BigDecimal) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn is_zero(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn is_non_zero(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Node` is never used [INFO] [stdout] --> src/node.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/node.rs:62:10 [INFO] [stdout] | [INFO] [stdout] 58 | / impl<'a, T: Clone> Node [INFO] [stdout] 59 | | where [INFO] [stdout] 60 | | T: PartialOrd + 'a, [INFO] [stdout] | |_____________________- associated items in this implementation [INFO] [stdout] 61 | { [INFO] [stdout] 62 | pub fn from_vec(values: &[T]) -> Node { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn of_leaf(value: T) -> Node { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn of_branch(left: Node, value: T, right: Node) -> Node { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn find(&'a self, value: T) -> Option<&'a Node> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn map(&'a self, mut f: F) -> Node [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | pub fn as_value(&self) -> &T { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 166 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub fn as_max(&self) -> &T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | pub fn as_min(&self) -> &T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RefNode` is never used [INFO] [stdout] --> src/ref_node.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum RefNode<'a, T> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RefNode` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/ref_node.rs:63:10 [INFO] [stdout] | [INFO] [stdout] 58 | / impl<'a, T: Clone> RefNode<'a, T> [INFO] [stdout] 59 | | where [INFO] [stdout] 60 | | &'a T: PartialOrd, [INFO] [stdout] 61 | | T: PartialOrd, [INFO] [stdout] | |________________- associated items in this implementation [INFO] [stdout] 62 | { [INFO] [stdout] 63 | pub fn from_vec(values: &'a [T]) -> RefNode<'a, T> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn of_leaf(value: &'a T) -> RefNode<'a, T> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn of_branch(left: RefNode<'a, T>, value: &'a T, right: RefNode<'a, T>) -> RefNode<'a, T> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn find(&'a self, value: T) -> Option<&'a RefNode> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn map<'b, B, F>(&'a self, mut f: F) -> RefNode<'b, B> [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn as_value(&self) -> &T { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | pub fn as_max(&self) -> &T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 172 | pub fn as_min(&self) -> &T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Entity` is never used [INFO] [stdout] --> src/thread.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait Entity [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/thread.rs:41:3 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct Member { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 40 | id: MemberId, [INFO] [stdout] 41 | name: MemberName, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Member` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/thread.rs:66:24 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct MessageText(String); [INFO] [stdout] | ----------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `MessageText` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `text` are never read [INFO] [stdout] --> src/thread.rs:76:3 [INFO] [stdout] | [INFO] [stdout] 75 | pub struct Message { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 76 | id: MessageId, [INFO] [stdout] | ^^ [INFO] [stdout] 77 | sender_id: MemberId, [INFO] [stdout] 78 | text: MessageText, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Message` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/thread.rs:99:3 [INFO] [stdout] | [INFO] [stdout] 98 | pub struct Thread { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 99 | id: ThreadId, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Thread` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `remove_messages`, `remove_members`, and `convert_to_idx` are never used [INFO] [stdout] --> src/thread.rs:135:10 [INFO] [stdout] | [INFO] [stdout] 104 | impl Thread { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn remove_messages(&mut self, message_ids: &[MessageId]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | pub fn remove_members(&mut self, member_ids: &[MemberId]) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | fn convert_to_idx(members: &Vec, member_ids: &[ID]) -> Vec [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/user_names.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct UserName(String); [INFO] [stdout] | -------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `UserName` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_user_name1` and `add_user_name2` are never used [INFO] [stdout] --> src/user_names.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 13 | impl UserNames { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn add_user_name1(&mut self, user_name: UserName) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn add_user_name2(mut self, user_name: UserName) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` in tuple element 0 that must be used [INFO] [stdout] --> src/main.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | tokio::join!(h1, h2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `$crate::join` which comes from the expansion of the macro `tokio::join` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` in tuple element 1 that must be used [INFO] [stdout] --> src/main.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | tokio::join!(h1, h2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `$crate::join` which comes from the expansion of the macro `tokio::join` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ref_node.rs:87:16 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn find(&'a self, value: T) -> Option<&'a RefNode> { [INFO] [stdout] | ^^ -- ---------- the lifetimes get resolved as `'a` [INFO] [stdout] | | | [INFO] [stdout] | | the lifetimes get resolved as `'a` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 87 | pub fn find(&'a self, value: T) -> Option<&'a RefNode<'a, T>> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.11s [INFO] running `Command { std: "docker" "inspect" "fd519a2368570d48d4e8413dbd2e2d19ac069b837a424c49c28ccaf101f81951", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd519a2368570d48d4e8413dbd2e2d19ac069b837a424c49c28ccaf101f81951", kill_on_drop: false }` [INFO] [stdout] fd519a2368570d48d4e8413dbd2e2d19ac069b837a424c49c28ccaf101f81951 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 3a27311261b38d9b5d8a2ac95a151676bffce404157d464e53c40f304b4b2996 [INFO] running `Command { std: "docker" "start" "-a" "3a27311261b38d9b5d8a2ac95a151676bffce404157d464e53c40f304b4b2996", kill_on_drop: false }` [INFO] [stderr] warning: function `main1` is never used [INFO] [stderr] --> src/main.rs:123:4 [INFO] [stderr] | [INFO] [stderr] 123 | fn main1() { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variants `USD` and `JPY` are never constructed [INFO] [stderr] --> src/currency.rs:5:3 [INFO] [stderr] | [INFO] [stderr] 4 | pub enum Currency { [INFO] [stderr] | -------- variants in this enum [INFO] [stderr] 5 | USD, [INFO] [stderr] | ^^^ [INFO] [stderr] 6 | JPY, [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Currency` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated items `one`, `zero`, `abs`, `rem`, `is_zero`, and `is_non_zero` are never used [INFO] [stderr] --> src/money.rs:25:10 [INFO] [stderr] | [INFO] [stderr] 24 | impl Money { [INFO] [stderr] | ---------- associated items in this implementation [INFO] [stderr] 25 | pub fn one(currency: Currency) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 29 | pub fn zero(currency: Currency) -> Self { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 37 | pub fn abs(self) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 41 | pub fn rem(self, n: BigDecimal) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 45 | pub fn is_zero(&self) -> bool { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 49 | pub fn is_non_zero(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `Node` is never used [INFO] [stderr] --> src/node.rs:5:10 [INFO] [stderr] | [INFO] [stderr] 5 | pub enum Node { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Node` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: multiple associated items are never used [INFO] [stderr] --> src/node.rs:62:10 [INFO] [stderr] | [INFO] [stderr] 58 | / impl<'a, T: Clone> Node [INFO] [stderr] 59 | | where [INFO] [stderr] 60 | | T: PartialOrd + 'a, [INFO] [stderr] | |_____________________- associated items in this implementation [INFO] [stderr] 61 | { [INFO] [stderr] 62 | pub fn from_vec(values: &[T]) -> Node { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 73 | pub fn of_leaf(value: T) -> Node { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 77 | pub fn of_branch(left: Node, value: T, right: Node) -> Node { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 85 | pub fn find(&'a self, value: T) -> Option<&'a Node> { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 99 | pub fn map(&'a self, mut f: F) -> Node [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 123 | pub fn as_value(&self) -> &T { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 166 | pub fn size(&self) -> usize { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 173 | pub fn as_max(&self) -> &T { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 180 | pub fn as_min(&self) -> &T { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `RefNode` is never used [INFO] [stderr] --> src/ref_node.rs:5:10 [INFO] [stderr] | [INFO] [stderr] 5 | pub enum RefNode<'a, T> { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `RefNode` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: multiple associated items are never used [INFO] [stderr] --> src/ref_node.rs:63:10 [INFO] [stderr] | [INFO] [stderr] 58 | / impl<'a, T: Clone> RefNode<'a, T> [INFO] [stderr] 59 | | where [INFO] [stderr] 60 | | &'a T: PartialOrd, [INFO] [stderr] 61 | | T: PartialOrd, [INFO] [stderr] | |________________- associated items in this implementation [INFO] [stderr] 62 | { [INFO] [stderr] 63 | pub fn from_vec(values: &'a [T]) -> RefNode<'a, T> { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 75 | pub fn of_leaf(value: &'a T) -> RefNode<'a, T> { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 79 | pub fn of_branch(left: RefNode<'a, T>, value: &'a T, right: RefNode<'a, T>) -> RefNode<'a, T> { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 87 | pub fn find(&'a self, value: T) -> Option<&'a RefNode> { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 101 | pub fn map<'b, B, F>(&'a self, mut f: F) -> RefNode<'b, B> [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 126 | pub fn as_value(&self) -> &T { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 158 | pub fn size(&self) -> usize { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 165 | pub fn as_max(&self) -> &T { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 172 | pub fn as_min(&self) -> &T { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait `Entity` is never used [INFO] [stderr] --> src/thread.rs:4:11 [INFO] [stderr] | [INFO] [stderr] 4 | pub trait Entity [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `name` is never read [INFO] [stderr] --> src/thread.rs:41:3 [INFO] [stderr] | [INFO] [stderr] 39 | pub struct Member { [INFO] [stderr] | ------ field in this struct [INFO] [stderr] 40 | id: MemberId, [INFO] [stderr] 41 | name: MemberName, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Member` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/thread.rs:66:24 [INFO] [stderr] | [INFO] [stderr] 66 | pub struct MessageText(String); [INFO] [stderr] | ----------- ^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this struct [INFO] [stderr] | [INFO] [stderr] = help: consider removing this field [INFO] [stderr] = note: `MessageText` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `id` and `text` are never read [INFO] [stderr] --> src/thread.rs:76:3 [INFO] [stderr] | [INFO] [stderr] 75 | pub struct Message { [INFO] [stderr] | ------- fields in this struct [INFO] [stderr] 76 | id: MessageId, [INFO] [stderr] | ^^ [INFO] [stderr] 77 | sender_id: MemberId, [INFO] [stderr] 78 | text: MessageText, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Message` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `id` is never read [INFO] [stderr] --> src/thread.rs:99:3 [INFO] [stderr] | [INFO] [stderr] 98 | pub struct Thread { [INFO] [stderr] | ------ field in this struct [INFO] [stderr] 99 | id: ThreadId, [INFO] [stderr] | ^^ [INFO] [stderr] | [INFO] [stderr] = note: `Thread` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated items `remove_messages`, `remove_members`, and `convert_to_idx` are never used [INFO] [stderr] --> src/thread.rs:135:10 [INFO] [stderr] | [INFO] [stderr] 104 | impl Thread { [INFO] [stderr] | ----------- associated items in this implementation [INFO] [stderr] ... [INFO] [stderr] 135 | pub fn remove_messages(&mut self, message_ids: &[MessageId]) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 151 | pub fn remove_members(&mut self, member_ids: &[MemberId]) { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 159 | fn convert_to_idx(members: &Vec, member_ids: &[ID]) -> Vec [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/user_names.rs:2:21 [INFO] [stderr] | [INFO] [stderr] 2 | pub struct UserName(String); [INFO] [stderr] | -------- ^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this struct [INFO] [stderr] | [INFO] [stderr] = help: consider removing this field [INFO] [stderr] = note: `UserName` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: methods `add_user_name1` and `add_user_name2` are never used [INFO] [stderr] --> src/user_names.rs:22:10 [INFO] [stderr] | [INFO] [stderr] 13 | impl UserNames { [INFO] [stderr] | -------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 22 | pub fn add_user_name1(&mut self, user_name: UserName) { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 27 | pub fn add_user_name2(mut self, user_name: UserName) { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` in tuple element 0 that must be used [INFO] [stderr] --> src/main.rs:92:5 [INFO] [stderr] | [INFO] [stderr] 92 | tokio::join!(h1, h2); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this warning originates in the macro `$crate::join` which comes from the expansion of the macro `tokio::join` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `Result` in tuple element 1 that must be used [INFO] [stderr] --> src/main.rs:92:5 [INFO] [stderr] | [INFO] [stderr] 92 | tokio::join!(h1, h2); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this warning originates in the macro `$crate::join` which comes from the expansion of the macro `tokio::join` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/ref_node.rs:87:16 [INFO] [stderr] | [INFO] [stderr] 87 | pub fn find(&'a self, value: T) -> Option<&'a RefNode> { [INFO] [stderr] | ^^ -- ---------- the lifetimes get resolved as `'a` [INFO] [stderr] | | | [INFO] [stderr] | | the lifetimes get resolved as `'a` [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: one option is to consistently use `'a` [INFO] [stderr] | [INFO] [stderr] 87 | pub fn find(&'a self, value: T) -> Option<&'a RefNode<'a, T>> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: `sandbox-rs` (bin "sandbox-rs" test) generated 18 warnings (run `cargo fix --bin "sandbox-rs" --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.12s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/sandbox_rs-5c5fa0e815f533d6) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test address_book::test::test_address_book ... ok [INFO] [stdout] test user_names::tests::test_add_user_name ... ok [INFO] [stdout] test thread::tests::test_thread ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "3a27311261b38d9b5d8a2ac95a151676bffce404157d464e53c40f304b4b2996", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3a27311261b38d9b5d8a2ac95a151676bffce404157d464e53c40f304b4b2996", kill_on_drop: false }` [INFO] [stdout] 3a27311261b38d9b5d8a2ac95a151676bffce404157d464e53c40f304b4b2996