[INFO] cloning repository https://github.com/MaChenXu123/mit
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MaChenXu123/mit" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMaChenXu123%2Fmit", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMaChenXu123%2Fmit'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 0e40b05e36dfea60b48288a7271fc6161f8cf23c
[INFO] checking MaChenXu123/mit against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMaChenXu123%2Fmit" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/MaChenXu123/mit
[INFO] finished tweaking git repo https://github.com/MaChenXu123/mit
[INFO] tweaked toml for git repo https://github.com/MaChenXu123/mit written to /workspace/builds/worker-5-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/MaChenXu123/mit on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/MaChenXu123/mit 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 727212c0c968703741ed83dfce83a3d15495815f309f47b1c3a32229c6f8f12f
[INFO] running `Command { std: "docker" "start" "-a" "727212c0c968703741ed83dfce83a3d15495815f309f47b1c3a32229c6f8f12f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "727212c0c968703741ed83dfce83a3d15495815f309f47b1c3a32229c6f8f12f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "727212c0c968703741ed83dfce83a3d15495815f309f47b1c3a32229c6f8f12f", kill_on_drop: false }`
[INFO] [stdout] 727212c0c968703741ed83dfce83a3d15495815f309f47b1c3a32229c6f8f12f
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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 -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 682cce3013d738660f884c243f722ffaecc1f4a1da370646c04271c58ad03814
[INFO] running `Command { std: "docker" "start" "-a" "682cce3013d738660f884c243f722ffaecc1f4a1da370646c04271c58ad03814", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.70
[INFO] [stderr]    Compiling serde v1.0.193
[INFO] [stderr]    Compiling serde_json v1.0.108
[INFO] [stderr]     Checking cpufeatures v0.2.11
[INFO] [stderr]     Checking miniz_oxide v0.7.1
[INFO] [stderr]     Checking digest v0.9.0
[INFO] [stderr]     Checking sha2 v0.10.8
[INFO] [stderr]     Checking flate2 v1.0.28
[INFO] [stderr]    Compiling quote v1.0.33
[INFO] [stderr]    Compiling syn v2.0.40
[INFO] [stderr]    Compiling serde_derive v1.0.193
[INFO] [stderr]     Checking mit v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `Path`
[INFO] [stdout]  --> src/config/path/find_path.rs:2:17
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::path::{Path, PathBuf};
[INFO] [stdout]   |                 ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Deserializer`
[INFO] [stdout]  --> src/core/version/dir_struct.rs:3:26
[INFO] [stdout]   |
[INFO] [stdout] 3 | use serde::{Deserialize, Deserializer, Serialize};
[INFO] [stdout]   |                          ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Sha256`
[INFO] [stdout]  --> src/core/version/dir_struct.rs:5:20
[INFO] [stdout]   |
[INFO] [stdout] 5 | use sha2::{Digest, Sha256};
[INFO] [stdout]   |                    ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Path`
[INFO] [stdout]  --> src/config/path/find_path.rs:2:17
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::path::{Path, PathBuf};
[INFO] [stdout]   |                 ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Deserializer`
[INFO] [stdout]  --> src/core/version/dir_struct.rs:3:26
[INFO] [stdout]   |
[INFO] [stdout] 3 | use serde::{Deserialize, Deserializer, Serialize};
[INFO] [stdout]   |                          ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `env`
[INFO] [stdout]  --> src/core/version/dir_struct.rs:4:11
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::{env, fs};
[INFO] [stdout]   |           ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Sha256`
[INFO] [stdout]  --> src/core/version/dir_struct.rs:5:20
[INFO] [stdout]   |
[INFO] [stdout] 5 | use sha2::{Digest, Sha256};
[INFO] [stdout]   |                    ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::config::path::find_path::find_dir`
[INFO] [stdout]  --> src/core/version/dir_struct.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use crate::config::path::find_path::find_dir;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::config::path::find_path::FindMode::Top`
[INFO] [stdout]  --> src/core/version/dir_struct.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use crate::config::path::find_path::FindMode::Top;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Digest`
[INFO] [stdout]  --> src/core/version/dir_struct.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | use sha2::{Digest, Sha256};
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]   --> src/config/path/find_path.rs:40:23
[INFO] [stdout]    |
[INFO] [stdout] 40 |            if let Err(e) = path.read_dir(){
[INFO] [stdout]    |                       ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/test/link.rs:49:17
[INFO] [stdout]    |
[INFO] [stdout] 49 |             let mut old_char_and_new_char: BTreeMap<i64, (char, char)> = BTreeMap::new();
[INFO] [stdout]    |                 ----^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `old_char_and_new_char`
[INFO] [stdout]   --> src/test/link.rs:49:17
[INFO] [stdout]    |
[INFO] [stdout] 49 |             let mut old_char_and_new_char: BTreeMap<i64, (char, char)> = BTreeMap::new();
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old_char_and_new_char`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `json_str`
[INFO] [stdout]   --> src/core/version/dir_struct.rs:26:9
[INFO] [stdout]    |
[INFO] [stdout] 26 |     let json_str = serde_json::to_string(&x).unwrap();
[INFO] [stdout]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_json_str`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Digest`
[INFO] [stdout]  --> src/core/version/dir_struct.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | use sha2::{Digest, Sha256};
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `t`
[INFO] [stdout]   --> src/core/storage/version_struct.rs:40:18
[INFO] [stdout]    |
[INFO] [stdout] 40 |             Some(t)=>{
[INFO] [stdout]    |                  ^ help: if this is intentional, prefix it with an underscore: `_t`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]   --> src/config/path/find_path.rs:40:23
[INFO] [stdout]    |
[INFO] [stdout] 40 |            if let Err(e) = path.read_dir(){
[INFO] [stdout]    |                       ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Bottom` is never constructed
[INFO] [stdout]   --> src/config/path/find_path.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout] 20 | pub enum FindMode{
[INFO] [stdout]    |          -------- variant in this enum
[INFO] [stdout] 21 |     Top,
[INFO] [stdout] 22 |     Bottom
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `FindMode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Node` is never constructed
[INFO] [stdout]  --> src/test/m_test.rs:5:8
[INFO] [stdout]   |
[INFO] [stdout] 5 | struct Node<T> {
[INFO] [stdout]   |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/test/m_test.rs:12:8
[INFO] [stdout]    |
[INFO] [stdout] 11 | impl<T> Node<T> {
[INFO] [stdout]    | --------------- associated function in this implementation
[INFO] [stdout] 12 |     fn new(value: T) -> Rc<RefCell<Node<T>>> {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DoublyLinkedList` is never constructed
[INFO] [stdout]   --> src/test/m_test.rs:22:12
[INFO] [stdout]    |
[INFO] [stdout] 22 | pub struct DoublyLinkedList<T> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `push_front`, and `push_back` are never used
[INFO] [stdout]   --> src/test/m_test.rs:28:12
[INFO] [stdout]    |
[INFO] [stdout] 27 | impl<T> DoublyLinkedList<T> {
[INFO] [stdout]    | --------------------------- associated items in this implementation
[INFO] [stdout] 28 |     pub fn new() -> DoublyLinkedList<T> {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 32 |     pub fn push_front(&mut self, value: T) {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 47 |     pub fn push_back(&mut self, value: T) {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `VersionNode` is never constructed
[INFO] [stdout]  --> src/core/storage/version_struct.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct VersionNode<T>{
[INFO] [stdout]   |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/core/storage/version_struct.rs:15:12
[INFO] [stdout]    |
[INFO] [stdout] 14 | impl<T> VersionNode<T>{
[INFO] [stdout]    | ---------------------- associated function in this implementation
[INFO] [stdout] 15 |     pub fn new(data:T)->Self{
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `VersionNodeList` is never constructed
[INFO] [stdout]   --> src/core/storage/version_struct.rs:25:12
[INFO] [stdout]    |
[INFO] [stdout] 25 | pub struct VersionNodeList<T>{
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `append` are never used
[INFO] [stdout]   --> src/core/storage/version_struct.rs:31:12
[INFO] [stdout]    |
[INFO] [stdout] 30 | impl<T> VersionNodeList<T>  {
[INFO] [stdout]    | -------------------------- associated items in this implementation
[INFO] [stdout] 31 |     pub fn new()->Self{
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 37 |     pub fn append(&mut self, data:Rc<RefCell<VersionNode<T>>>){
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/test/link.rs:49:17
[INFO] [stdout]    |
[INFO] [stdout] 49 |             let mut old_char_and_new_char: BTreeMap<i64, (char, char)> = BTreeMap::new();
[INFO] [stdout]    |                 ----^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `old_char_and_new_char`
[INFO] [stdout]   --> src/test/link.rs:49:17
[INFO] [stdout]    |
[INFO] [stdout] 49 |             let mut old_char_and_new_char: BTreeMap<i64, (char, char)> = BTreeMap::new();
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old_char_and_new_char`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]   --> src/core/version/dir_struct.rs:36:74
[INFO] [stdout]    |
[INFO] [stdout] 36 |   let dir_name=format_path(".",path.clone().to_str().unwrap(),static_path.clone().len());
[INFO] [stdout]    |                                                                          ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]    |
[INFO] [stdout]    = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout]    = note: `#[warn(noop_method_call)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<std::string::String, Infallible>
[INFO] [stdout]   --> src/core/version/dir_struct.rs:38:19
[INFO] [stdout]    |
[INFO] [stdout] 38 |         dir_name: dir_name.parse().unwrap(),
[INFO] [stdout]    |                   ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: requested on the command line with `-D unmustuse-in-always-ok`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]   --> src/core/storage/storage_file.rs:21:57
[INFO] [stdout]    |
[INFO] [stdout] 21 |     let mut file_comparison=FileComparison::new(new_file.clone().to_string());
[INFO] [stdout]    |                                                         ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]    |
[INFO] [stdout]    = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]   --> src/core/storage/storage_file.rs:25:26
[INFO] [stdout]    |
[INFO] [stdout] 25 |         long_str=old_file.clone();
[INFO] [stdout]    |                          ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]    |
[INFO] [stdout]    = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]   --> src/core/storage/storage_file.rs:26:27
[INFO] [stdout]    |
[INFO] [stdout] 26 |         small_str=new_file.clone();
[INFO] [stdout]    |                           ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]    |
[INFO] [stdout]    = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]   --> src/core/storage/storage_file.rs:28:26
[INFO] [stdout]    |
[INFO] [stdout] 28 |         long_str=new_file.clone();
[INFO] [stdout]    |                          ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]    |
[INFO] [stdout]    = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]   --> src/core/storage/storage_file.rs:29:27
[INFO] [stdout]    |
[INFO] [stdout] 29 |         small_str=old_file.clone();
[INFO] [stdout]    |                           ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]    |
[INFO] [stdout]    = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]   --> src/core/storage/storage_file.rs:31:28
[INFO] [stdout]    |
[INFO] [stdout] 31 |     for line in 0..long_str.clone().lines().count() {
[INFO] [stdout]    |                            ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]    |
[INFO] [stdout]    = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]   --> src/core/storage/storage_file.rs:32:22
[INFO] [stdout]    |
[INFO] [stdout] 32 |          if small_str.clone().lines().nth(line)==None {
[INFO] [stdout]    |                      ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]    |
[INFO] [stdout]    = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]   --> src/core/storage/storage_file.rs:35:26
[INFO] [stdout]    |
[INFO] [stdout] 35 |              if small_str.clone().lines().nth(line)!=long_str.clone().lines().nth(line) {
[INFO] [stdout]    |                          ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]    |
[INFO] [stdout]    = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]   --> src/core/storage/storage_file.rs:35:62
[INFO] [stdout]    |
[INFO] [stdout] 35 |              if small_str.clone().lines().nth(line)!=long_str.clone().lines().nth(line) {
[INFO] [stdout]    |                                                              ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]    |
[INFO] [stdout]    = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `t`
[INFO] [stdout]   --> src/core/storage/version_struct.rs:40:18
[INFO] [stdout]    |
[INFO] [stdout] 40 |             Some(t)=>{
[INFO] [stdout]    |                  ^ help: if this is intentional, prefix it with an underscore: `_t`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Bottom` is never constructed
[INFO] [stdout]   --> src/config/path/find_path.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout] 20 | pub enum FindMode{
[INFO] [stdout]    |          -------- variant in this enum
[INFO] [stdout] 21 |     Top,
[INFO] [stdout] 22 |     Bottom
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `FindMode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `mit` (bin "mit" test) due to 1 previous error; 28 warnings emitted
[INFO] [stdout] warning: struct `Node` is never constructed
[INFO] [stdout]  --> src/test/m_test.rs:5:8
[INFO] [stdout]   |
[INFO] [stdout] 5 | struct Node<T> {
[INFO] [stdout]   |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/test/m_test.rs:12:8
[INFO] [stdout]    |
[INFO] [stdout] 11 | impl<T> Node<T> {
[INFO] [stdout]    | --------------- associated function in this implementation
[INFO] [stdout] 12 |     fn new(value: T) -> Rc<RefCell<Node<T>>> {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DoublyLinkedList` is never constructed
[INFO] [stdout]   --> src/test/m_test.rs:22:12
[INFO] [stdout]    |
[INFO] [stdout] 22 | pub struct DoublyLinkedList<T> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `push_front`, and `push_back` are never used
[INFO] [stdout]   --> src/test/m_test.rs:28:12
[INFO] [stdout]    |
[INFO] [stdout] 27 | impl<T> DoublyLinkedList<T> {
[INFO] [stdout]    | --------------------------- associated items in this implementation
[INFO] [stdout] 28 |     pub fn new() -> DoublyLinkedList<T> {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 32 |     pub fn push_front(&mut self, value: T) {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 47 |     pub fn push_back(&mut self, value: T) {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `TempComparisonStruct` is never constructed
[INFO] [stdout]  --> src/test/link.rs:4:8
[INFO] [stdout]   |
[INFO] [stdout] 4 | struct TempComparisonStruct<'a, 'b> {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `file_comparison` is never used
[INFO] [stdout]   --> src/test/link.rs:11:4
[INFO] [stdout]    |
[INFO] [stdout] 11 | fn file_comparison(old_file: String, new_file: String) -> Option<String> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DirEntity` is never constructed
[INFO] [stdout]   --> src/core/version/dir_struct.rs:11:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct DirEntity{
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `FileEntity` is never constructed
[INFO] [stdout]   --> src/core/version/dir_struct.rs:17:8
[INFO] [stdout]    |
[INFO] [stdout] 17 | struct FileEntity{
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_dir_entity` is never used
[INFO] [stdout]   --> src/core/version/dir_struct.rs:35:8
[INFO] [stdout]    |
[INFO] [stdout] 35 | pub fn get_dir_entity(path:PathBuf,static_path:&str)->DirEntity{
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `format_path` is never used
[INFO] [stdout]   --> src/core/version/dir_struct.rs:64:4
[INFO] [stdout]    |
[INFO] [stdout] 64 | fn format_path(add_str:&str, temp_str:&str, len: usize) ->String{
[INFO] [stdout]    |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `VersionNode` is never constructed
[INFO] [stdout]  --> src/core/storage/version_struct.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct VersionNode<T>{
[INFO] [stdout]   |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/core/storage/version_struct.rs:15:12
[INFO] [stdout]    |
[INFO] [stdout] 14 | impl<T> VersionNode<T>{
[INFO] [stdout]    | ---------------------- associated function in this implementation
[INFO] [stdout] 15 |     pub fn new(data:T)->Self{
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `VersionNodeList` is never constructed
[INFO] [stdout]   --> src/core/storage/version_struct.rs:25:12
[INFO] [stdout]    |
[INFO] [stdout] 25 | pub struct VersionNodeList<T>{
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `append` are never used
[INFO] [stdout]   --> src/core/storage/version_struct.rs:31:12
[INFO] [stdout]    |
[INFO] [stdout] 30 | impl<T> VersionNodeList<T>  {
[INFO] [stdout]    | -------------------------- associated items in this implementation
[INFO] [stdout] 31 |     pub fn new()->Self{
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 37 |     pub fn append(&mut self, data:Rc<RefCell<VersionNode<T>>>){
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `FileComparison` is never constructed
[INFO] [stdout]  --> src/core/storage/storage_file.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct FileComparison{
[INFO] [stdout]   |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/core/storage/storage_file.rs:11:12
[INFO] [stdout]    |
[INFO] [stdout] 10 | impl FileComparison{
[INFO] [stdout]    | ------------------- associated function in this implementation
[INFO] [stdout] 11 |     pub fn new(new_str:String) -> FileComparison {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `compare_files` is never used
[INFO] [stdout]   --> src/core/storage/storage_file.rs:20:8
[INFO] [stdout]    |
[INFO] [stdout] 20 | pub fn compare_files(old_file: &str, new_file: &str) -> FileComparison {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `compress_string` is never used
[INFO] [stdout]  --> src/utils/compress/compress_str.rs:5:8
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub fn compress_string(input: &str) -> Vec<u8> {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `decompress_string` is never used
[INFO] [stdout]   --> src/utils/compress/compress_str.rs:11:8
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub fn decompress_string(input: &[u8]) -> String {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]   --> src/core/version/dir_struct.rs:36:74
[INFO] [stdout]    |
[INFO] [stdout] 36 |   let dir_name=format_path(".",path.clone().to_str().unwrap(),static_path.clone().len());
[INFO] [stdout]    |                                                                          ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]    |
[INFO] [stdout]    = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout]    = note: `#[warn(noop_method_call)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<std::string::String, Infallible>
[INFO] [stdout]   --> src/core/version/dir_struct.rs:38:19
[INFO] [stdout]    |
[INFO] [stdout] 38 |         dir_name: dir_name.parse().unwrap(),
[INFO] [stdout]    |                   ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: requested on the command line with `-D unmustuse-in-always-ok`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]   --> src/core/storage/storage_file.rs:21:57
[INFO] [stdout]    |
[INFO] [stdout] 21 |     let mut file_comparison=FileComparison::new(new_file.clone().to_string());
[INFO] [stdout]    |                                                         ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]    |
[INFO] [stdout]    = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]   --> src/core/storage/storage_file.rs:25:26
[INFO] [stdout]    |
[INFO] [stdout] 25 |         long_str=old_file.clone();
[INFO] [stdout]    |                          ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]    |
[INFO] [stdout]    = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]   --> src/core/storage/storage_file.rs:26:27
[INFO] [stdout]    |
[INFO] [stdout] 26 |         small_str=new_file.clone();
[INFO] [stdout]    |                           ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]    |
[INFO] [stdout]    = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]   --> src/core/storage/storage_file.rs:28:26
[INFO] [stdout]    |
[INFO] [stdout] 28 |         long_str=new_file.clone();
[INFO] [stdout]    |                          ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]    |
[INFO] [stdout]    = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]   --> src/core/storage/storage_file.rs:29:27
[INFO] [stdout]    |
[INFO] [stdout] 29 |         small_str=old_file.clone();
[INFO] [stdout]    |                           ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]    |
[INFO] [stdout]    = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]   --> src/core/storage/storage_file.rs:31:28
[INFO] [stdout]    |
[INFO] [stdout] 31 |     for line in 0..long_str.clone().lines().count() {
[INFO] [stdout]    |                            ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]    |
[INFO] [stdout]    = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]   --> src/core/storage/storage_file.rs:32:22
[INFO] [stdout]    |
[INFO] [stdout] 32 |          if small_str.clone().lines().nth(line)==None {
[INFO] [stdout]    |                      ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]    |
[INFO] [stdout]    = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]   --> src/core/storage/storage_file.rs:35:26
[INFO] [stdout]    |
[INFO] [stdout] 35 |              if small_str.clone().lines().nth(line)!=long_str.clone().lines().nth(line) {
[INFO] [stdout]    |                          ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]    |
[INFO] [stdout]    = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]   --> src/core/storage/storage_file.rs:35:62
[INFO] [stdout]    |
[INFO] [stdout] 35 |              if small_str.clone().lines().nth(line)!=long_str.clone().lines().nth(line) {
[INFO] [stdout]    |                                                              ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]    |
[INFO] [stdout]    = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `mit` (bin "mit") due to 1 previous error; 41 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "682cce3013d738660f884c243f722ffaecc1f4a1da370646c04271c58ad03814", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "682cce3013d738660f884c243f722ffaecc1f4a1da370646c04271c58ad03814", kill_on_drop: false }`
[INFO] [stdout] 682cce3013d738660f884c243f722ffaecc1f4a1da370646c04271c58ad03814
