[INFO] cloning repository https://github.com/baij930312/axum_demo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/baij930312/axum_demo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbaij930312%2Faxum_demo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbaij930312%2Faxum_demo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d2f6d4942f6a27c73df923063b6a51d76651cd4b [INFO] checking baij930312/axum_demo/d2f6d4942f6a27c73df923063b6a51d76651cd4b 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%2Fbaij930312%2Faxum_demo" "/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/baij930312/axum_demo 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/baij930312/axum_demo [INFO] finished tweaking git repo https://github.com/baij930312/axum_demo [INFO] tweaked toml for git repo https://github.com/baij930312/axum_demo written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/baij930312/axum_demo 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] ef0820dae3d7f96059754439014bd6d9efe0ddb47c4485123aca25b3ed00501e [INFO] running `Command { std: "docker" "start" "-a" "ef0820dae3d7f96059754439014bd6d9efe0ddb47c4485123aca25b3ed00501e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ef0820dae3d7f96059754439014bd6d9efe0ddb47c4485123aca25b3ed00501e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef0820dae3d7f96059754439014bd6d9efe0ddb47c4485123aca25b3ed00501e", kill_on_drop: false }` [INFO] [stdout] ef0820dae3d7f96059754439014bd6d9efe0ddb47c4485123aca25b3ed00501e [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] 2292be3c065a0f1fc80b61579e645ba8df6059b7c2644aa8c7a000af4381bb81 [INFO] running `Command { std: "docker" "start" "-a" "2292be3c065a0f1fc80b61579e645ba8df6059b7c2644aa8c7a000af4381bb81", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.33 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.82 [INFO] [stderr] Compiling libc v0.2.109 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking pin-project-lite v0.2.7 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling futures-core v0.3.19 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Checking bytes v1.1.0 [INFO] [stderr] Checking smallvec v1.7.0 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Checking once_cell v1.8.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling tokio v1.14.0 [INFO] [stderr] Checking tracing-core v0.1.21 [INFO] [stderr] Checking lock_api v0.4.5 [INFO] [stderr] Compiling futures-task v0.3.19 [INFO] [stderr] Checking futures-sink v0.3.19 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling serde_derive v1.0.131 [INFO] [stderr] Compiling futures-util v0.3.19 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling serde v1.0.131 [INFO] [stderr] Compiling crc32fast v1.3.0 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking mio v0.7.14 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling radium v0.5.3 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling ryu v1.0.6 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Compiling nom v4.2.3 [INFO] [stderr] Checking http v0.2.5 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking alloc-no-stdlib v2.0.3 [INFO] [stderr] Checking alloc-stdlib v0.2.1 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking crossbeam-utils v0.6.6 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Checking flate2 v1.0.22 [INFO] [stderr] Compiling nom v6.1.2 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling serde_json v1.0.72 [INFO] [stderr] Checking ppv-lite86 v0.2.15 [INFO] [stderr] Checking wyz v0.2.0 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Compiling httparse v1.5.1 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Checking funty v1.1.0 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Compiling futures-channel v0.3.19 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking crossbeam-channel v0.3.9 [INFO] [stderr] Checking base64 v0.10.1 [INFO] [stderr] Checking bitvec v0.19.6 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Checking http-body v0.4.4 [INFO] [stderr] Checking brotli-decompressor v2.3.2 [INFO] [stderr] Compiling unicode-segmentation v1.8.0 [INFO] [stderr] Checking tower-service v0.3.1 [INFO] [stderr] Compiling encoding_rs v0.8.30 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Compiling async-trait v0.1.51 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Checking hdrhistogram v6.3.4 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking brotli v3.3.2 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling multer v2.0.2 [INFO] [stderr] Checking tower-layer v0.3.1 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking slab v0.4.5 [INFO] [stderr] Checking matches v0.1.9 [INFO] [stderr] Checking try-lock v0.2.3 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Checking matchers v0.0.1 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking socket2 v0.4.2 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Checking tracing-log v0.1.2 [INFO] [stderr] Checking thread_local v1.1.3 [INFO] [stderr] Checking sharded-slab v0.1.4 [INFO] [stderr] Checking http-range-header v0.3.0 [INFO] [stderr] Checking spin v0.9.2 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Checking httpdate v1.0.2 [INFO] [stderr] Checking atoi v0.3.3 [INFO] [stderr] Checking matchit v0.4.4 [INFO] [stderr] Checking futures-io v0.3.19 [INFO] [stderr] Checking sync_wrapper v0.1.1 [INFO] [stderr] Checking futures v0.3.19 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Checking iri-string v0.4.0 [INFO] [stderr] Compiling tokio-macros v1.6.0 [INFO] [stderr] Compiling tracing-attributes v0.1.18 [INFO] [stderr] Compiling pin-project-internal v1.0.8 [INFO] [stderr] Compiling async-stream-impl v0.3.2 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Checking async-stream v0.3.2 [INFO] [stderr] Compiling enum-iterator-derive v0.7.0 [INFO] [stderr] Compiling int-enum-impl v0.4.0 [INFO] [stderr] Checking axum-core v0.1.1 [INFO] [stderr] Checking enum-iterator v0.7.0 [INFO] [stderr] Checking tracing v0.1.29 [INFO] [stderr] Checking int-enum v0.4.0 [INFO] [stderr] Checking pin-project v1.0.8 [INFO] [stderr] Checking tracing-futures v0.2.5 [INFO] [stderr] Checking structopt v0.3.25 [INFO] [stderr] Checking tokio-stream v0.1.8 [INFO] [stderr] Checking tokio-util v0.6.9 [INFO] [stderr] Checking async-compression v0.3.8 [INFO] [stderr] Checking hyper v0.14.15 [INFO] [stderr] Checking tower v0.4.11 [INFO] [stderr] Checking tracing-serde v0.1.2 [INFO] [stderr] Checking serde_urlencoded v0.7.0 [INFO] [stderr] Checking tracing-subscriber v0.2.25 [INFO] [stderr] Checking tower-http v0.2.0 [INFO] [stderr] Checking mini-redis v0.4.1 [INFO] [stderr] Checking axum v0.4.2 [INFO] [stderr] Checking web v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::vec` [INFO] [stdout] --> examples/echo-server-copy.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::vec; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncReadExt` and `AsyncWriteExt` [INFO] [stdout] --> examples/echo-server-copy.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | io::{self, AsyncReadExt, AsyncWriteExt}, [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] --> examples/echo-server-copy.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | loop { [INFO] [stdout] | _____^ - [INFO] [stdout] | |__________| [INFO] [stdout] 39 | || let (mut socket, _) = listener.accept().await.unwrap(); [INFO] [stdout] 40 | || tokio::spawn(async move { [INFO] [stdout] 41 | || let (mut rt, mut wt) = socket.split(); [INFO] [stdout] ... || [INFO] [stdout] 47 | || }); [INFO] [stdout] 48 | || } [INFO] [stdout] | ||_____^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____| [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: aborting due to 1 previous error; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `web` (example "echo-server-copy") due to 2 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused import: `layer::layer_fn` [INFO] [stdout] --> examples/middleware.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | use tower::{layer::layer_fn, Service, ServiceBuilder}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remove` is never used [INFO] [stdout] --> examples/heap.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn remove(nums: &mut Vec) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sync::oneshot` [INFO] [stdout] --> examples/select.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::{select, sync::mpsc, sync::oneshot}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle1` [INFO] [stdout] --> examples/select.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let handle1 = tokio::spawn(async move { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle2` [INFO] [stdout] --> examples/select.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let handle2 = tokio::spawn(async move { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle3` [INFO] [stdout] --> examples/select.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | let handle3 = tokio::spawn(async move { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `action` is never used [INFO] [stdout] --> examples/select.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | async fn action(input: Option) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/middleware.rs:176:24 [INFO] [stdout] | [INFO] [stdout] 176 | fn call(&mut self, mut req: Request) -> Self::Future { [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] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> examples/middleware.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 28 | let rt = Builder::new_multi_thread().enable_all().build().unwrap(); [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 29 | [INFO] [stdout] 30 | rt.block_on(async { [INFO] [stdout] | _________________^ [INFO] [stdout] 31 | | if std::env::var_os("RUST_LOG").is_none() { [INFO] [stdout] 32 | | std::env::set_var("RUST_LOG", "example_multipart_form=debug,tower_http=debug") [INFO] [stdout] 33 | | } [INFO] [stdout] ... | [INFO] [stdout] 67 | | .unwrap(); [INFO] [stdout] 68 | | }) [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] --> examples/middleware.rs:184:18 [INFO] [stdout] | [INFO] [stdout] 176 | fn call(&mut self, mut req: Request) -> Self::Future { [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 181 | let clone = self.inner.clone(); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 182 | let mut inner = std::mem::replace(&mut self.inner, clone); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 183 | [INFO] [stdout] 184 | Box::pin(async move { [INFO] [stdout] | __________________^ [INFO] [stdout] 185 | | let res: Response = inner.call(req).await?; [INFO] [stdout] 186 | | [INFO] [stdout] 187 | | println!("`MyMiddleware` received the response"); [INFO] [stdout] 188 | | [INFO] [stdout] 189 | | Ok(res) [INFO] [stdout] 190 | | }) [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; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `web` (example "middleware") due to 3 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "2292be3c065a0f1fc80b61579e645ba8df6059b7c2644aa8c7a000af4381bb81", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2292be3c065a0f1fc80b61579e645ba8df6059b7c2644aa8c7a000af4381bb81", kill_on_drop: false }` [INFO] [stdout] 2292be3c065a0f1fc80b61579e645ba8df6059b7c2644aa8c7a000af4381bb81