[INFO] fetching crate axum-core 0.5.5... [INFO] testing axum-core-0.5.5 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] extracting crate axum-core 0.5.5 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate axum-core 0.5.5 [INFO] finished tweaking crates.io crate axum-core 0.5.5 [INFO] tweaked toml for crates.io crate axum-core 0.5.5 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate axum-core 0.5.5 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate axum-core 0.5.5 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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b20d07b0ed4661371a4c1973e1920844cea7c81ca59ade808db853f233622d7a [INFO] running `Command { std: "docker" "start" "-a" "b20d07b0ed4661371a4c1973e1920844cea7c81ca59ade808db853f233622d7a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b20d07b0ed4661371a4c1973e1920844cea7c81ca59ade808db853f233622d7a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b20d07b0ed4661371a4c1973e1920844cea7c81ca59ade808db853f233622d7a", kill_on_drop: false }` [INFO] [stdout] b20d07b0ed4661371a4c1973e1920844cea7c81ca59ade808db853f233622d7a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 228cf03d8da38fa41756cb9a284b4e3d61558098620bc769e87e9db96c8a5e4a [INFO] running `Command { std: "docker" "start" "-a" "228cf03d8da38fa41756cb9a284b4e3d61558098620bc769e87e9db96c8a5e4a", kill_on_drop: false }` [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling axum-core v0.5.5 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.49s [INFO] running `Command { std: "docker" "inspect" "228cf03d8da38fa41756cb9a284b4e3d61558098620bc769e87e9db96c8a5e4a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "228cf03d8da38fa41756cb9a284b4e3d61558098620bc769e87e9db96c8a5e4a", kill_on_drop: false }` [INFO] [stdout] 228cf03d8da38fa41756cb9a284b4e3d61558098620bc769e87e9db96c8a5e4a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d06712cf370aad22dd6b7baffc0dc63bd19f23221f59e4f228eeeac3c5c9ab66 [INFO] running `Command { std: "docker" "start" "-a" "d06712cf370aad22dd6b7baffc0dc63bd19f23221f59e4f228eeeac3c5c9ab66", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling axum-core v0.5.5 (/opt/rustwide/workdir) [INFO] [stdout] error: The #[tokio::test] macro requires rt or rt-multi-thread. [INFO] [stdout] --> src/ext_traits/request.rs:344:5 [INFO] [stdout] | [INFO] [stdout] 344 | #[tokio::test] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `tokio::test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: The #[tokio::test] macro requires rt or rt-multi-thread. [INFO] [stdout] --> src/ext_traits/request.rs:353:5 [INFO] [stdout] | [INFO] [stdout] 353 | #[tokio::test] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `tokio::test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: The #[tokio::test] macro requires rt or rt-multi-thread. [INFO] [stdout] --> src/ext_traits/request.rs:362:5 [INFO] [stdout] | [INFO] [stdout] 362 | #[tokio::test] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `tokio::test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: The #[tokio::test] macro requires rt or rt-multi-thread. [INFO] [stdout] --> src/ext_traits/request.rs:373:5 [INFO] [stdout] | [INFO] [stdout] 373 | #[tokio::test] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `tokio::test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: The #[tokio::test] macro requires rt or rt-multi-thread. [INFO] [stdout] --> src/ext_traits/request.rs:386:5 [INFO] [stdout] | [INFO] [stdout] 386 | #[tokio::test] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `tokio::test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: The #[tokio::test] macro requires rt or rt-multi-thread. [INFO] [stdout] --> src/ext_traits/request_parts.rs:148:5 [INFO] [stdout] | [INFO] [stdout] 148 | #[tokio::test] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `tokio::test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: The #[tokio::test] macro requires rt or rt-multi-thread. [INFO] [stdout] --> src/ext_traits/request_parts.rs:157:5 [INFO] [stdout] | [INFO] [stdout] 157 | #[tokio::test] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `tokio::test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `axum` [INFO] [stdout] --> src/extract/request_parts.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | use axum::{extract::Extension, routing::get, test_helpers::*, Router}; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `axum` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `axum`, use `cargo add axum` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `axum_macros` [INFO] [stdout] --> src/lib.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | use axum_macros::__private_axum_test as test; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `axum_macros` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `axum_macros`, use `cargo add axum_macros` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `axum` [INFO] [stdout] --> src/extract/request_parts.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | use axum::{extract::Extension, routing::get, test_helpers::*, Router}; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `axum` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `axum`, use `cargo add axum` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `State` [INFO] [stdout] --> src/ext_traits/request.rs:339:44 [INFO] [stdout] | [INFO] [stdout] 339 | ext_traits::tests::{RequiresState, State}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `State` [INFO] [stdout] --> src/ext_traits/request_parts.rs:143:44 [INFO] [stdout] | [INFO] [stdout] 143 | ext_traits::tests::{RequiresState, State}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Request` [INFO] [stdout] --> src/ext_traits/request_parts.rs:146:24 [INFO] [stdout] | [INFO] [stdout] 146 | use http::{Method, Request}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TestClient` [INFO] [stdout] --> src/extract/request_parts.rs:188:22 [INFO] [stdout] | [INFO] [stdout] 188 | let client = TestClient::new(Router::new().route("/", get(handler)).layer(Extension(Ext))); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `TestClient` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/extract/request_parts.rs:190:13 [INFO] [stdout] | [INFO] [stdout] 190 | let res = client.get("/").header("x-foo", "123").await; [INFO] [stdout] | ^^^ [INFO] [stdout] 191 | assert_eq!(res.status(), StatusCode::OK); [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `res` an explicit type [INFO] [stdout] | [INFO] [stdout] 190 | let res: /* Type */ = client.get("/").header("x-foo", "123").await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `axum-core` (lib test) due to 12 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "d06712cf370aad22dd6b7baffc0dc63bd19f23221f59e4f228eeeac3c5c9ab66", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d06712cf370aad22dd6b7baffc0dc63bd19f23221f59e4f228eeeac3c5c9ab66", kill_on_drop: false }` [INFO] [stdout] d06712cf370aad22dd6b7baffc0dc63bd19f23221f59e4f228eeeac3c5c9ab66