[INFO] fetching crate swagger-ui-dist 5.29.0... [INFO] testing swagger-ui-dist-5.29.0 against try#2440211fe03bc45c89b6dc1a3df18382ce91e32b for pr-146098-1 [INFO] extracting crate swagger-ui-dist 5.29.0 into /workspace/builds/worker-0-tc2/source [INFO] started tweaking crates.io crate swagger-ui-dist 5.29.0 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate swagger-ui-dist 5.29.0 [INFO] tweaked toml for crates.io crate swagger-ui-dist 5.29.0 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate swagger-ui-dist 5.29.0 on toolchain 2440211fe03bc45c89b6dc1a3df18382ce91e32b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate swagger-ui-dist 5.29.0 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" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 925150cd96c82a129a99975681eb50d9263bfedf65a453bc184ea966cf32d1f6 [INFO] running `Command { std: "docker" "start" "-a" "925150cd96c82a129a99975681eb50d9263bfedf65a453bc184ea966cf32d1f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "925150cd96c82a129a99975681eb50d9263bfedf65a453bc184ea966cf32d1f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "925150cd96c82a129a99975681eb50d9263bfedf65a453bc184ea966cf32d1f6", kill_on_drop: false }` [INFO] [stdout] 925150cd96c82a129a99975681eb50d9263bfedf65a453bc184ea966cf32d1f6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f1ac798ee8ddb93afab0a0359aca89668ab04564f25e984e2e844d5d05fa2340 [INFO] running `Command { std: "docker" "start" "-a" "f1ac798ee8ddb93afab0a0359aca89668ab04564f25e984e2e844d5d05fa2340", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling matchit v0.8.4 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling axum-core v0.5.2 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling serde_path_to_error v0.1.17 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling axum-macros v0.5.0 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling hyper-util v0.1.16 [INFO] [stderr] Compiling axum v0.8.4 [INFO] [stderr] Compiling swagger-ui-dist v5.29.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 21.71s [INFO] running `Command { std: "docker" "inspect" "f1ac798ee8ddb93afab0a0359aca89668ab04564f25e984e2e844d5d05fa2340", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f1ac798ee8ddb93afab0a0359aca89668ab04564f25e984e2e844d5d05fa2340", kill_on_drop: false }` [INFO] [stdout] f1ac798ee8ddb93afab0a0359aca89668ab04564f25e984e2e844d5d05fa2340 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8fd4aa9969b61d7f38461bd3a2472ad60695ee8c51808e497432ef7bc7aba987 [INFO] running `Command { std: "docker" "start" "-a" "8fd4aa9969b61d7f38461bd3a2472ad60695ee8c51808e497432ef7bc7aba987", kill_on_drop: false }` [INFO] [stderr] Compiling find-msvc-tools v0.1.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling iri-string v0.7.8 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling axum-core v0.5.2 [INFO] [stderr] Compiling cc v1.2.36 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling indexmap v2.11.1 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling axum-macros v0.5.0 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_path_to_error v0.1.17 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling h2 v0.4.12 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling hyper-util v0.1.16 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling axum v0.8.4 [INFO] [stderr] Compiling reqwest v0.12.23 [INFO] [stderr] Compiling swagger-ui-dist v5.29.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 48.89s [INFO] running `Command { std: "docker" "inspect" "8fd4aa9969b61d7f38461bd3a2472ad60695ee8c51808e497432ef7bc7aba987", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8fd4aa9969b61d7f38461bd3a2472ad60695ee8c51808e497432ef7bc7aba987", kill_on_drop: false }` [INFO] [stdout] 8fd4aa9969b61d7f38461bd3a2472ad60695ee8c51808e497432ef7bc7aba987 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 6baecf639978047aee8642202fa2b8395212872322275d8c1f1aad25ae06fc0e [INFO] running `Command { std: "docker" "start" "-a" "6baecf639978047aee8642202fa2b8395212872322275d8c1f1aad25ae06fc0e", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.22s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/swagger_ui_dist-2d4d6db255df2818) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests swagger_ui_dist [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test src/lib.rs - (line 7) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 7) stdout ---- [INFO] [stdout] error: couldn't read `src/petstore.yaml`: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:11:41 [INFO] [stdout] | [INFO] [stdout] 7 | api_definition: OpenApiSource::Inline(include_str!("petstore.yaml")), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ApiDefinition` in this scope [INFO] [stdout] --> src/lib.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 5 | let api_def = ApiDefinition { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use swagger_ui_dist::ApiDefinition; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OpenApiSource` [INFO] [stdout] --> src/lib.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 7 | api_definition: OpenApiSource::Inline(include_str!("petstore.yaml")), [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `OpenApiSource` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use swagger_ui_dist::OpenApiSource; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Router` [INFO] [stdout] --> src/lib.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 10 | let app = Router::new().merge(swagger_ui_dist::generate_routes(api_def)); [INFO] [stdout] | ^^^^^^ use of undeclared type `Router` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use axum_08::Router; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:15:62 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_7_0() { [INFO] [stdout] | --------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 11 | let listener = tokio::net::TcpListener::bind("0.0.0.0:3000").await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:17:28 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_7_0() { [INFO] [stdout] | --------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 13 | axum::serve(listener, app).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `axum` [INFO] [stdout] --> src/lib.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 13 | axum::serve(listener, app).await.unwrap(); [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] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 7) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.12s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "6baecf639978047aee8642202fa2b8395212872322275d8c1f1aad25ae06fc0e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6baecf639978047aee8642202fa2b8395212872322275d8c1f1aad25ae06fc0e", kill_on_drop: false }` [INFO] [stdout] 6baecf639978047aee8642202fa2b8395212872322275d8c1f1aad25ae06fc0e