[INFO] cloning repository https://github.com/ganemaruko/scheme_converter [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ganemaruko/scheme_converter" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fganemaruko%2Fscheme_converter", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fganemaruko%2Fscheme_converter'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d423bba05da174e12a84d68a6b930f496aa93099 [INFO] checking ganemaruko/scheme_converter against master#8365fcb2b840c95eeb0bc377af8bd498fad22245 for pr-145605 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fganemaruko%2Fscheme_converter" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-2-tc1/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/ganemaruko/scheme_converter [INFO] finished tweaking git repo https://github.com/ganemaruko/scheme_converter [INFO] tweaked toml for git repo https://github.com/ganemaruko/scheme_converter written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ganemaruko/scheme_converter on toolchain 8365fcb2b840c95eeb0bc377af8bd498fad22245 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8365fcb2b840c95eeb0bc377af8bd498fad22245" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ganemaruko/scheme_converter 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" "+8365fcb2b840c95eeb0bc377af8bd498fad22245" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8365fcb2b840c95eeb0bc377af8bd498fad22245" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 094e92ffe2a5582dcb60e6dcfeb4d3232b74ec19fde46bb267089bc7674dc29a [INFO] running `Command { std: "docker" "start" "-a" "094e92ffe2a5582dcb60e6dcfeb4d3232b74ec19fde46bb267089bc7674dc29a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "094e92ffe2a5582dcb60e6dcfeb4d3232b74ec19fde46bb267089bc7674dc29a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "094e92ffe2a5582dcb60e6dcfeb4d3232b74ec19fde46bb267089bc7674dc29a", kill_on_drop: false }` [INFO] [stdout] 094e92ffe2a5582dcb60e6dcfeb4d3232b74ec19fde46bb267089bc7674dc29a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8365fcb2b840c95eeb0bc377af8bd498fad22245" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5f3b6afdc63ad2844a6420e66395ecae7f7f160265f8495f07e582c6a1885021 [INFO] running `Command { std: "docker" "start" "-a" "5f3b6afdc63ad2844a6420e66395ecae7f7f160265f8495f07e582c6a1885021", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.63 [INFO] [stderr] Compiling quote v1.0.29 [INFO] [stderr] Compiling unicode-ident v1.0.9 [INFO] [stderr] Compiling serde v1.0.164 [INFO] [stderr] Compiling serde_json v1.0.99 [INFO] [stderr] Checking ryu v1.0.13 [INFO] [stderr] Checking itoa v1.0.6 [INFO] [stderr] Compiling syn v2.0.22 [INFO] [stderr] Compiling serde_derive v1.0.164 [INFO] [stderr] Checking scheme-converter v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Result` and `Value` [INFO] [stdout] --> src/core/tree.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use serde_json::{Result, Value}; [INFO] [stdout] | ^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/core/tree.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/core/tree.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/core/tree.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::leaf::tree::Leaf` [INFO] [stdout] --> src/core/tree.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | use super::leaf::tree::Leaf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Result` and `Value` [INFO] [stdout] --> src/core/tree.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use serde_json::{Result, Value}; [INFO] [stdout] | ^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/core/tree.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/core/tree.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/core/tree.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::leaf::tree::Leaf` [INFO] [stdout] --> src/core/tree.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | use super::leaf::tree::Leaf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/core/tree.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/core/tree.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/core/tree.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/core/tree.rs:39:30 [INFO] [stdout] | [INFO] [stdout] 39 | Tree::Leaf { value } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `value: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tree` [INFO] [stdout] --> src/core/tree.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | let tree = Tree::Leaf { value: 1 }; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tree` [INFO] [stdout] --> src/core/tree.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | let tree = Tree::Leaf { value: "aaa" }; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tree` [INFO] [stdout] --> src/core/tree.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | let tree = Tree::ListBranch { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Int32Leaf` is never constructed [INFO] [stdout] --> src/core/tree/leaf/number.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | struct Int32Leaf{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Leaf` is never constructed [INFO] [stdout] --> src/core/tree/leaf.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Leaf { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `List` is never constructed [INFO] [stdout] --> src/core/tree/list.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct List { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/core/tree.rs:39:30 [INFO] [stdout] | [INFO] [stdout] 39 | Tree::Leaf { value } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `value: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Int32Leaf` is never constructed [INFO] [stdout] --> src/core/tree/leaf/number.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | struct Int32Leaf{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StringLeaf` is never constructed [INFO] [stdout] --> src/core/tree/leaf/string.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct StringLeaf { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Leaf` is never constructed [INFO] [stdout] --> src/core/tree/leaf.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Leaf { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `List` is never constructed [INFO] [stdout] --> src/core/tree/list.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct List { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Tree` is never used [INFO] [stdout] --> src/core/tree.rs:16:14 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum Tree { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `append` is never used [INFO] [stdout] --> src/core/tree.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 28 | impl Tree { [INFO] [stdout] | ----------------------------------------------- method in this implementation [INFO] [stdout] 29 | pub fn append(&mut self, key: String, value: Tree) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Converter` is never used [INFO] [stdout] --> src/core/converter.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | pub trait Converter { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Result` and `Value` [INFO] [stdout] --> src/core/tree.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use serde_json::{Result, Value}; [INFO] [stdout] | ^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/core/tree.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/core/tree.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/core/tree.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::leaf::tree::Leaf` [INFO] [stdout] --> src/core/tree.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | use super::leaf::tree::Leaf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/core/tree.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/core/tree.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/core/tree.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::tree` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::core::tree; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Result` [INFO] [stdout] --> src/main.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | use serde_json::{Result, Value}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | if (tree.is_none()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 83 - if (tree.is_none()) { [INFO] [stdout] 83 + if tree.is_none() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Result` and `Value` [INFO] [stdout] --> src/core/tree.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use serde_json::{Result, Value}; [INFO] [stdout] | ^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/core/tree.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/core/tree.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/core/tree.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::leaf::tree::Leaf` [INFO] [stdout] --> src/core/tree.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | use super::leaf::tree::Leaf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::tree` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::core::tree; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Result` [INFO] [stdout] --> src/main.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | use serde_json::{Result, Value}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | if (tree.is_none()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 83 - if (tree.is_none()) { [INFO] [stdout] 83 + if tree.is_none() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/core/tree.rs:39:30 [INFO] [stdout] | [INFO] [stdout] 39 | Tree::Leaf { value } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `value: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tree` [INFO] [stdout] --> src/main.rs:183:13 [INFO] [stdout] | [INFO] [stdout] 183 | let mut tree: Tree = Tree::MapBranch { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 183 | let mut tree: Tree = Tree::MapBranch { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | String(String), [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Leaf` 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] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 22 - String(String), [INFO] [stdout] 22 + String(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | Number(i64), [INFO] [stdout] | ------ ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Leaf` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 23 - Number(i64), [INFO] [stdout] 23 + Number(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | Boolean(bool), [INFO] [stdout] | ------- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Leaf` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 24 - Boolean(bool), [INFO] [stdout] 24 + Boolean(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_fibonach_recursively` is never used [INFO] [stdout] --> src/main.rs:164:4 [INFO] [stdout] | [INFO] [stdout] 164 | fn calc_fibonach_recursively(n: i64) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Int32Leaf` is never constructed [INFO] [stdout] --> src/core/tree/leaf/number.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | struct Int32Leaf{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StringLeaf` is never constructed [INFO] [stdout] --> src/core/tree/leaf/string.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct StringLeaf { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Leaf` is never constructed [INFO] [stdout] --> src/core/tree/leaf.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Leaf { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `List` is never constructed [INFO] [stdout] --> src/core/tree/list.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct List { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ListBranch` is never constructed [INFO] [stdout] --> src/core/tree.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum Tree { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 17 | ListBranch { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Tree` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Converter` is never used [INFO] [stdout] --> src/core/converter.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | pub trait Converter { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/core/tree.rs:39:30 [INFO] [stdout] | [INFO] [stdout] 39 | Tree::Leaf { value } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `value: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tree` [INFO] [stdout] --> src/core/tree.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | let tree = Tree::Leaf { value: 1 }; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tree` [INFO] [stdout] --> src/core/tree.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | let tree = Tree::Leaf { value: "aaa" }; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tree` [INFO] [stdout] --> src/core/tree.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | let tree = Tree::ListBranch { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tree` [INFO] [stdout] --> src/main.rs:183:13 [INFO] [stdout] | [INFO] [stdout] 183 | let mut tree: Tree = Tree::MapBranch { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 183 | let mut tree: Tree = Tree::MapBranch { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | String(String), [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Leaf` 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] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 22 - String(String), [INFO] [stdout] 22 + String(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | Number(i64), [INFO] [stdout] | ------ ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Leaf` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 23 - Number(i64), [INFO] [stdout] 23 + Number(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | Boolean(bool), [INFO] [stdout] | ------- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Leaf` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 24 - Boolean(bool), [INFO] [stdout] 24 + Boolean(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_fibonach_recursively` is never used [INFO] [stdout] --> src/main.rs:164:4 [INFO] [stdout] | [INFO] [stdout] 164 | fn calc_fibonach_recursively(n: i64) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Int32Leaf` is never constructed [INFO] [stdout] --> src/core/tree/leaf/number.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | struct Int32Leaf{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Leaf` is never constructed [INFO] [stdout] --> src/core/tree/leaf.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Leaf { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `List` is never constructed [INFO] [stdout] --> src/core/tree/list.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct List { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.76s [INFO] running `Command { std: "docker" "inspect" "5f3b6afdc63ad2844a6420e66395ecae7f7f160265f8495f07e582c6a1885021", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5f3b6afdc63ad2844a6420e66395ecae7f7f160265f8495f07e582c6a1885021", kill_on_drop: false }` [INFO] [stdout] 5f3b6afdc63ad2844a6420e66395ecae7f7f160265f8495f07e582c6a1885021