[INFO] cloning repository https://github.com/AdvoXS/rust_simple_web [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AdvoXS/rust_simple_web" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAdvoXS%2Frust_simple_web", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAdvoXS%2Frust_simple_web'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 602a125debc38d06ec148d787746487f4be596ea [INFO] checking AdvoXS/rust_simple_web/602a125debc38d06ec148d787746487f4be596ea 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%2FAdvoXS%2Frust_simple_web" "/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/AdvoXS/rust_simple_web 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/AdvoXS/rust_simple_web [INFO] finished tweaking git repo https://github.com/AdvoXS/rust_simple_web [INFO] tweaked toml for git repo https://github.com/AdvoXS/rust_simple_web written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/AdvoXS/rust_simple_web 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] eefeabed1dc94b899f5003c671c0970e214f7f5543b29f83b91a8441d3bcccdd [INFO] running `Command { std: "docker" "start" "-a" "eefeabed1dc94b899f5003c671c0970e214f7f5543b29f83b91a8441d3bcccdd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "eefeabed1dc94b899f5003c671c0970e214f7f5543b29f83b91a8441d3bcccdd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eefeabed1dc94b899f5003c671c0970e214f7f5543b29f83b91a8441d3bcccdd", kill_on_drop: false }` [INFO] [stdout] eefeabed1dc94b899f5003c671c0970e214f7f5543b29f83b91a8441d3bcccdd [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] 684d19dc942a535a9bcf1926825034cc1bbc857cb2351811931fc0a7916f9ba1 [INFO] running `Command { std: "docker" "start" "-a" "684d19dc942a535a9bcf1926825034cc1bbc857cb2351811931fc0a7916f9ba1", kill_on_drop: false }` [INFO] [stderr] Checking aho-corasick v0.7.20 [INFO] [stderr] Checking regex-syntax v0.6.28 [INFO] [stderr] Checking regex v1.7.1 [INFO] [stderr] Checking web_server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `BufReader` and `fs` [INFO] [stdout] --> src/home_controller.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | fs, [INFO] [stdout] | ^^ [INFO] [stdout] 5 | io::{prelude::*, BufReader}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::controller` [INFO] [stdout] --> src/home_controller.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::controller; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Match` [INFO] [stdout] --> src/request_simple_parser.rs:2:23 [INFO] [stdout] | [INFO] [stdout] 2 | use regex::{Captures, Match, Regex}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::controller` [INFO] [stdout] --> src/request_handler.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::controller; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufReader` and `fs` [INFO] [stdout] --> src/controller_404.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | fs, [INFO] [stdout] | ^^ [INFO] [stdout] 5 | io::{prelude::*, BufReader}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::controller` [INFO] [stdout] --> src/controller_404.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::controller; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Error` and `Regex` [INFO] [stdout] --> src/main.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use regex::{Error, Regex}; [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufReader` and `fs` [INFO] [stdout] --> src/home_controller.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | fs, [INFO] [stdout] | ^^ [INFO] [stdout] 5 | io::{prelude::*, BufReader}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::controller` [INFO] [stdout] --> src/home_controller.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::controller; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Match` [INFO] [stdout] --> src/request_simple_parser.rs:2:23 [INFO] [stdout] | [INFO] [stdout] 2 | use regex::{Captures, Match, Regex}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::controller` [INFO] [stdout] --> src/request_handler.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::controller; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufReader` and `fs` [INFO] [stdout] --> src/controller_404.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | fs, [INFO] [stdout] | ^^ [INFO] [stdout] 5 | io::{prelude::*, BufReader}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::controller` [INFO] [stdout] --> src/controller_404.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::controller; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Error` and `Regex` [INFO] [stdout] --> src/main.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use regex::{Error, Regex}; [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/request.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | Place(String, Box), [INFO] [stdout] | ----- ^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Location` 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] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 9 | Place((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `location` and `params` are never read [INFO] [stdout] --> src/request.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Request { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | pub location: Box, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 18 | pub params: HashMap, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Request` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `send_response` is never used [INFO] [stdout] --> src/controller.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Controller { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] 4 | fn handle(&self) -> Option; [INFO] [stdout] 5 | fn send_response(&self) { [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/request_simple_parser.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 7 | let reg_exp_full_req = Regex::new(r"([A-Za-z]+)\s(.+)\s(.+)"); [INFO] [stdout] | ---------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 8 | [INFO] [stdout] 9 | let captures = reg_exp_full_req.unwrap().captures_iter(&*request_str).next().unwrap(); [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 12 | Some(Request { [INFO] [stdout] | __________^ [INFO] [stdout] 13 | | type_request, [INFO] [stdout] 14 | | location_raw: get_location().0, [INFO] [stdout] 15 | | location: get_location().1, [INFO] [stdout] 16 | | params: Default::default(), [INFO] [stdout] 17 | | }) [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/request_handler.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn handle_request(request : Request) -> Option { [INFO] [stdout] | ----------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 10 | get_controller(request).handle() [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 2 previous errors; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `web_server` (bin "web_server" test) due to 3 previous errors; 10 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/request.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | Place(String, Box), [INFO] [stdout] | ----- ^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Location` 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] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 9 | Place((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `location` and `params` are never read [INFO] [stdout] --> src/request.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Request { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | pub location: Box, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 18 | pub params: HashMap, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Request` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `send_response` is never used [INFO] [stdout] --> src/controller.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Controller { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] 4 | fn handle(&self) -> Option; [INFO] [stdout] 5 | fn send_response(&self) { [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/request_simple_parser.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 7 | let reg_exp_full_req = Regex::new(r"([A-Za-z]+)\s(.+)\s(.+)"); [INFO] [stdout] | ---------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 8 | [INFO] [stdout] 9 | let captures = reg_exp_full_req.unwrap().captures_iter(&*request_str).next().unwrap(); [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 12 | Some(Request { [INFO] [stdout] | __________^ [INFO] [stdout] 13 | | type_request, [INFO] [stdout] 14 | | location_raw: get_location().0, [INFO] [stdout] 15 | | location: get_location().1, [INFO] [stdout] 16 | | params: Default::default(), [INFO] [stdout] 17 | | }) [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/request_handler.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn handle_request(request : Request) -> Option { [INFO] [stdout] | ----------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 10 | get_controller(request).handle() [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 2 previous errors; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `web_server` (bin "web_server") due to 3 previous errors; 10 warnings emitted [INFO] running `Command { std: "docker" "inspect" "684d19dc942a535a9bcf1926825034cc1bbc857cb2351811931fc0a7916f9ba1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "684d19dc942a535a9bcf1926825034cc1bbc857cb2351811931fc0a7916f9ba1", kill_on_drop: false }` [INFO] [stdout] 684d19dc942a535a9bcf1926825034cc1bbc857cb2351811931fc0a7916f9ba1