[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/0e40b05e36dfea60b48288a7271fc6161f8cf23c against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMaChenXu123%2Fmit" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MaChenXu123/mit on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-0-tc1/source/Cargo.toml [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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a9600cd457252f7664071b7f37464789794b2e8f7f7f8cb04e4e8a935e41195d [INFO] running `Command { std: "docker" "start" "-a" "a9600cd457252f7664071b7f37464789794b2e8f7f7f8cb04e4e8a935e41195d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a9600cd457252f7664071b7f37464789794b2e8f7f7f8cb04e4e8a935e41195d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a9600cd457252f7664071b7f37464789794b2e8f7f7f8cb04e4e8a935e41195d", kill_on_drop: false }` [INFO] [stdout] a9600cd457252f7664071b7f37464789794b2e8f7f7f8cb04e4e8a935e41195d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 680c504f6ec523f4f84069a4f90245b51c39c3a01c3588a0d392b19f3a99170b [INFO] running `Command { std: "docker" "start" "-a" "680c504f6ec523f4f84069a4f90245b51c39c3a01c3588a0d392b19f3a99170b", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling proc-macro2 v1.0.70 [INFO] [stderr] Compiling serde v1.0.193 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling serde_json v1.0.108 [INFO] [stderr] Checking miniz_oxide v0.7.1 [INFO] [stderr] Checking cpufeatures v0.2.11 [INFO] [stderr] Checking itoa v1.0.10 [INFO] [stderr] Checking ryu v1.0.16 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking flate2 v1.0.28 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.40 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking sha2 v0.10.8 [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)]` 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: `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)]` 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: `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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `old_char_and_new_char` [INFO] [stdout] --> src/test/link.rs:49:21 [INFO] [stdout] | [INFO] [stdout] 49 | let mut old_char_and_new_char: BTreeMap = 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: 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 = BTreeMap::new(); [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: 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 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)]` 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)]` 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 { [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 Node { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 12 | fn new(value: T) -> Rc>> { [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 { [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 DoublyLinkedList { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 28 | pub fn new() -> DoublyLinkedList { [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 { [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{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VersionNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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 VersionNode{ [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{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VersionNodeList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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 VersionNodeList { [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>>){ [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 { [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] 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: unused variable: `old_char_and_new_char` [INFO] [stdout] --> src/test/link.rs:49:21 [INFO] [stdout] | [INFO] [stdout] 49 | let mut old_char_and_new_char: BTreeMap = 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/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: 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 = BTreeMap::new(); [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: 38 warnings emitted [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 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)]` 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 { [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 Node { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 12 | fn new(value: T) -> Rc>> { [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 { [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 DoublyLinkedList { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 28 | pub fn new() -> DoublyLinkedList { [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{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VersionNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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 VersionNode{ [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{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VersionNodeList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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 VersionNodeList { [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>>){ [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] 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: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.09s [INFO] running `Command { std: "docker" "inspect" "680c504f6ec523f4f84069a4f90245b51c39c3a01c3588a0d392b19f3a99170b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "680c504f6ec523f4f84069a4f90245b51c39c3a01c3588a0d392b19f3a99170b", kill_on_drop: false }` [INFO] [stdout] 680c504f6ec523f4f84069a4f90245b51c39c3a01c3588a0d392b19f3a99170b