[INFO] cloning repository https://github.com/DevprojectEkla/back_end_indexer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/DevprojectEkla/back_end_indexer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDevprojectEkla%2Fback_end_indexer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDevprojectEkla%2Fback_end_indexer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 30a594623ea23b130931618fe45e41df95608cf5 [INFO] checking DevprojectEkla/back_end_indexer/30a594623ea23b130931618fe45e41df95608cf5 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDevprojectEkla%2Fback_end_indexer" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/DevprojectEkla/back_end_indexer on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/DevprojectEkla/back_end_indexer [INFO] finished tweaking git repo https://github.com/DevprojectEkla/back_end_indexer [INFO] tweaked toml for git repo https://github.com/DevprojectEkla/back_end_indexer written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/DevprojectEkla/back_end_indexer 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" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6513a1c45e28907a181474fb7143cdcb0e2d043aba2f96623163fcd7e524224c [INFO] running `Command { std: "docker" "start" "-a" "6513a1c45e28907a181474fb7143cdcb0e2d043aba2f96623163fcd7e524224c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6513a1c45e28907a181474fb7143cdcb0e2d043aba2f96623163fcd7e524224c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6513a1c45e28907a181474fb7143cdcb0e2d043aba2f96623163fcd7e524224c", kill_on_drop: false }` [INFO] [stdout] 6513a1c45e28907a181474fb7143cdcb0e2d043aba2f96623163fcd7e524224c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail_expr_drop_order" "-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" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4a282513df38609254df41d0ffad3ae0137d993fa9dfa9aa9fe8a5dc50f34d73 [INFO] running `Command { std: "docker" "start" "-a" "4a282513df38609254df41d0ffad3ae0137d993fa9dfa9aa9fe8a5dc50f34d73", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.190 [INFO] [stderr] Compiling hashbrown v0.14.2 [INFO] [stderr] Compiling winnow v0.5.17 [INFO] [stderr] Compiling target-lexicon v0.12.12 [INFO] [stderr] Compiling smallvec v1.11.1 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Compiling version-compare v0.1.1 [INFO] [stderr] Compiling futures-core v0.3.29 [INFO] [stderr] Compiling futures-task v0.3.29 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling futures-util v0.3.29 [INFO] [stderr] Compiling anyhow v1.0.75 [INFO] [stderr] Compiling futures-channel v0.3.29 [INFO] [stderr] Compiling syn v2.0.38 [INFO] [stderr] Compiling thiserror v1.0.50 [INFO] [stderr] Checking getrandom v0.2.11 [INFO] [stderr] Compiling serde_json v1.0.108 [INFO] [stderr] Checking walkdir v2.4.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking xml-rs v0.8.19 [INFO] [stderr] Compiling indexmap v2.0.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling cfg-expr v0.15.5 [INFO] [stderr] Compiling thiserror-impl v1.0.50 [INFO] [stderr] Compiling serde_derive v1.0.190 [INFO] [stderr] Checking futures-executor v0.3.29 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling toml_datetime v0.6.5 [INFO] [stderr] Compiling serde_spanned v0.6.4 [INFO] [stderr] Compiling toml_edit v0.20.7 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling toml v0.8.6 [INFO] [stderr] Compiling glib-macros v0.15.13 [INFO] [stderr] Compiling system-deps v6.1.2 [INFO] [stderr] Compiling glib-sys v0.15.10 [INFO] [stderr] Compiling gobject-sys v0.15.10 [INFO] [stderr] Compiling cairo-sys-rs v0.15.1 [INFO] [stderr] Checking glib v0.15.12 [INFO] [stderr] Checking cairo-rs v0.15.12 [INFO] [stderr] Checking poppler v0.3.2 [INFO] [stderr] Checking back_end_indexer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `check_file_type` [INFO] [stdout] --> src/index.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parsers::{check_file_type, send_to_parser}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PseudoHash` [INFO] [stdout] --> src/index.rs:4:40 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::types::{FromJson, IndexDoc, PseudoHash, SliceChars, SliceContent, TermFreq, TfIdF}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `fs::File`, `io::BufReader`, and `rc::Rc` [INFO] [stdout] --> src/index.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | use std::{cell::RefCell, collections::HashMap, fs::File, io::BufReader, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EventWriter` [INFO] [stdout] --> src/parsers.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use xml::{EventReader, EventWriter}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SliceBytes` [INFO] [stdout] --> src/parsers.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::types::{SliceBytes, SliceChars, SliceContent}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `check_file_type` [INFO] [stdout] --> src/index.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parsers::{check_file_type, send_to_parser}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PseudoHash` [INFO] [stdout] --> src/index.rs:4:40 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::types::{FromJson, IndexDoc, PseudoHash, SliceChars, SliceContent, TermFreq, TfIdF}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `fs::File`, `io::BufReader`, and `rc::Rc` [INFO] [stdout] --> src/index.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | use std::{cell::RefCell, collections::HashMap, fs::File, io::BufReader, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EventWriter` [INFO] [stdout] --> src/parsers.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use xml::{EventReader, EventWriter}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SliceBytes` [INFO] [stdout] --> src/parsers.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::types::{SliceBytes, SliceChars, SliceContent}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sort_function` [INFO] [stdout] --> src/hashmaps.rs:43:69 [INFO] [stdout] | [INFO] [stdout] 43 | fn hashmap_to_json(hashmap: HashMap, name: &str, mut sort_function: F) [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sort_function` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sort_function` [INFO] [stdout] --> src/hashmaps.rs:43:69 [INFO] [stdout] | [INFO] [stdout] 43 | fn hashmap_to_json(hashmap: HashMap, name: &str, mut sort_function: F) [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sort_function` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/hashmaps.rs:43:65 [INFO] [stdout] | [INFO] [stdout] 43 | fn hashmap_to_json(hashmap: HashMap, name: &str, mut sort_function: F) [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: variable does not need to be mutable [INFO] [stdout] --> src/hashmaps.rs:43:65 [INFO] [stdout] | [INFO] [stdout] 43 | fn hashmap_to_json(hashmap: HashMap, name: &str, mut sort_function: F) [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: variable `n` is assigned to, but never used [INFO] [stdout] --> src/index.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 80 | let mut n = 1; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_n` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `n` is assigned to, but never used [INFO] [stdout] --> src/index.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 80 | let mut n = 1; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_n` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `i` is assigned to, but never used [INFO] [stdout] --> src/utils.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let mut i = 1; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_i` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `i` is assigned to, but never used [INFO] [stdout] --> src/utils.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let mut i = 1; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_i` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Index` is never constructed [INFO] [stdout] --> src/hashmaps.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Index { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `new` is never used [INFO] [stdout] --> src/hashmaps.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl Index { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] 10 | fn new(&mut self) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vec_to_json` is never used [INFO] [stdout] --> src/hashmaps.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn vec_to_json(vec: Vec<(K, V)>) -> String [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vec_into_hashmap` is never used [INFO] [stdout] --> src/hashmaps.rs:88:4 [INFO] [stdout] | [INFO] [stdout] 88 | fn vec_into_hashmap(vec: Vec<(K, V)>) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `tf` and `idf` are never read [INFO] [stdout] --> src/index.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Index { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | tf: usize, // tf/idf is the tyical weight calculation for search_engine [INFO] [stdout] | ^^ [INFO] [stdout] 16 | idf: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Index` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/hashmaps.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 43 | fn hashmap_to_json(hashmap: HashMap, name: &str, mut sort_function: F) [INFO] [stdout] | ---------------------- -------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 51 | let data = hashmap; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 77 | let mut json = match File::create(file_path) { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 78 | Ok(json) => json, [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 79 | Err(err) => { [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 84 | json.write_all(json_format.as_bytes()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/hashmaps.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 88 | fn vec_into_hashmap(vec: Vec<(K, V)>) -> HashMap { [INFO] [stdout] | ---------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 89 | vec.into_iter().collect::>() [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/hashmaps.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 91 | fn hashmap_into_vec(hashmap: HashMap) -> Vec<(K, V)> { [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 92 | hashmap.into_iter().collect::>() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/utils.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn wrap_in_rc_ref_cell(variable: T) -> Rc> { [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 36 | Rc::new(RefCell::new(variable)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Index` is never constructed [INFO] [stdout] --> src/hashmaps.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Index { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `new` is never used [INFO] [stdout] --> src/hashmaps.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl Index { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] 10 | fn new(&mut self) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vec_to_json` is never used [INFO] [stdout] --> src/hashmaps.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn vec_to_json(vec: Vec<(K, V)>) -> String [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vec_into_hashmap` is never used [INFO] [stdout] --> src/hashmaps.rs:88:4 [INFO] [stdout] | [INFO] [stdout] 88 | fn vec_into_hashmap(vec: Vec<(K, V)>) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `tf` and `idf` are never read [INFO] [stdout] --> src/index.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Index { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | tf: usize, // tf/idf is the tyical weight calculation for search_engine [INFO] [stdout] | ^^ [INFO] [stdout] 16 | idf: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Index` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/hashmaps.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 43 | fn hashmap_to_json(hashmap: HashMap, name: &str, mut sort_function: F) [INFO] [stdout] | ---------------------- -------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 51 | let data = hashmap; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 77 | let mut json = match File::create(file_path) { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 78 | Ok(json) => json, [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 79 | Err(err) => { [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 84 | json.write_all(json_format.as_bytes()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/hashmaps.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 88 | fn vec_into_hashmap(vec: Vec<(K, V)>) -> HashMap { [INFO] [stdout] | ---------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 89 | vec.into_iter().collect::>() [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/hashmaps.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 91 | fn hashmap_into_vec(hashmap: HashMap) -> Vec<(K, V)> { [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 92 | hashmap.into_iter().collect::>() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/utils.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn wrap_in_rc_ref_cell(variable: T) -> Rc> { [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 36 | Rc::new(RefCell::new(variable)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `back_end_indexer` (lib) due to 5 previous errors; 14 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `back_end_indexer` (lib test) due to 5 previous errors; 14 warnings emitted [INFO] running `Command { std: "docker" "inspect" "4a282513df38609254df41d0ffad3ae0137d993fa9dfa9aa9fe8a5dc50f34d73", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4a282513df38609254df41d0ffad3ae0137d993fa9dfa9aa9fe8a5dc50f34d73", kill_on_drop: false }` [INFO] [stdout] 4a282513df38609254df41d0ffad3ae0137d993fa9dfa9aa9fe8a5dc50f34d73