[INFO] cloning repository https://github.com/LevBeta/Lione [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/LevBeta/Lione" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLevBeta%2FLione", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLevBeta%2FLione'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 42a5db24bb4eca1d66e3c6fb52891215469da02f [INFO] checking LevBeta/Lione/42a5db24bb4eca1d66e3c6fb52891215469da02f 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%2FLevBeta%2FLione" "/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/LevBeta/Lione 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/LevBeta/Lione [INFO] finished tweaking git repo https://github.com/LevBeta/Lione [INFO] tweaked toml for git repo https://github.com/LevBeta/Lione written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/LevBeta/Lione 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] 7fd401234e5269d068f5d5502f6d55d95fad2e7f676c081623336640f13301bb [INFO] running `Command { std: "docker" "start" "-a" "7fd401234e5269d068f5d5502f6d55d95fad2e7f676c081623336640f13301bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7fd401234e5269d068f5d5502f6d55d95fad2e7f676c081623336640f13301bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7fd401234e5269d068f5d5502f6d55d95fad2e7f676c081623336640f13301bb", kill_on_drop: false }` [INFO] [stdout] 7fd401234e5269d068f5d5502f6d55d95fad2e7f676c081623336640f13301bb [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] a83fd5809cf51f7a82525003c1570ea4e0f1acb1e96b27e380600873f7cdaba7 [INFO] running `Command { std: "docker" "start" "-a" "a83fd5809cf51f7a82525003c1570ea4e0f1acb1e96b27e380600873f7cdaba7", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Checking smallvec v1.13.1 [INFO] [stderr] Compiling serde v1.0.196 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling serde_json v1.0.113 [INFO] [stderr] Checking ryu v1.0.17 [INFO] [stderr] Checking itoa v1.0.10 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling syn v2.0.49 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking socket2 v0.5.5 [INFO] [stderr] Checking mio v0.8.10 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Checking tokio v1.36.0 [INFO] [stderr] Checking lione v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/router.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body_json` [INFO] [stdout] --> src/http/request.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | let body_json = Body::parse(r#"{"key": "value"}"#.to_string(), Some("application/json")); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_body_json` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body_json` [INFO] [stdout] --> src/http/request.rs:147:40 [INFO] [stdout] | [INFO] [stdout] 147 | assert!(matches!(request.body, body_json)); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_body_json` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Route` is more private than the item `Router::routes` [INFO] [stdout] --> src/router.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub routes: HashMap Response + Send + Sync>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `Router::routes` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Route` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/router.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | struct Route { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `query`, `headers`, and `body` are never read [INFO] [stdout] --> src/http/request.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Request { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | pub query: HashMap, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | pub headers: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 13 | pub body: Body, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Request` 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: associated items `new`, `text`, `status`, `body`, `header`, and `not_found` are never used [INFO] [stdout] --> src/http/response.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Response { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 14 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn text(&mut self, body: &str) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn status(&mut self, code: StatusCode) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn body(&mut self, body: Body) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn header(&mut self, name: &str, value: &str) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn not_found() -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Ok`, `NotFound`, and `BadRequest` are never constructed [INFO] [stdout] --> src/http/statuscode.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum StatusCode { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 3 | Ok, [INFO] [stdout] | ^^ [INFO] [stdout] 4 | NotFound, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 5 | BadRequest, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StatusCode` 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: struct `Router` is never constructed [INFO] [stdout] --> src/router.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Router { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Router` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/router.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 25 | impl Router { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 26 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub(crate) fn match_route( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn get( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn post( [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn delete( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn put( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub(crate) fn handle(&self, request: Request) -> Response { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Server` is never constructed [INFO] [stdout] --> src/server.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Server { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `run`, and `handle_connection` are never used [INFO] [stdout] --> src/server.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Server { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(listener: TcpListener) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub async fn run(&self) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | async fn handle_connection(stream: &mut TcpStream, router: Router) -> Result<(), LioneError> { [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/server.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(listener: TcpListener) -> Self { [INFO] [stdout] | --------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 16 | routes: Router::new(), [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/server.rs:27:92 [INFO] [stdout] | [INFO] [stdout] 25 | Ok((mut stream, _)) => { [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 26 | let router = self.routes.clone(); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 27 | tokio::spawn(async move { Self::handle_connection(&mut stream, router).await }); [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; 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request` [INFO] [stdout] --> src/server.rs:64:24 [INFO] [stdout] | [INFO] [stdout] 64 | .get("/", |request| Response::new().text("Hello from lione!")) [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request` [INFO] [stdout] --> src/server.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | fn bye(request: Request) -> Response { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `lione` (lib) due to 3 previous errors; 8 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: type `Route` is more private than the item `Router::routes` [INFO] [stdout] --> src/router.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub routes: HashMap Response + Send + Sync>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `Router::routes` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Route` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/router.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | struct Route { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `query` is never read [INFO] [stdout] --> src/http/request.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Request { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | pub query: HashMap, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Request` 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: variant `BadRequest` is never constructed [INFO] [stdout] --> src/http/statuscode.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum StatusCode { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 5 | BadRequest, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StatusCode` 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: methods `post`, `delete`, and `put` are never used [INFO] [stdout] --> src/router.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Router { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn post( [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn delete( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn put( [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/server.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(listener: TcpListener) -> Self { [INFO] [stdout] | --------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 16 | routes: Router::new(), [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/server.rs:27:92 [INFO] [stdout] | [INFO] [stdout] 25 | Ok((mut stream, _)) => { [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 26 | let router = self.routes.clone(); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 27 | tokio::spawn(async move { Self::handle_connection(&mut stream, router).await }); [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; 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `lione` (lib test) due to 3 previous errors; 9 warnings emitted [INFO] running `Command { std: "docker" "inspect" "a83fd5809cf51f7a82525003c1570ea4e0f1acb1e96b27e380600873f7cdaba7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a83fd5809cf51f7a82525003c1570ea4e0f1acb1e96b27e380600873f7cdaba7", kill_on_drop: false }` [INFO] [stdout] a83fd5809cf51f7a82525003c1570ea4e0f1acb1e96b27e380600873f7cdaba7