[INFO] cloning repository https://github.com/simpletrontdip/learn-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/simpletrontdip/learn-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsimpletrontdip%2Flearn-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsimpletrontdip%2Flearn-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] deaeb3c108c9fa2cbb6a137ceac252c37ebc9821 [INFO] checking simpletrontdip/learn-rust against try#3ec2a775459d36c7d90654e47c56ff7bb0d542ab for pr-139087 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsimpletrontdip%2Flearn-rust" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/simpletrontdip/learn-rust on toolchain 3ec2a775459d36c7d90654e47c56ff7bb0d542ab [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3ec2a775459d36c7d90654e47c56ff7bb0d542ab" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/simpletrontdip/learn-rust [INFO] finished tweaking git repo https://github.com/simpletrontdip/learn-rust [INFO] tweaked toml for git repo https://github.com/simpletrontdip/learn-rust written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/simpletrontdip/learn-rust 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" "+3ec2a775459d36c7d90654e47c56ff7bb0d542ab" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tokio-websockets v0.10.1 [INFO] [stderr] Downloaded tokio v1.41.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+3ec2a775459d36c7d90654e47c56ff7bb0d542ab" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 24bf6b2049477e04aa5fc6355c74feffc3c5866e4fe2d39c837abb25071c8e5f [INFO] running `Command { std: "docker" "start" "-a" "24bf6b2049477e04aa5fc6355c74feffc3c5866e4fe2d39c837abb25071c8e5f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "24bf6b2049477e04aa5fc6355c74feffc3c5866e4fe2d39c837abb25071c8e5f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "24bf6b2049477e04aa5fc6355c74feffc3c5866e4fe2d39c837abb25071c8e5f", kill_on_drop: false }` [INFO] [stdout] 24bf6b2049477e04aa5fc6355c74feffc3c5866e4fe2d39c837abb25071c8e5f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+3ec2a775459d36c7d90654e47c56ff7bb0d542ab" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8375918a83da8ece09e21163506f6607392c61ddf6a18b7e367699a6818b30d7 [INFO] running `Command { std: "docker" "start" "-a" "8375918a83da8ece09e21163506f6607392c61ddf6a18b7e367699a6818b30d7", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Checking bytes v1.8.0 [INFO] [stderr] Checking pin-project-lite v0.2.15 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling anyhow v1.0.89 [INFO] [stderr] Checking sha1_smol v1.0.1 [INFO] [stderr] Checking fastrand v2.2.0 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Checking mio v1.0.2 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Checking tokio v1.41.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking thiserror v1.0.64 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking tokio-util v0.7.12 [INFO] [stderr] Checking tokio-websockets v0.10.1 [INFO] [stderr] Checking learn-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::result` [INFO] [stdout] --> src/bin/server.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::result; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::result` [INFO] [stdout] --> src/bin/server.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::result; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error` [INFO] [stdout] --> src/errorresult.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::error; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtomicBool` and `Ordering` [INFO] [stdout] --> src/philosophers.rs:2:25 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::atomic::{AtomicBool, Ordering}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `JoinHandle` [INFO] [stdout] --> src/philosophers.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | use std::thread::{self, JoinHandle}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `oneshot` [INFO] [stdout] --> src/philotokio.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | use tokio::sync::{mpsc, oneshot, Mutex}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::task::JoinHandle` [INFO] [stdout] --> src/philotokio.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::task::JoinHandle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::task::spawn` [INFO] [stdout] --> src/tasks.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio::task::spawn; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error` [INFO] [stdout] --> src/errorresult.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::error; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtomicBool` and `Ordering` [INFO] [stdout] --> src/philosophers.rs:2:25 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::atomic::{AtomicBool, Ordering}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/bst.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Node { [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/bst.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl Node { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 12 | fn new(value: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Subtree` is never constructed [INFO] [stdout] --> src/bst.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct Subtree(Option>>); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BinaryTree` is never constructed [INFO] [stdout] --> src/bst.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct BinaryTree { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinaryTree` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/bst.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 33 | impl BinaryTree { [INFO] [stdout] | -------------------------- associated items in this implementation [INFO] [stdout] 34 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn insert(&mut self, value: T) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn has(&self, value: &T) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | fn in_order_iter<'a>(&'a self) -> Box + 'a> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | fn pre_order_iter<'a>(&'a self) -> Box + 'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | fn post_order_iter<'a>(&'a self) -> Box + 'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/bst.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 64 | impl Subtree { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 65 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | fn insert(&mut self, value: T) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | fn has(&self, value: &T) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | fn in_order_iter<'a>(&'a self) -> Box + 'a> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | fn pre_order_iter<'a>(&'a self) -> Box + 'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | fn post_order_iter<'a>(&'a self) -> Box + 'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Language` is never used [INFO] [stdout] --> src/builder.rs:2:6 [INFO] [stdout] | [INFO] [stdout] 2 | enum Language { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Dependency` is never constructed [INFO] [stdout] --> src/builder.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Dependency { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Package` is never constructed [INFO] [stdout] --> src/builder.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | struct Package { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_dependency` is never used [INFO] [stdout] --> src/builder.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 24 | impl Package { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | fn as_dependency(&self) -> Dependency { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PackageBuilder` is never constructed [INFO] [stdout] --> src/builder.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | struct PackageBuilder(Package); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `version`, `authors`, `dependency`, `language`, and `build` are never used [INFO] [stdout] --> src/builder.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 38 | impl PackageBuilder { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 39 | fn new(name: impl Into) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | fn version(mut self, version: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | fn authors(mut self, authors: Vec) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | fn dependency(mut self, dependency: Dependency) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | fn language(mut self, language: Language) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | fn build(self) -> Package { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Add`, `Sub`, `Mul`, and `Div` are never constructed [INFO] [stdout] --> src/errorresult.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | enum Op { [INFO] [stdout] | -- variants in this enum [INFO] [stdout] 10 | Add, [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | Sub, [INFO] [stdout] | ^^^ [INFO] [stdout] 12 | Mul, [INFO] [stdout] | ^^^ [INFO] [stdout] 13 | Div, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Op` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Number`, `Identifier`, and `Operator` are never constructed [INFO] [stdout] --> src/errorresult.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | enum Token { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 19 | Number(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 20 | Identifier(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 21 | Operator(Op), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Expression` is never used [INFO] [stdout] --> src/errorresult.rs:26:6 [INFO] [stdout] | [INFO] [stdout] 26 | enum Expression { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tokenize` is never used [INFO] [stdout] --> src/errorresult.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn tokenize(input: &str) -> Tokenizer { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Tokenizer` is never constructed [INFO] [stdout] --> src/errorresult.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | struct Tokenizer<'a>(Peekable>); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `collect_number` and `collect_identifier` are never used [INFO] [stdout] --> src/errorresult.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 41 | impl<'a> Tokenizer<'a> { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] 42 | fn collect_number(&mut self, first_char: char) -> Token { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | fn collect_identifier(&mut self, first_char: char) -> Token { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UnexpectedCharacter` is never constructed [INFO] [stdout] --> src/errorresult.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 62 | enum TokenizeError { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 63 | #[error("Unexpected character '{0}'")] [INFO] [stdout] 64 | UnexpectedCharacter(char), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenizeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `UnexpectedEndOfInput`, `ExpectingNumberOrIdentifier`, and `ExpectingOperator` are never constructed [INFO] [stdout] --> src/errorresult.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 68 | enum ParseError { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 72 | UnexpectedEndOfInput, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 73 | #[error("Unexpected token '{0:?}', expecting a Number/Identifier")] [INFO] [stdout] 74 | ExpectingNumberOrIdentifier(Token), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 75 | #[error("Unexpected token '{0:?}', expecting an Operator")] [INFO] [stdout] 76 | ExpectingOperator(Token), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` 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 `parse` is never used [INFO] [stdout] --> src/errorresult.rs:98:4 [INFO] [stdout] | [INFO] [stdout] 98 | fn parse(input: &str) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `EvalError` is never used [INFO] [stdout] --> src/errorresult.rs:132:6 [INFO] [stdout] | [INFO] [stdout] 132 | enum EvalError { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eval` is never used [INFO] [stdout] --> src/errorresult.rs:139:4 [INFO] [stdout] | [INFO] [stdout] 139 | fn eval(expression: &Expression, context: &HashMap) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `min` is never used [INFO] [stdout] --> src/expression.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn min(a: T, b: T) -> T [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Operation` is never used [INFO] [stdout] --> src/expression.rs:15:6 [INFO] [stdout] | [INFO] [stdout] 15 | enum Operation { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Expression` is never used [INFO] [stdout] --> src/expression.rs:24:6 [INFO] [stdout] | [INFO] [stdout] 24 | enum Expression { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eval` is never used [INFO] [stdout] --> src/expression.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn eval(e: Expression) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `offset_differences` is never used [INFO] [stdout] --> src/iterators.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn offset_differences(offset: usize, values: Vec) -> Vec [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `luhn` is never used [INFO] [stdout] --> src/luhn.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn luhn(cc_number: &str) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `draw` is never used [INFO] [stdout] --> src/migui.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Widget { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] ... [INFO] [stdout] 9 | fn draw(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/migui.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl Label { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 21 | fn new(label: &str) -> Label { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/migui.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 32 | impl Button { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 33 | fn new(label: &str) -> Button { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `add_widget` are never used [INFO] [stdout] --> src/migui.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 45 | impl Window { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 46 | fn new(title: &str) -> Window { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | fn add_widget(&mut self, widget: Box) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Fork` is never constructed [INFO] [stdout] --> src/philosophers.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Fork(usize); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ControlMsg` is never used [INFO] [stdout] --> src/philosophers.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | enum ControlMsg { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Philosopher` is never constructed [INFO] [stdout] --> src/philosophers.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct Philosopher { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Stats` is never constructed [INFO] [stdout] --> src/philosophers.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct Stats { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `run`, `think`, and `eat` are never used [INFO] [stdout] --> src/philosophers.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 29 | impl Philosopher { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 30 | fn run(&self, stats: &mut Stats) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | fn think(&self, stats: &mut Stats) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | fn eat(&self, stats: &mut Stats) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `PHILOSOPHERS` is never used [INFO] [stdout] --> src/philosophers.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | static PHILOSOPHERS: &[&str] = &["Socrates", "Hypatia", "Plato", "Aristotle", "Pythagoras"]; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Fork` is never constructed [INFO] [stdout] --> src/philotokio.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct Fork(usize); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ControlMsg` is never used [INFO] [stdout] --> src/philotokio.rs:13:6 [INFO] [stdout] | [INFO] [stdout] 13 | enum ControlMsg { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Philosopher` is never constructed [INFO] [stdout] --> src/philotokio.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | struct Philosopher { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Stats` is never constructed [INFO] [stdout] --> src/philotokio.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | struct Stats { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `run`, `think`, and `eat` are never used [INFO] [stdout] --> src/philotokio.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 32 | impl Philosopher { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 33 | async fn run(&self, stats: &mut Stats) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | async fn think(&self, stats: &mut Stats) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | async fn eat(&self, stats: &mut Stats) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `PHILOSOPHERS` is never used [INFO] [stdout] --> src/philotokio.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | static PHILOSOPHERS: &[&str] = &["Socrates", "Hypatia", "Plato", "Aristotle", "Pythagoras"]; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RotDecoder` is never constructed [INFO] [stdout] --> src/rot13.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct RotDecoder { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RotEncoder` is never constructed [INFO] [stdout] --> src/rot13.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct RotEncoder { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `X` is never constructed [INFO] [stdout] --> src/traits.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct X(u32); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Y` is never constructed [INFO] [stdout] --> src/traits.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Y(u32); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Z` is never constructed [INFO] [stdout] --> src/traits.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Z(u32); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Type` is never used [INFO] [stdout] --> src/traits.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | trait Type { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Work` is never constructed [INFO] [stdout] --> src/tasks.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Work { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_sleep` is never used [INFO] [stdout] --> src/tasks.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | async fn new_sleep() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `worker` is never used [INFO] [stdout] --> src/tasks.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | async fn worker(mut work_queue: mpsc::Receiver) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_work` is never used [INFO] [stdout] --> src/tasks.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | async fn do_work(work_queue: &mpsc::Sender, input: u32) -> u32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Java` and `Perl` are never constructed [INFO] [stdout] --> src/builder.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | enum Language { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 3 | Rust, [INFO] [stdout] 4 | Java, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | Perl, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Language` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `version_expression` are never read [INFO] [stdout] --> src/builder.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | struct Dependency { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 10 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | version_expression: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Dependency` 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/philosophers.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | struct Fork(usize); [INFO] [stdout] | ---- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Fork` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Run` is never constructed [INFO] [stdout] --> src/philosophers.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | enum ControlMsg { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 11 | Run, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/philosophers.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | struct Stats { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 24 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Stats` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/philotokio.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | struct Fork(usize); [INFO] [stdout] | ---- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Fork` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ControlMsg` is never used [INFO] [stdout] --> src/philotokio.rs:13:6 [INFO] [stdout] | [INFO] [stdout] 13 | enum ControlMsg { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/philotokio.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | struct Stats { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 27 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Stats` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/traits.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | struct X(u32); [INFO] [stdout] | - ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/traits.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | struct Y(u32); [INFO] [stdout] | - ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/traits.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | struct Z(u32); [INFO] [stdout] | - ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.70s [INFO] running `Command { std: "docker" "inspect" "8375918a83da8ece09e21163506f6607392c61ddf6a18b7e367699a6818b30d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8375918a83da8ece09e21163506f6607392c61ddf6a18b7e367699a6818b30d7", kill_on_drop: false }` [INFO] [stdout] 8375918a83da8ece09e21163506f6607392c61ddf6a18b7e367699a6818b30d7