[INFO] fetching crate axum-core 0.5.5... [INFO] checking axum-core-0.5.5 against try#943e2200e35c3825486c4671b6cab0107a07f8c1 for pr-148952 [INFO] extracting crate axum-core 0.5.5 into /workspace/builds/worker-2-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-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate axum-core 0.5.5 on toolchain 943e2200e35c3825486c4671b6cab0107a07f8c1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+943e2200e35c3825486c4671b6cab0107a07f8c1" "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" "+943e2200e35c3825486c4671b6cab0107a07f8c1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libc v0.2.176 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+943e2200e35c3825486c4671b6cab0107a07f8c1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4995fe19f86e5467d50728ae00896113b5ccc03f3121032f873171c44c3c0448 [INFO] running `Command { std: "docker" "start" "-a" "4995fe19f86e5467d50728ae00896113b5ccc03f3121032f873171c44c3c0448", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4995fe19f86e5467d50728ae00896113b5ccc03f3121032f873171c44c3c0448", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4995fe19f86e5467d50728ae00896113b5ccc03f3121032f873171c44c3c0448", kill_on_drop: false }` [INFO] [stdout] 4995fe19f86e5467d50728ae00896113b5ccc03f3121032f873171c44c3c0448 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+943e2200e35c3825486c4671b6cab0107a07f8c1" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 85986bc11ce8966ed4c9d79e3bac648910d74bf160f31c3d6fea3483c72caf80 [INFO] running `Command { std: "docker" "start" "-a" "85986bc11ce8966ed4c9d79e3bac648910d74bf160f31c3d6fea3483c72caf80", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Checking tower-layer v0.3.3 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Checking bitflags v2.9.4 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Checking http v1.3.1 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking tower-http v0.6.6 [INFO] [stderr] Checking axum-core v0.5.5 (/opt/rustwide/workdir) [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Checking tokio v1.47.1 [INFO] [stderr] Checking hyper v1.7.0 [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" "85986bc11ce8966ed4c9d79e3bac648910d74bf160f31c3d6fea3483c72caf80", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "85986bc11ce8966ed4c9d79e3bac648910d74bf160f31c3d6fea3483c72caf80", kill_on_drop: false }` [INFO] [stdout] 85986bc11ce8966ed4c9d79e3bac648910d74bf160f31c3d6fea3483c72caf80