[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 try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMaChenXu123%2Fmit" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MaChenXu123/mit on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "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-4-tc2/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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b84c8199b829fc88098f6dd012be984f78b0b5f418e3cbc82767488b12287b8a [INFO] running `Command { std: "docker" "start" "-a" "b84c8199b829fc88098f6dd012be984f78b0b5f418e3cbc82767488b12287b8a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b84c8199b829fc88098f6dd012be984f78b0b5f418e3cbc82767488b12287b8a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b84c8199b829fc88098f6dd012be984f78b0b5f418e3cbc82767488b12287b8a", kill_on_drop: false }` [INFO] [stdout] b84c8199b829fc88098f6dd012be984f78b0b5f418e3cbc82767488b12287b8a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 490dc569b574bf1d8ceb394fd27d1a59d6b6cbbdede4831cd6658f7ec2e6ee8c [INFO] running `Command { std: "docker" "start" "-a" "490dc569b574bf1d8ceb394fd27d1a59d6b6cbbdede4831cd6658f7ec2e6ee8c", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling proc-macro2 v1.0.70 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling serde v1.0.193 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Compiling serde_json v1.0.108 [INFO] [stderr] Checking itoa v1.0.10 [INFO] [stderr] Checking cpufeatures v0.2.11 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking ryu v1.0.16 [INFO] [stderr] Checking miniz_oxide v0.7.1 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking digest v0.10.7 [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 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/core/version/dir_struct.rs (3 fixes) [INFO] [stderr] Fixed src/config/path/find_path.rs (1 fix) [INFO] [stderr] Fixed src/test/link.rs (1 fix) [INFO] [stderr] Fixed src/core/storage/storage_file.rs (9 fixes) [INFO] [stdout] warning: unused import: `sha2::Digest` [INFO] [stdout] --> src/core/version/dir_struct.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use sha2::Digest; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [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:17 [INFO] [stdout] | [INFO] [stdout] 49 | let 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: 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: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/core/version/dir_struct.rs (3 fixes) [INFO] [stdout] warning: unused import: `sha2::Digest` [INFO] [stdout] --> src/core/version/dir_struct.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use sha2::Digest; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [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:17 [INFO] [stdout] | [INFO] [stdout] 49 | let 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: 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 `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:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | 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:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | 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: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.96s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking mit v0.1.0 (/tmp/fixit) [INFO] [stdout] error[E0425]: cannot find function `find_dir` in this scope [INFO] [stdout] --> src/core/version/dir_struct.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | let mit_dir=find_dir(".mit",env::current_dir().unwrap(),Top); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 3 + use crate::find_dir; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env` [INFO] [stdout] --> src/core/version/dir_struct.rs:22:33 [INFO] [stdout] | [INFO] [stdout] 22 | let mit_dir=find_dir(".mit",env::current_dir().unwrap(),Top); [INFO] [stdout] | ^^^ use of undeclared crate or module `env` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these modules [INFO] [stdout] | [INFO] [stdout] 3 + use crate::env; [INFO] [stdout] | [INFO] [stdout] 3 + use std::env; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Top` in this scope [INFO] [stdout] --> src/core/version/dir_struct.rs:22:61 [INFO] [stdout] | [INFO] [stdout] 22 | let mit_dir=find_dir(".mit",env::current_dir().unwrap(),Top); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 3 + use crate::config::path::find_path::FindMode::Top; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sha2::Digest` [INFO] [stdout] --> src/core/version/dir_struct.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use sha2::Digest; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [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:17 [INFO] [stdout] | [INFO] [stdout] 49 | let 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: unused import: `sha2::Digest` [INFO] [stdout] --> src/core/version/dir_struct.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use sha2::Digest; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [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:17 [INFO] [stdout] | [INFO] [stdout] 49 | let 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: 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 `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:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | 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:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | 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: 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: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `mit` (bin "mit" test) due to 4 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "490dc569b574bf1d8ceb394fd27d1a59d6b6cbbdede4831cd6658f7ec2e6ee8c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "490dc569b574bf1d8ceb394fd27d1a59d6b6cbbdede4831cd6658f7ec2e6ee8c", kill_on_drop: false }` [INFO] [stdout] 490dc569b574bf1d8ceb394fd27d1a59d6b6cbbdede4831cd6658f7ec2e6ee8c