[INFO] cloning repository https://github.com/NghiaHaNgoc/hotel-management-server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/NghiaHaNgoc/hotel-management-server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNghiaHaNgoc%2Fhotel-management-server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNghiaHaNgoc%2Fhotel-management-server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e66f396f1fcd822eafcfef48771226df23303f24 [INFO] checking NghiaHaNgoc/hotel-management-server/e66f396f1fcd822eafcfef48771226df23303f24 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%2FNghiaHaNgoc%2Fhotel-management-server" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/NghiaHaNgoc/hotel-management-server 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/NghiaHaNgoc/hotel-management-server [INFO] finished tweaking git repo https://github.com/NghiaHaNgoc/hotel-management-server [INFO] tweaked toml for git repo https://github.com/NghiaHaNgoc/hotel-management-server written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/NghiaHaNgoc/hotel-management-server 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-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] ad350e3263d99ca03b2fbf9ec2965fad69afa632f10604bdd8567b1c525b4bc1 [INFO] running `Command { std: "docker" "start" "-a" "ad350e3263d99ca03b2fbf9ec2965fad69afa632f10604bdd8567b1c525b4bc1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ad350e3263d99ca03b2fbf9ec2965fad69afa632f10604bdd8567b1c525b4bc1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ad350e3263d99ca03b2fbf9ec2965fad69afa632f10604bdd8567b1c525b4bc1", kill_on_drop: false }` [INFO] [stdout] ad350e3263d99ca03b2fbf9ec2965fad69afa632f10604bdd8567b1c525b4bc1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] bd806c0785e53d6a5a454aabed1ee987f944bd0f4006eb90d4604a048bcd93c0 [INFO] running `Command { std: "docker" "start" "-a" "bd806c0785e53d6a5a454aabed1ee987f944bd0f4006eb90d4604a048bcd93c0", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.82 [INFO] [stderr] Compiling libc v0.2.154 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Compiling serde v1.0.202 [INFO] [stderr] Compiling cc v1.0.97 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Checking untrusted v0.9.0 [INFO] [stderr] Compiling rustversion v1.0.17 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling serde_json v1.0.117 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling thiserror v1.0.60 [INFO] [stderr] Checking inout v0.1.3 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Checking memchr v2.7.2 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking url v2.5.0 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking rustls-pemfile v1.0.4 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling anyhow v1.0.83 [INFO] [stderr] Checking webpki-roots v0.25.4 [INFO] [stderr] Checking matchit v0.7.3 [INFO] [stderr] Checking bitflags v2.5.0 [INFO] [stderr] Checking zeroize v1.7.0 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Checking pem v3.0.4 [INFO] [stderr] Checking subtle v2.5.0 [INFO] [stderr] Checking blowfish v0.9.1 [INFO] [stderr] Compiling axum-core v0.4.3 [INFO] [stderr] Compiling axum v0.7.5 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Compiling syn v2.0.63 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking parking_lot v0.12.2 [INFO] [stderr] Checking http-body v1.0.0 [INFO] [stderr] Checking headers-core v0.3.0 [INFO] [stderr] Checking bcrypt v0.15.1 [INFO] [stderr] Checking headers v0.4.0 [INFO] [stderr] Checking http-body-util v0.1.1 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking tower-http v0.5.2 [INFO] [stderr] Checking num-bigint v0.4.5 [INFO] [stderr] Compiling darling_core v0.20.9 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling serde_derive v1.0.202 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling async-trait v0.1.80 [INFO] [stderr] Compiling thiserror-impl v1.0.60 [INFO] [stderr] Compiling serde_repr v0.1.19 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Checking rustls-webpki v0.101.7 [INFO] [stderr] Checking tokio v1.37.0 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking simple_asn1 v0.6.2 [INFO] [stderr] Compiling darling_macro v0.20.9 [INFO] [stderr] Compiling darling v0.20.9 [INFO] [stderr] Compiling serde_with_macros v3.8.1 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking hyper v1.3.1 [INFO] [stderr] Checking tokio-rustls v0.24.1 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_path_to_error v0.1.16 [INFO] [stderr] Checking serde_with v3.8.1 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking hyper-util v0.1.3 [INFO] [stderr] Checking jsonwebtoken v9.3.0 [INFO] [stderr] Checking hyper v0.14.28 [INFO] [stderr] Checking axum-extra v0.9.3 [INFO] [stderr] Checking hyper-rustls v0.24.2 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking postgrest v1.6.0 [INFO] [stderr] Checking hotel-management-server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `response::IntoResponse` [INFO] [stdout] --> src/service/account/employee_sign_in.rs:3:46 [INFO] [stdout] | [INFO] [stdout] 3 | use axum::{extract::State, http::StatusCode, response::IntoResponse, Json}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Room` [INFO] [stdout] --> src/service/reservation.rs:3:64 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::model::database::{GeneralStatus, ReservationStatus, Room, TypeRoom}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Amenity`, `TypeRoom`, `ViewDirectionTypeRoom`, and `utils::vector_difference` [INFO] [stdout] --> src/service/type_room/add_type_room_image.rs:14:20 [INFO] [stdout] | [INFO] [stdout] 14 | database::{Amenity, TypeRoom, TypeRoomImage, ViewDirectionTypeRoom}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | utils::vector_difference, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `response::IntoResponse` [INFO] [stdout] --> src/service/account/employee_sign_in.rs:3:46 [INFO] [stdout] | [INFO] [stdout] 3 | use axum::{extract::State, http::StatusCode, response::IntoResponse, Json}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Room` [INFO] [stdout] --> src/service/reservation.rs:3:64 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::model::database::{GeneralStatus, ReservationStatus, Room, TypeRoom}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Amenity`, `TypeRoom`, `ViewDirectionTypeRoom`, and `utils::vector_difference` [INFO] [stdout] --> src/service/type_room/add_type_room_image.rs:14:20 [INFO] [stdout] | [INFO] [stdout] 14 | database::{Amenity, TypeRoom, TypeRoomImage, ViewDirectionTypeRoom}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | utils::vector_difference, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `success` and `status` are never read [INFO] [stdout] --> src/model/imgbb.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct ImgbbResponse { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 12 | pub data: ImgbbData, [INFO] [stdout] 13 | pub success: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 14 | pub status: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ImgbbResponse` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/model/imgbb.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct ImgbbData { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 20 | pub id: Option, [INFO] [stdout] | ^^ [INFO] [stdout] 21 | pub title: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 22 | pub url_viewer: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 23 | pub url: Option, [INFO] [stdout] 24 | pub display_url: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 25 | pub width: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 26 | pub height: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 27 | pub size: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 28 | pub time: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 29 | pub expiration: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 30 | pub image: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 31 | pub thumb: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 32 | pub medium: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 33 | pub delete_url: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ImgbbData` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `filename`, `name`, `mime`, `extension`, and `url` are never read [INFO] [stdout] --> src/model/imgbb.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct ImgbbImage { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 39 | pub filename: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 40 | pub name: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 41 | pub mime: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 42 | pub extension: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 43 | pub url: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ImgbbImage` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `valid_time_from_and_to` is never used [INFO] [stdout] --> src/utils.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn valid_time_from_and_to(from: &str, to: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_ovelaped_date_range` is never used [INFO] [stdout] --> src/utils.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn is_ovelaped_date_range(a: (&str, &str), b: (&str, &str)) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [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/model/error.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 32 | fn from(err: E) -> Self { [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 33 | Self(err.into()) [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/model/response.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 56 | let mut header = HeaderMap::new(); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 61 | (self.status, header, self.body).into_response() [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/router/admin.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn admin_router(db: Arc) -> Router { [INFO] [stdout] | ------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 16 | let layer = middleware::from_fn(layer::admin_layer); [INFO] [stdout] 17 | / Router::new() [INFO] [stdout] 18 | | // User [INFO] [stdout] 19 | | .route("/user/add", post(users::add_user)) [INFO] [stdout] 20 | | .route("/user/list", get(users::list_user)) [INFO] [stdout] ... | [INFO] [stdout] 50 | | .route("/reservation/list", get(reservation::admin::list_reservation)) [INFO] [stdout] 51 | | .with_state(db) [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/router/customer.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn customer_router(db: Arc) -> Router { [INFO] [stdout] | ------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 16 | let layer = middleware::from_fn(layer::customer_layer); [INFO] [stdout] 17 | / Router::new() [INFO] [stdout] 18 | | // Room [INFO] [stdout] 19 | | .route("/room/list", get(room::list_room)) [INFO] [stdout] 20 | | .route("/room/detail/:room_id", get(room::room_detail_of_customer)) [INFO] [stdout] ... | [INFO] [stdout] 29 | | ) [INFO] [stdout] 30 | | .with_state(db) [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/router/general.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn general_router(db: Arc) -> Router { [INFO] [stdout] | ------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 12 | / Router::new() [INFO] [stdout] 13 | | .route("/user/profile", get(account::get_profile)) [INFO] [stdout] 14 | | .route("/user/profile", post(account::update_profile)) [INFO] [stdout] 15 | | .route("/user/change-password", post(account::change_password)) [INFO] [stdout] 16 | | .route("/user/available-room", get(room::list_available_room)) [INFO] [stdout] 17 | | .route("/user/reservation/add", post(reservation::general::add_reservation)) [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/router/public.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn public_router(db: Arc) -> Router { [INFO] [stdout] | ------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 12 | / Router::new() [INFO] [stdout] 13 | | .route("/employee/sign-in", post(account::employee_sign_in)) [INFO] [stdout] 14 | | .route("/customer/sign-in", post(account::customer_sign_in)) [INFO] [stdout] 15 | | .route("/customer/sign-up", post(account::sign_up)) [INFO] [stdout] 16 | | // Type room [INFO] [stdout] 17 | | .route("/public/type-room/list", get(type_room::list_type_room)) [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:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | let s1: HashSet = v1.iter().cloned().collect(); [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 8 | let s2: HashSet = v2.iter().cloned().collect(); [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 9 | (&s1 - &s2).iter().cloned().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 7 previous errors; 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `hotel-management-server` (bin "hotel-management-server") due to 8 previous errors; 8 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: fields `success` and `status` are never read [INFO] [stdout] --> src/model/imgbb.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct ImgbbResponse { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 12 | pub data: ImgbbData, [INFO] [stdout] 13 | pub success: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 14 | pub status: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ImgbbResponse` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/model/imgbb.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct ImgbbData { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 20 | pub id: Option, [INFO] [stdout] | ^^ [INFO] [stdout] 21 | pub title: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 22 | pub url_viewer: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 23 | pub url: Option, [INFO] [stdout] 24 | pub display_url: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 25 | pub width: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 26 | pub height: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 27 | pub size: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 28 | pub time: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 29 | pub expiration: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 30 | pub image: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 31 | pub thumb: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 32 | pub medium: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 33 | pub delete_url: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ImgbbData` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `filename`, `name`, `mime`, `extension`, and `url` are never read [INFO] [stdout] --> src/model/imgbb.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct ImgbbImage { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 39 | pub filename: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 40 | pub name: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 41 | pub mime: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 42 | pub extension: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 43 | pub url: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ImgbbImage` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `valid_time_from_and_to` is never used [INFO] [stdout] --> src/utils.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn valid_time_from_and_to(from: &str, to: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_ovelaped_date_range` is never used [INFO] [stdout] --> src/utils.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn is_ovelaped_date_range(a: (&str, &str), b: (&str, &str)) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [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/model/error.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 32 | fn from(err: E) -> Self { [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 33 | Self(err.into()) [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/model/response.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 56 | let mut header = HeaderMap::new(); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 61 | (self.status, header, self.body).into_response() [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/router/admin.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn admin_router(db: Arc) -> Router { [INFO] [stdout] | ------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 16 | let layer = middleware::from_fn(layer::admin_layer); [INFO] [stdout] 17 | / Router::new() [INFO] [stdout] 18 | | // User [INFO] [stdout] 19 | | .route("/user/add", post(users::add_user)) [INFO] [stdout] 20 | | .route("/user/list", get(users::list_user)) [INFO] [stdout] ... | [INFO] [stdout] 50 | | .route("/reservation/list", get(reservation::admin::list_reservation)) [INFO] [stdout] 51 | | .with_state(db) [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/router/customer.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn customer_router(db: Arc) -> Router { [INFO] [stdout] | ------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 16 | let layer = middleware::from_fn(layer::customer_layer); [INFO] [stdout] 17 | / Router::new() [INFO] [stdout] 18 | | // Room [INFO] [stdout] 19 | | .route("/room/list", get(room::list_room)) [INFO] [stdout] 20 | | .route("/room/detail/:room_id", get(room::room_detail_of_customer)) [INFO] [stdout] ... | [INFO] [stdout] 29 | | ) [INFO] [stdout] 30 | | .with_state(db) [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/router/general.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn general_router(db: Arc) -> Router { [INFO] [stdout] | ------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 12 | / Router::new() [INFO] [stdout] 13 | | .route("/user/profile", get(account::get_profile)) [INFO] [stdout] 14 | | .route("/user/profile", post(account::update_profile)) [INFO] [stdout] 15 | | .route("/user/change-password", post(account::change_password)) [INFO] [stdout] 16 | | .route("/user/available-room", get(room::list_available_room)) [INFO] [stdout] 17 | | .route("/user/reservation/add", post(reservation::general::add_reservation)) [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/router/public.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn public_router(db: Arc) -> Router { [INFO] [stdout] | ------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 12 | / Router::new() [INFO] [stdout] 13 | | .route("/employee/sign-in", post(account::employee_sign_in)) [INFO] [stdout] 14 | | .route("/customer/sign-in", post(account::customer_sign_in)) [INFO] [stdout] 15 | | .route("/customer/sign-up", post(account::sign_up)) [INFO] [stdout] 16 | | // Type room [INFO] [stdout] 17 | | .route("/public/type-room/list", get(type_room::list_type_room)) [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:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | let s1: HashSet = v1.iter().cloned().collect(); [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 8 | let s2: HashSet = v2.iter().cloned().collect(); [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 9 | (&s1 - &s2).iter().cloned().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 7 previous errors; 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `hotel-management-server` (bin "hotel-management-server" test) due to 8 previous errors; 8 warnings emitted [INFO] running `Command { std: "docker" "inspect" "bd806c0785e53d6a5a454aabed1ee987f944bd0f4006eb90d4604a048bcd93c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bd806c0785e53d6a5a454aabed1ee987f944bd0f4006eb90d4604a048bcd93c0", kill_on_drop: false }` [INFO] [stdout] bd806c0785e53d6a5a454aabed1ee987f944bd0f4006eb90d4604a048bcd93c0