[INFO] fetching crate swaggapi 0.2.2... [INFO] testing swaggapi-0.2.2 against try#b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b for pr-145330-1 [INFO] extracting crate swaggapi 0.2.2 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate swaggapi 0.2.2 [INFO] finished tweaking crates.io crate swaggapi 0.2.2 [INFO] tweaked toml for crates.io crate swaggapi 0.2.2 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate swaggapi 0.2.2 on toolchain b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 214 packages to latest compatible versions [INFO] [stderr] Adding axum v0.7.9 (available: v0.8.6) [INFO] [stderr] Adding schemars v0.8.22 (available: v1.0.4) [INFO] [stderr] Adding tower v0.4.13 (available: v0.5.2) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1932c1904dca74506d3f842d8397b3bbe9226164773d48eb2453a0a9a3be3977 [INFO] running `Command { std: "docker" "start" "-a" "1932c1904dca74506d3f842d8397b3bbe9226164773d48eb2453a0a9a3be3977", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1932c1904dca74506d3f842d8397b3bbe9226164773d48eb2453a0a9a3be3977", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1932c1904dca74506d3f842d8397b3bbe9226164773d48eb2453a0a9a3be3977", kill_on_drop: false }` [INFO] [stdout] 1932c1904dca74506d3f842d8397b3bbe9226164773d48eb2453a0a9a3be3977 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 18d9f44a7912fdff8a03826ec7f8f0af0d08973a1ca495e99c8c0a16cdcd0327 [INFO] running `Command { std: "docker" "start" "-a" "18d9f44a7912fdff8a03826ec7f8f0af0d08973a1ca495e99c8c0a16cdcd0327", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling hashbrown v0.16.0 [INFO] [stderr] Compiling libc v0.2.176 [INFO] [stderr] Compiling rust-embed-utils v5.1.0 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling indexmap v2.11.4 [INFO] [stderr] Compiling dirs-sys v0.3.7 [INFO] [stderr] Compiling dirs v4.0.0 [INFO] [stderr] Compiling shellexpand v2.1.2 [INFO] [stderr] Compiling rust-embed-impl v5.9.0 [INFO] [stderr] Compiling rust-embed v5.9.0 [INFO] [stderr] Compiling serde_derive_internals v0.29.1 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling schemars_derive v0.8.22 [INFO] [stderr] Compiling swaggapi-macro v0.2.0 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling swagger-ui v0.1.5 [INFO] [stderr] Compiling openapiv3 v2.2.0 [INFO] [stderr] Compiling schemars v0.8.22 [INFO] [stderr] Compiling swaggapi v0.2.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/swagger.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `swagger_ui::UrlObject` [INFO] [stdout] --> src/swagger.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use swagger_ui::UrlObject; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::internals::SwaggapiPageBuilderImpl` [INFO] [stdout] --> src/swagger.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::internals::SwaggapiPageBuilderImpl; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `path` and `framework_impl` are never read [INFO] [stdout] --> src/context.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct ApiContext { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 12 | path: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | framework_impl: Impl, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `with_framework_impl`, `add_to_pages`, and `map_framework_impl` are never used [INFO] [stdout] --> src/context.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 19 | impl ApiContext { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 20 | fn with_framework_impl(path: String, framework_impl: T) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn add_to_pages(&self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | fn map_framework_impl(self, func: impl FnOnce(T) -> U) -> ApiContext { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for the crate [INFO] [stdout] --> src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / #![warn(missing_docs)] [INFO] [stdout] 2 | | #![warn(clippy::todo)] [INFO] [stdout] 3 | | [INFO] [stdout] 4 | | pub mod as_responses; [INFO] [stdout] ... | [INFO] [stdout] 34 | | pub use swagger_ui; [INFO] [stdout] 35 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | #![warn(missing_docs)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/handler_argument/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Eq, PartialEq, Copy, Clone, Debug)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] 47 | pub struct HandlerArgumentFns { [INFO] [stdout] 48 | pub(crate) request_body: fn(&mut SchemaGenerator) -> Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] = note: `#[warn(unpredictable_function_pointer_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/handler_argument/mod.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Eq, PartialEq, Copy, Clone, Debug)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 49 | pub(crate) parameters: fn(&mut SchemaGenerator) -> Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct [INFO] [stdout] --> src/internals/page_builder.rs:50:1 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct SwaggapiPageBuilderImpl { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 15.88s [INFO] running `Command { std: "docker" "inspect" "18d9f44a7912fdff8a03826ec7f8f0af0d08973a1ca495e99c8c0a16cdcd0327", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "18d9f44a7912fdff8a03826ec7f8f0af0d08973a1ca495e99c8c0a16cdcd0327", kill_on_drop: false }` [INFO] [stdout] 18d9f44a7912fdff8a03826ec7f8f0af0d08973a1ca495e99c8c0a16cdcd0327 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ac764e8b597314619dcc177d48c640d1a7ef73c3974752dac85cc6c9972cd645 [INFO] running `Command { std: "docker" "start" "-a" "ac764e8b597314619dcc177d48c640d1a7ef73c3974752dac85cc6c9972cd645", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/swagger.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `swagger_ui::UrlObject` [INFO] [stdout] --> src/swagger.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use swagger_ui::UrlObject; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::internals::SwaggapiPageBuilderImpl` [INFO] [stdout] --> src/swagger.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::internals::SwaggapiPageBuilderImpl; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `path` and `framework_impl` are never read [INFO] [stdout] --> src/context.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct ApiContext { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 12 | path: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | framework_impl: Impl, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `with_framework_impl`, `add_to_pages`, and `map_framework_impl` are never used [INFO] [stdout] --> src/context.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 19 | impl ApiContext { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 20 | fn with_framework_impl(path: String, framework_impl: T) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn add_to_pages(&self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | fn map_framework_impl(self, func: impl FnOnce(T) -> U) -> ApiContext { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for the crate [INFO] [stdout] --> src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / #![warn(missing_docs)] [INFO] [stdout] 2 | | #![warn(clippy::todo)] [INFO] [stdout] 3 | | [INFO] [stdout] 4 | | pub mod as_responses; [INFO] [stdout] ... | [INFO] [stdout] 34 | | pub use swagger_ui; [INFO] [stdout] 35 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | #![warn(missing_docs)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/handler_argument/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Eq, PartialEq, Copy, Clone, Debug)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] 47 | pub struct HandlerArgumentFns { [INFO] [stdout] 48 | pub(crate) request_body: fn(&mut SchemaGenerator) -> Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] = note: `#[warn(unpredictable_function_pointer_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling swaggapi v0.2.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/handler_argument/mod.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Eq, PartialEq, Copy, Clone, Debug)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 49 | pub(crate) parameters: fn(&mut SchemaGenerator) -> Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct [INFO] [stdout] --> src/internals/page_builder.rs:50:1 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct SwaggapiPageBuilderImpl { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/swagger.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `swagger_ui::UrlObject` [INFO] [stdout] --> src/swagger.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use swagger_ui::UrlObject; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::internals::SwaggapiPageBuilderImpl` [INFO] [stdout] --> src/swagger.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::internals::SwaggapiPageBuilderImpl; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `path` and `framework_impl` are never read [INFO] [stdout] --> src/context.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct ApiContext { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 12 | path: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | framework_impl: Impl, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `with_framework_impl`, `add_to_pages`, and `map_framework_impl` are never used [INFO] [stdout] --> src/context.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 19 | impl ApiContext { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 20 | fn with_framework_impl(path: String, framework_impl: T) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn add_to_pages(&self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | fn map_framework_impl(self, func: impl FnOnce(T) -> U) -> ApiContext { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for the crate [INFO] [stdout] --> src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / #![warn(missing_docs)] [INFO] [stdout] 2 | | #![warn(clippy::todo)] [INFO] [stdout] 3 | | [INFO] [stdout] 4 | | pub mod as_responses; [INFO] [stdout] ... | [INFO] [stdout] 34 | | pub use swagger_ui; [INFO] [stdout] 35 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | #![warn(missing_docs)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/handler_argument/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Eq, PartialEq, Copy, Clone, Debug)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] 47 | pub struct HandlerArgumentFns { [INFO] [stdout] 48 | pub(crate) request_body: fn(&mut SchemaGenerator) -> Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] = note: `#[warn(unpredictable_function_pointer_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/handler_argument/mod.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Eq, PartialEq, Copy, Clone, Debug)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 49 | pub(crate) parameters: fn(&mut SchemaGenerator) -> Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct [INFO] [stdout] --> src/internals/page_builder.rs:50:1 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct SwaggapiPageBuilderImpl { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.70s [INFO] running `Command { std: "docker" "inspect" "ac764e8b597314619dcc177d48c640d1a7ef73c3974752dac85cc6c9972cd645", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac764e8b597314619dcc177d48c640d1a7ef73c3974752dac85cc6c9972cd645", kill_on_drop: false }` [INFO] [stdout] ac764e8b597314619dcc177d48c640d1a7ef73c3974752dac85cc6c9972cd645 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 24e9d89607c30373ad3a6805267e0eaf8675cbe6370f8b71ae6cbb81c2edd110 [INFO] running `Command { std: "docker" "start" "-a" "24e9d89607c30373ad3a6805267e0eaf8675cbe6370f8b71ae6cbb81c2edd110", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `std::sync::Arc` [INFO] [stderr] --> src/swagger.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::sync::Arc; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `swagger_ui::UrlObject` [INFO] [stderr] --> src/swagger.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use swagger_ui::UrlObject; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::internals::SwaggapiPageBuilderImpl` [INFO] [stderr] --> src/swagger.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use crate::internals::SwaggapiPageBuilderImpl; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `path` and `framework_impl` are never read [INFO] [stderr] --> src/context.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 11 | pub struct ApiContext { [INFO] [stderr] | ---------- fields in this struct [INFO] [stderr] 12 | path: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 16 | framework_impl: Impl, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated items `with_framework_impl`, `add_to_pages`, and `map_framework_impl` are never used [INFO] [stderr] --> src/context.rs:20:8 [INFO] [stderr] | [INFO] [stderr] 19 | impl ApiContext { [INFO] [stderr] | --------------------- associated items in this implementation [INFO] [stderr] 20 | fn with_framework_impl(path: String, framework_impl: T) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 54 | fn add_to_pages(&self) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 70 | fn map_framework_impl(self, func: impl FnOnce(T) -> U) -> ApiContext { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: missing documentation for the crate [INFO] [stderr] --> src/lib.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | / #![warn(missing_docs)] [INFO] [stderr] 2 | | #![warn(clippy::todo)] [INFO] [stderr] 3 | | [INFO] [stderr] 4 | | pub mod as_responses; [INFO] [stderr] ... | [INFO] [stderr] 34 | | pub use swagger_ui; [INFO] [stderr] 35 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] note: the lint level is defined here [INFO] [stderr] --> src/lib.rs:1:9 [INFO] [stderr] | [INFO] [stderr] 1 | #![warn(missing_docs)] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stderr] --> src/handler_argument/mod.rs:48:5 [INFO] [stderr] | [INFO] [stderr] 46 | #[derive(Eq, PartialEq, Copy, Clone, Debug)] [INFO] [stderr] | --------- in this derive macro expansion [INFO] [stderr] 47 | pub struct HandlerArgumentFns { [INFO] [stderr] 48 | pub(crate) request_body: fn(&mut SchemaGenerator) -> Option, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the address of the same function can vary between different codegen units [INFO] [stderr] = note: furthermore, different functions could have the same address after being merged together [INFO] [stderr] = note: for more information visit [INFO] [stderr] = note: `#[warn(unpredictable_function_pointer_comparisons)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stderr] --> src/handler_argument/mod.rs:49:5 [INFO] [stderr] | [INFO] [stderr] 46 | #[derive(Eq, PartialEq, Copy, Clone, Debug)] [INFO] [stderr] | --------- in this derive macro expansion [INFO] [stderr] ... [INFO] [stderr] 49 | pub(crate) parameters: fn(&mut SchemaGenerator) -> Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the address of the same function can vary between different codegen units [INFO] [stderr] = note: furthermore, different functions could have the same address after being merged together [INFO] [stderr] = note: for more information visit [INFO] [stderr] [INFO] [stderr] warning: missing documentation for a struct [INFO] [stderr] --> src/internals/page_builder.rs:50:1 [INFO] [stderr] | [INFO] [stderr] 50 | pub struct SwaggapiPageBuilderImpl { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `swaggapi` (lib) generated 9 warnings (run `cargo fix --lib -p swaggapi` to apply 3 suggestions) [INFO] [stderr] warning: `swaggapi` (lib test) generated 9 warnings (9 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.11s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/swaggapi-0662885c98681d1c) [INFO] [stdout] [INFO] [stderr] Doc-tests swaggapi [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] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test src/internals/page_builder.rs - internals::page_builder::AccessSwaggapiPageBuilder::get_builder (line 30) ... ok [INFO] [stdout] test src/macro_docs.rs - macro_docs::SwaggapiPage (line 99) ... ok [INFO] [stdout] test src/macro_docs.rs - macro_docs::handler (line 15) ... FAILED [INFO] [stdout] test src/page.rs - page::SwaggapiPageBuilder (line 52) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/macro_docs.rs - macro_docs::handler (line 15) stdout ---- [INFO] [stdout] error[E0277]: the trait bound `&'static str: AsResponses` is not satisfied [INFO] [stdout] --> src/macro_docs.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 9 | async fn index() -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^ the trait `AsResponses` is not implemented for `&'static str` [INFO] [stdout] | [INFO] [stdout] = help: the trait `AsResponses` is implemented for `SchemalessJson` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(): AsResponses` is not satisfied [INFO] [stdout] --> src/macro_docs.rs:29:26 [INFO] [stdout] | [INFO] [stdout] 17 | async fn delete_all() -> () { [INFO] [stdout] | ^^ the trait `AsResponses` is not implemented for `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `AsResponses` is implemented for `SchemalessJson` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/macro_docs.rs - macro_docs::handler (line 15) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 3 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.53s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "24e9d89607c30373ad3a6805267e0eaf8675cbe6370f8b71ae6cbb81c2edd110", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "24e9d89607c30373ad3a6805267e0eaf8675cbe6370f8b71ae6cbb81c2edd110", kill_on_drop: false }` [INFO] [stdout] 24e9d89607c30373ad3a6805267e0eaf8675cbe6370f8b71ae6cbb81c2edd110