[INFO] cloning repository https://github.com/slainless/flame [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/slainless/flame" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fslainless%2Fflame", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fslainless%2Fflame'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f6f5403647e4772b2cca3ccda168515e5ddf4fbd [INFO] checking slainless/flame against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fslainless%2Fflame" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/slainless/flame on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/slainless/flame [INFO] finished tweaking git repo https://github.com/slainless/flame [INFO] tweaked toml for git repo https://github.com/slainless/flame written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/slainless/flame 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bf1b4d58c83e2fe77b4b370ee74926af49ca05aca09e3586916e59f8d8cbc9e2 [INFO] running `Command { std: "docker" "start" "-a" "bf1b4d58c83e2fe77b4b370ee74926af49ca05aca09e3586916e59f8d8cbc9e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bf1b4d58c83e2fe77b4b370ee74926af49ca05aca09e3586916e59f8d8cbc9e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bf1b4d58c83e2fe77b4b370ee74926af49ca05aca09e3586916e59f8d8cbc9e2", kill_on_drop: false }` [INFO] [stdout] bf1b4d58c83e2fe77b4b370ee74926af49ca05aca09e3586916e59f8d8cbc9e2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 358c367d6d862a6cd07c49ff357c0c9af7de273ca892b10fbc8c963354117cac [INFO] running `Command { std: "docker" "start" "-a" "358c367d6d862a6cd07c49ff357c0c9af7de273ca892b10fbc8c963354117cac", kill_on_drop: false }` [INFO] [stderr] Checking webserver v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `SharedParams` [INFO] [stdout] --> src/router/tree/mod.rs:3:70 [INFO] [stdout] | [INFO] [stdout] 3 | use super::{handler::{Handler, SharedHandler}, params::{params_from, SharedParams}}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::response::Response` [INFO] [stdout] --> src/router/handler.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::response::Response; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::Handler` [INFO] [stdout] --> src/router/context.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use super::Handler; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SharedParams` [INFO] [stdout] --> src/router/tree/mod.rs:3:70 [INFO] [stdout] | [INFO] [stdout] 3 | use super::{handler::{Handler, SharedHandler}, params::{params_from, SharedParams}}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BorrowMut` and `collections::HashMap` [INFO] [stdout] --> src/router/tree/tree_test.rs:4:28 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{borrow::{Borrow, BorrowMut}, cell::RefCell, collections::HashMap, error::Error, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/router/tree/tree_test.rs:379:7 [INFO] [stdout] | [INFO] [stdout] 379 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `router::*` [INFO] [stdout] --> src/router/tree/tree_test.rs:382:22 [INFO] [stdout] | [INFO] [stdout] 382 | use crate::{dbgln, router::*}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `strmap` [INFO] [stdout] --> src/router/tree/tree_test.rs:426:16 [INFO] [stdout] | [INFO] [stdout] 426 | macro_rules! strmap { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::response::Response` [INFO] [stdout] --> src/router/handler.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::response::Response; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::Handler` [INFO] [stdout] --> src/router/context.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use super::Handler; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parameter` [INFO] [stdout] --> src/router/tree/mod.rs:212:21 [INFO] [stdout] | [INFO] [stdout] 212 | if let Some(parameter) = &ref_node.parameter { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parameter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Borrow` [INFO] [stdout] --> src/router/tree/tree_test.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{borrow::{Borrow, BorrowMut}, cell::RefCell, collections::HashMap, error::Error, rc::Rc}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tree` [INFO] [stdout] --> src/router/tree/tree_test.rs:530:13 [INFO] [stdout] | [INFO] [stdout] 530 | let mut tree = Tree::new(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tree` [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/router/tree/tree_test.rs:530:9 [INFO] [stdout] | [INFO] [stdout] 530 | let mut tree = Tree::new(); [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: associated function `build_parameters` is never used [INFO] [stdout] --> src/router/tree/mod.rs:127:6 [INFO] [stdout] | [INFO] [stdout] 20 | impl Tree { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 127 | fn build_parameters(param: &HashMap<&str, &str>) -> params::Params { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `MutSharedHandler` is never used [INFO] [stdout] --> src/router/handler.rs:35:10 [INFO] [stdout] | [INFO] [stdout] 35 | pub type MutSharedHandler = Rc>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get` and `insert` are never used [INFO] [stdout] --> src/router/params.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 6 | impl Params { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 7 | pub fn get(&self, key: &str) -> Option<&str> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | fn insert(&mut self, key: String, value: String) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `params_from` is never used [INFO] [stdout] --> src/router/params.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn params_from(map: HashMap) -> Params { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_params` is never used [INFO] [stdout] --> src/router/params.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn set_params(param: &mut Params, key: String, value: String) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_params` is never used [INFO] [stdout] --> src/router/params.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn new_params() -> Params { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_shared_params` is never used [INFO] [stdout] --> src/router/params.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn new_shared_params() -> SharedParams { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `SharedParams` is never used [INFO] [stdout] --> src/router/params.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | pub type SharedParams = Rc; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_headers` is never used [INFO] [stdout] --> src/request.rs:56:17 [INFO] [stdout] | [INFO] [stdout] 27 | impl Request { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 56 | pub(crate) fn set_headers(&mut self, headers: Headers) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `move_to` and `copy_to` are never used [INFO] [stdout] --> src/header.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 26 | impl Headers { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 93 | pub(crate) fn move_to(self, to: &mut Headers) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub(crate) fn copy_to(&self, to: &mut Headers) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> src/header.rs:121:31 [INFO] [stdout] | [INFO] [stdout] 121 | pub struct Value<'a>(&'a str, HashMap<&'a str, &'a str>); [INFO] [stdout] | ----- ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Value` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parameter` [INFO] [stdout] --> src/router/tree/mod.rs:212:21 [INFO] [stdout] | [INFO] [stdout] 212 | if let Some(parameter) = &ref_node.parameter { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parameter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `build_parameters` is never used [INFO] [stdout] --> src/router/tree/mod.rs:127:6 [INFO] [stdout] | [INFO] [stdout] 20 | impl Tree { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 127 | fn build_parameters(param: &HashMap<&str, &str>) -> params::Params { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `MutSharedHandler` is never used [INFO] [stdout] --> src/router/handler.rs:35:10 [INFO] [stdout] | [INFO] [stdout] 35 | pub type MutSharedHandler = Rc>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get` and `insert` are never used [INFO] [stdout] --> src/router/params.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 6 | impl Params { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 7 | pub fn get(&self, key: &str) -> Option<&str> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | fn insert(&mut self, key: String, value: String) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `params_from` is never used [INFO] [stdout] --> src/router/params.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn params_from(map: HashMap) -> Params { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_params` is never used [INFO] [stdout] --> src/router/params.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn set_params(param: &mut Params, key: String, value: String) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_params` is never used [INFO] [stdout] --> src/router/params.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn new_params() -> Params { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_shared_params` is never used [INFO] [stdout] --> src/router/params.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn new_shared_params() -> SharedParams { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `SharedParams` is never used [INFO] [stdout] --> src/router/params.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | pub type SharedParams = Rc; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_headers` is never used [INFO] [stdout] --> src/request.rs:56:17 [INFO] [stdout] | [INFO] [stdout] 27 | impl Request { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 56 | pub(crate) fn set_headers(&mut self, headers: Headers) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `move_to` and `copy_to` are never used [INFO] [stdout] --> src/header.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 26 | impl Headers { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 93 | pub(crate) fn move_to(self, to: &mut Headers) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub(crate) fn copy_to(&self, to: &mut Headers) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> src/header.rs:121:31 [INFO] [stdout] | [INFO] [stdout] 121 | pub struct Value<'a>(&'a str, HashMap<&'a str, &'a str>); [INFO] [stdout] | ----- ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Value` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Handle` and `Return` [INFO] [stdout] --> src/main.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use webserver::{App, Handle, Return}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/router/tree/tree_test.rs:70:3 [INFO] [stdout] | [INFO] [stdout] 70 | h.function.as_ref()(&mut ctx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 70 | let _ = h.function.as_ref()(&mut ctx); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Handle` and `Return` [INFO] [stdout] --> src/main.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use webserver::{App, Handle, Return}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut app = App::new(); [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/main.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut app = App::new(); [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: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.20s [INFO] running `Command { std: "docker" "inspect" "358c367d6d862a6cd07c49ff357c0c9af7de273ca892b10fbc8c963354117cac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "358c367d6d862a6cd07c49ff357c0c9af7de273ca892b10fbc8c963354117cac", kill_on_drop: false }` [INFO] [stdout] 358c367d6d862a6cd07c49ff357c0c9af7de273ca892b10fbc8c963354117cac [INFO] checking slainless/flame against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fslainless%2Fflame" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/slainless/flame on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/slainless/flame [INFO] finished tweaking git repo https://github.com/slainless/flame [INFO] tweaked toml for git repo https://github.com/slainless/flame written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/slainless/flame 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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f92c3f41d4ac03abe5860c59d7f5c93e3565676a5153540adc823d49a058c3c1 [INFO] running `Command { std: "docker" "start" "-a" "f92c3f41d4ac03abe5860c59d7f5c93e3565676a5153540adc823d49a058c3c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f92c3f41d4ac03abe5860c59d7f5c93e3565676a5153540adc823d49a058c3c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f92c3f41d4ac03abe5860c59d7f5c93e3565676a5153540adc823d49a058c3c1", kill_on_drop: false }` [INFO] [stdout] f92c3f41d4ac03abe5860c59d7f5c93e3565676a5153540adc823d49a058c3c1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 18df6824b1a5c5f22aac2c79a2eb7f6f2810d3a0aea51435b7f9b80592cba56a [INFO] running `Command { std: "docker" "start" "-a" "18df6824b1a5c5f22aac2c79a2eb7f6f2810d3a0aea51435b7f9b80592cba56a", kill_on_drop: false }` [INFO] [stderr] Checking webserver v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `SharedParams` [INFO] [stdout] --> src/router/tree/mod.rs:3:70 [INFO] [stdout] | [INFO] [stdout] 3 | use super::{handler::{Handler, SharedHandler}, params::{params_from, SharedParams}}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::response::Response` [INFO] [stdout] --> src/router/handler.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::response::Response; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::Handler` [INFO] [stdout] --> src/router/context.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use super::Handler; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SharedParams` [INFO] [stdout] --> src/router/tree/mod.rs:3:70 [INFO] [stdout] | [INFO] [stdout] 3 | use super::{handler::{Handler, SharedHandler}, params::{params_from, SharedParams}}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BorrowMut` and `collections::HashMap` [INFO] [stdout] --> src/router/tree/tree_test.rs:4:28 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{borrow::{Borrow, BorrowMut}, cell::RefCell, collections::HashMap, error::Error, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/router/tree/tree_test.rs:379:7 [INFO] [stdout] | [INFO] [stdout] 379 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `router::*` [INFO] [stdout] --> src/router/tree/tree_test.rs:382:22 [INFO] [stdout] | [INFO] [stdout] 382 | use crate::{dbgln, router::*}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `strmap` [INFO] [stdout] --> src/router/tree/tree_test.rs:426:16 [INFO] [stdout] | [INFO] [stdout] 426 | macro_rules! strmap { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::response::Response` [INFO] [stdout] --> src/router/handler.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::response::Response; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::Handler` [INFO] [stdout] --> src/router/context.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use super::Handler; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parameter` [INFO] [stdout] --> src/router/tree/mod.rs:212:21 [INFO] [stdout] | [INFO] [stdout] 212 | if let Some(parameter) = &ref_node.parameter { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parameter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `build_parameters` is never used [INFO] [stdout] --> src/router/tree/mod.rs:127:6 [INFO] [stdout] | [INFO] [stdout] 20 | impl Tree { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 127 | fn build_parameters(param: &HashMap<&str, &str>) -> params::Params { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `MutSharedHandler` is never used [INFO] [stdout] --> src/router/handler.rs:35:10 [INFO] [stdout] | [INFO] [stdout] 35 | pub type MutSharedHandler = Rc>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get` and `insert` are never used [INFO] [stdout] --> src/router/params.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 6 | impl Params { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 7 | pub fn get(&self, key: &str) -> Option<&str> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | fn insert(&mut self, key: String, value: String) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `params_from` is never used [INFO] [stdout] --> src/router/params.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn params_from(map: HashMap) -> Params { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_params` is never used [INFO] [stdout] --> src/router/params.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn set_params(param: &mut Params, key: String, value: String) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Borrow` [INFO] [stdout] --> src/router/tree/tree_test.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{borrow::{Borrow, BorrowMut}, cell::RefCell, collections::HashMap, error::Error, rc::Rc}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_params` is never used [INFO] [stdout] --> src/router/params.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn new_params() -> Params { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_shared_params` is never used [INFO] [stdout] --> src/router/params.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn new_shared_params() -> SharedParams { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `SharedParams` is never used [INFO] [stdout] --> src/router/params.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | pub type SharedParams = Rc; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_headers` is never used [INFO] [stdout] --> src/request.rs:56:17 [INFO] [stdout] | [INFO] [stdout] 27 | impl Request { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 56 | pub(crate) fn set_headers(&mut self, headers: Headers) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `move_to` and `copy_to` are never used [INFO] [stdout] --> src/header.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 26 | impl Headers { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 93 | pub(crate) fn move_to(self, to: &mut Headers) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub(crate) fn copy_to(&self, to: &mut Headers) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> src/header.rs:121:31 [INFO] [stdout] | [INFO] [stdout] 121 | pub struct Value<'a>(&'a str, HashMap<&'a str, &'a str>); [INFO] [stdout] | ----- ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Value` has a derived impl for the trait `Debug`, but this is 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/router.rs:112:30 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn main(handler: T) -> Handle { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 112 | Handle(HandleType::Main, Rc::new(handler)) [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/router.rs:116:32 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn before(handler: T) -> Handle { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 116 | Handle(HandleType::Before, Rc::new(handler)) [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.rs:120:31 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn after(handler: T) -> Handle { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 120 | Handle(HandleType::After, Rc::new(handler)) [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.rs:124:36 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn middleware(handler: T) -> Handle { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 124 | Handle(HandleType::Middleware, Rc::new(handler)) [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/tree/mod.rs:103:32 [INFO] [stdout] | [INFO] [stdout] 103 | .map(|h| (h.0, h.1.clone())) [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 5 previous errors; 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `webserver` (lib) due to 6 previous errors; 15 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `tree` [INFO] [stdout] --> src/router/tree/tree_test.rs:530:13 [INFO] [stdout] | [INFO] [stdout] 530 | let mut tree = Tree::new(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tree` [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/router/tree/tree_test.rs:530:9 [INFO] [stdout] | [INFO] [stdout] 530 | let mut tree = Tree::new(); [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: unused variable: `parameter` [INFO] [stdout] --> src/router/tree/mod.rs:212:21 [INFO] [stdout] | [INFO] [stdout] 212 | if let Some(parameter) = &ref_node.parameter { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parameter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `build_parameters` is never used [INFO] [stdout] --> src/router/tree/mod.rs:127:6 [INFO] [stdout] | [INFO] [stdout] 20 | impl Tree { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 127 | fn build_parameters(param: &HashMap<&str, &str>) -> params::Params { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `MutSharedHandler` is never used [INFO] [stdout] --> src/router/handler.rs:35:10 [INFO] [stdout] | [INFO] [stdout] 35 | pub type MutSharedHandler = Rc>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get` and `insert` are never used [INFO] [stdout] --> src/router/params.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 6 | impl Params { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 7 | pub fn get(&self, key: &str) -> Option<&str> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | fn insert(&mut self, key: String, value: String) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `params_from` is never used [INFO] [stdout] --> src/router/params.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn params_from(map: HashMap) -> Params { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_params` is never used [INFO] [stdout] --> src/router/params.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn set_params(param: &mut Params, key: String, value: String) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_params` is never used [INFO] [stdout] --> src/router/params.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn new_params() -> Params { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_shared_params` is never used [INFO] [stdout] --> src/router/params.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn new_shared_params() -> SharedParams { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `SharedParams` is never used [INFO] [stdout] --> src/router/params.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | pub type SharedParams = Rc; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_headers` is never used [INFO] [stdout] --> src/request.rs:56:17 [INFO] [stdout] | [INFO] [stdout] 27 | impl Request { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 56 | pub(crate) fn set_headers(&mut self, headers: Headers) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `move_to` and `copy_to` are never used [INFO] [stdout] --> src/header.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 26 | impl Headers { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 93 | pub(crate) fn move_to(self, to: &mut Headers) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub(crate) fn copy_to(&self, to: &mut Headers) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> src/header.rs:121:31 [INFO] [stdout] | [INFO] [stdout] 121 | pub struct Value<'a>(&'a str, HashMap<&'a str, &'a str>); [INFO] [stdout] | ----- ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Value` has a derived impl for the trait `Debug`, but this is 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/router.rs:112:30 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn main(handler: T) -> Handle { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 112 | Handle(HandleType::Main, Rc::new(handler)) [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/router.rs:116:32 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn before(handler: T) -> Handle { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 116 | Handle(HandleType::Before, Rc::new(handler)) [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.rs:120:31 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn after(handler: T) -> Handle { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 120 | Handle(HandleType::After, Rc::new(handler)) [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.rs:124:36 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn middleware(handler: T) -> Handle { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 124 | Handle(HandleType::Middleware, Rc::new(handler)) [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/tree/mod.rs:103:32 [INFO] [stdout] | [INFO] [stdout] 103 | .map(|h| (h.0, h.1.clone())) [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: unused `Result` that must be used [INFO] [stdout] --> src/router/tree/tree_test.rs:70:3 [INFO] [stdout] | [INFO] [stdout] 70 | h.function.as_ref()(&mut ctx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 70 | let _ = h.function.as_ref()(&mut ctx); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `webserver` (lib test) due to 6 previous errors; 23 warnings emitted [INFO] running `Command { std: "docker" "inspect" "18df6824b1a5c5f22aac2c79a2eb7f6f2810d3a0aea51435b7f9b80592cba56a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "18df6824b1a5c5f22aac2c79a2eb7f6f2810d3a0aea51435b7f9b80592cba56a", kill_on_drop: false }` [INFO] [stdout] 18df6824b1a5c5f22aac2c79a2eb7f6f2810d3a0aea51435b7f9b80592cba56a