[INFO] cloning repository https://github.com/ismaobb/axum-template [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ismaobb/axum-template" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fismaobb%2Faxum-template", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fismaobb%2Faxum-template'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2cc9b203dcd41241a97026efd6c36749b26697b9 [INFO] testing ismaobb/axum-template against try#a7ce54db9b096bd1098d07c645b489195a667c9f for pr-137940 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fismaobb%2Faxum-template" "/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/ismaobb/axum-template on toolchain a7ce54db9b096bd1098d07c645b489195a667c9f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ismaobb/axum-template [INFO] finished tweaking git repo https://github.com/ismaobb/axum-template [INFO] tweaked toml for git repo https://github.com/ismaobb/axum-template written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ismaobb/axum-template 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" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c85c3dcdc128ea65564cfa196186dc0122a98ef3165892302f517af146e31e4d [INFO] running `Command { std: "docker" "start" "-a" "c85c3dcdc128ea65564cfa196186dc0122a98ef3165892302f517af146e31e4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c85c3dcdc128ea65564cfa196186dc0122a98ef3165892302f517af146e31e4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c85c3dcdc128ea65564cfa196186dc0122a98ef3165892302f517af146e31e4d", kill_on_drop: false }` [INFO] [stdout] c85c3dcdc128ea65564cfa196186dc0122a98ef3165892302f517af146e31e4d [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" "-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b563cac73857755dd2e942ec789b9d661223423c8ee6be6e80e8e152295da4c8 [INFO] running `Command { std: "docker" "start" "-a" "b563cac73857755dd2e942ec789b9d661223423c8ee6be6e80e8e152295da4c8", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.89 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling libc v0.2.161 [INFO] [stderr] Compiling serde v1.0.213 [INFO] [stderr] Compiling bytes v1.8.0 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling litemap v0.7.3 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling serde_json v1.0.132 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling rustls-pki-types v1.10.0 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling cpufeatures v0.2.14 [INFO] [stderr] Compiling libm v0.2.11 [INFO] [stderr] Compiling thiserror v1.0.67 [INFO] [stderr] Compiling bigdecimal v0.4.6 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling rust_decimal v1.36.0 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling rustls v0.23.16 [INFO] [stderr] Compiling allocator-api2 v0.2.19 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling crc v3.2.1 [INFO] [stderr] Compiling webpki-roots v0.26.6 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling rustversion v1.0.18 [INFO] [stderr] Compiling zstd-safe v7.2.1 [INFO] [stderr] Compiling alloc-no-stdlib v2.0.4 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling alloc-stdlib v0.2.2 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling sync_wrapper v1.0.1 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling unicase v2.8.0 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Compiling whoami v1.5.2 [INFO] [stderr] Compiling syn v2.0.87 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling ordered-float v3.9.2 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling miniz_oxide v0.8.0 [INFO] [stderr] Compiling cc v1.1.31 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling brotli-decompressor v4.0.1 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling headers-core v0.3.0 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling aliasable v0.1.3 [INFO] [stderr] Compiling matchit v0.7.3 [INFO] [stderr] Compiling overload v0.1.1 [INFO] [stderr] Compiling headers v0.4.0 [INFO] [stderr] Compiling nu-ansi-term v0.46.0 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling pem v3.0.4 [INFO] [stderr] Compiling flate2 v1.0.34 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling http-range-header v0.4.1 [INFO] [stderr] Compiling strum v0.26.3 [INFO] [stderr] Compiling iri-string v0.7.6 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling brotli v7.0.0 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Compiling openssl v0.10.68 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling regex-automata v0.4.8 [INFO] [stderr] Compiling regex-automata v0.1.10 [INFO] [stderr] Compiling matchers v0.1.0 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling serde_derive v1.0.213 [INFO] [stderr] Compiling zerofrom-derive v0.1.4 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling yoke-derive v0.7.4 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling thiserror-impl v1.0.67 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling rustls-webpki v0.102.8 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling inherent v1.0.11 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling sea-bae v0.2.1 [INFO] [stderr] Compiling ouroboros_macro v0.18.4 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling zstd v0.13.2 [INFO] [stderr] Compiling sea-orm-macros v1.1.1 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling zerofrom v0.1.4 [INFO] [stderr] Compiling yoke v0.7.4 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling hashlink v0.9.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling ouroboros v0.18.4 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling axum-core v0.4.5 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling uuid v1.11.0 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_path_to_error v0.1.16 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling tracing-subscriber v0.3.18 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling tokio v1.41.0 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.3 [INFO] [stderr] Compiling sea-query v0.32.0 [INFO] [stderr] Compiling simple_asn1 v0.6.2 [INFO] [stderr] Compiling jsonwebtoken v9.3.0 [INFO] [stderr] Compiling tokio-util v0.7.12 [INFO] [stderr] Compiling tokio-stream v0.1.16 [INFO] [stderr] Compiling tower v0.5.1 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling async-compression v0.4.17 [INFO] [stderr] Compiling h2 v0.4.6 [INFO] [stderr] Compiling sqlx-core v0.8.2 [INFO] [stderr] Compiling tower-http v0.6.1 [INFO] [stderr] Compiling sqlx-postgres v0.8.2 [INFO] [stderr] Compiling hyper v1.5.0 [INFO] [stderr] Compiling hyper-util v0.1.10 [INFO] [stderr] Compiling sqlx v0.8.2 [INFO] [stderr] Compiling sea-query-binder v0.7.0 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling axum v0.7.7 [INFO] [stderr] Compiling sea-orm v1.1.1 [INFO] [stderr] Compiling reqwest v0.12.9 [INFO] [stderr] Compiling axum-extra v0.9.4 [INFO] [stderr] Compiling axum-template v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `secret_key` [INFO] [stdout] --> src/crawler/qichacha.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 17 | let secret_key = env::var("QICHACHA_SECRET_KEY").expect("QICHACHA_SECRET_KEY must be set"); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_secret_key` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `role_state` [INFO] [stdout] --> src/user/mod.rs:13:6 [INFO] [stdout] | [INFO] [stdout] 13 | let role_state = Arc::new(RoleState(Role(1))); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_role_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `decode` is never used [INFO] [stdout] --> src/extract/claims.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 28 | impl Claims { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn decode(token: &str, secret: &str) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/extract/passthrough.rs:15:24 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Passthrough(pub bool); [INFO] [stdout] | ----------- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `auth_role` is never used [INFO] [stdout] --> src/middleware/role.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | pub async fn auth_role( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `auth_token` is never used [INFO] [stdout] --> src/middleware/token.rs:18:14 [INFO] [stdout] | [INFO] [stdout] 18 | pub async fn auth_token( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `credit_code`, and `status` are never read [INFO] [stdout] --> src/crawler/qichacha.rs:9:2 [INFO] [stdout] | [INFO] [stdout] 8 | struct QichachaResult { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 9 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | credit_code: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 11 | status: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `QichachaResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `reg_capital` are never read [INFO] [stdout] --> src/crawler/tianyancha.rs:9:2 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct TianyanchaResult { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 9 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | reg_capital: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TianyanchaResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 37s [INFO] running `Command { std: "docker" "inspect" "b563cac73857755dd2e942ec789b9d661223423c8ee6be6e80e8e152295da4c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b563cac73857755dd2e942ec789b9d661223423c8ee6be6e80e8e152295da4c8", kill_on_drop: false }` [INFO] [stdout] b563cac73857755dd2e942ec789b9d661223423c8ee6be6e80e8e152295da4c8 [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" "-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4ceb7a142653694d8b7fa597b1b059899ce43447ae1a677aabfa0beeec3589fc [INFO] running `Command { std: "docker" "start" "-a" "4ceb7a142653694d8b7fa597b1b059899ce43447ae1a677aabfa0beeec3589fc", kill_on_drop: false }` [INFO] [stdout] warning: unused variable: `secret_key` [INFO] [stdout] --> src/crawler/qichacha.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 17 | let secret_key = env::var("QICHACHA_SECRET_KEY").expect("QICHACHA_SECRET_KEY must be set"); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_secret_key` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `role_state` [INFO] [stdout] --> src/user/mod.rs:13:6 [INFO] [stdout] | [INFO] [stdout] 13 | let role_state = Arc::new(RoleState(Role(1))); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_role_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `decode` is never used [INFO] [stdout] --> src/extract/claims.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 28 | impl Claims { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn decode(token: &str, secret: &str) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/extract/passthrough.rs:15:24 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Passthrough(pub bool); [INFO] [stdout] | ----------- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `auth_role` is never used [INFO] [stdout] --> src/middleware/role.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | pub async fn auth_role( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `auth_token` is never used [INFO] [stdout] --> src/middleware/token.rs:18:14 [INFO] [stdout] | [INFO] [stdout] 18 | pub async fn auth_token( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `credit_code`, and `status` are never read [INFO] [stdout] --> src/crawler/qichacha.rs:9:2 [INFO] [stdout] | [INFO] [stdout] 8 | struct QichachaResult { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 9 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | credit_code: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 11 | status: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `QichachaResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `reg_capital` are never read [INFO] [stdout] --> src/crawler/tianyancha.rs:9:2 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct TianyanchaResult { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 9 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | reg_capital: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TianyanchaResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling axum-template v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `secret_key` [INFO] [stdout] --> src/crawler/qichacha.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 17 | let secret_key = env::var("QICHACHA_SECRET_KEY").expect("QICHACHA_SECRET_KEY must be set"); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_secret_key` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `role_state` [INFO] [stdout] --> src/user/mod.rs:13:6 [INFO] [stdout] | [INFO] [stdout] 13 | let role_state = Arc::new(RoleState(Role(1))); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_role_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `decode` is never used [INFO] [stdout] --> src/extract/claims.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 28 | impl Claims { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn decode(token: &str, secret: &str) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/extract/passthrough.rs:15:24 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Passthrough(pub bool); [INFO] [stdout] | ----------- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `auth_role` is never used [INFO] [stdout] --> src/middleware/role.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | pub async fn auth_role( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `auth_token` is never used [INFO] [stdout] --> src/middleware/token.rs:18:14 [INFO] [stdout] | [INFO] [stdout] 18 | pub async fn auth_token( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `credit_code`, and `status` are never read [INFO] [stdout] --> src/crawler/qichacha.rs:9:2 [INFO] [stdout] | [INFO] [stdout] 8 | struct QichachaResult { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 9 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | credit_code: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 11 | status: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `QichachaResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `reg_capital` are never read [INFO] [stdout] --> src/crawler/tianyancha.rs:9:2 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct TianyanchaResult { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 9 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | reg_capital: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TianyanchaResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.10s [INFO] running `Command { std: "docker" "inspect" "4ceb7a142653694d8b7fa597b1b059899ce43447ae1a677aabfa0beeec3589fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4ceb7a142653694d8b7fa597b1b059899ce43447ae1a677aabfa0beeec3589fc", kill_on_drop: false }` [INFO] [stdout] 4ceb7a142653694d8b7fa597b1b059899ce43447ae1a677aabfa0beeec3589fc [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" "-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e23c5c7e98e053ca3ec5b6c3c46fe0056b7aad9023bb23e50edf01fee8c3d750 [INFO] running `Command { std: "docker" "start" "-a" "e23c5c7e98e053ca3ec5b6c3c46fe0056b7aad9023bb23e50edf01fee8c3d750", kill_on_drop: false }` [INFO] [stderr] warning: unused variable: `secret_key` [INFO] [stderr] --> src/crawler/qichacha.rs:17:6 [INFO] [stderr] | [INFO] [stderr] 17 | let secret_key = env::var("QICHACHA_SECRET_KEY").expect("QICHACHA_SECRET_KEY must be set"); [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_secret_key` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `role_state` [INFO] [stderr] --> src/user/mod.rs:13:6 [INFO] [stderr] | [INFO] [stderr] 13 | let role_state = Arc::new(RoleState(Role(1))); [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_role_state` [INFO] [stderr] [INFO] [stderr] warning: associated function `decode` is never used [INFO] [stderr] --> src/extract/claims.rs:51:9 [INFO] [stderr] | [INFO] [stderr] 28 | impl Claims { [INFO] [stderr] | ----------- associated function in this implementation [INFO] [stderr] ... [INFO] [stderr] 51 | pub fn decode(token: &str, secret: &str) -> Result { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/extract/passthrough.rs:15:24 [INFO] [stderr] | [INFO] [stderr] 15 | pub struct Passthrough(pub bool); [INFO] [stderr] | ----------- ^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this struct [INFO] [stderr] | [INFO] [stderr] = help: consider removing this field [INFO] [stderr] [INFO] [stderr] warning: function `auth_role` is never used [INFO] [stderr] --> src/middleware/role.rs:10:14 [INFO] [stderr] | [INFO] [stderr] 10 | pub async fn auth_role( [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `auth_token` is never used [INFO] [stderr] --> src/middleware/token.rs:18:14 [INFO] [stderr] | [INFO] [stderr] 18 | pub async fn auth_token( [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `name`, `credit_code`, and `status` are never read [INFO] [stderr] --> src/crawler/qichacha.rs:9:2 [INFO] [stderr] | [INFO] [stderr] 8 | struct QichachaResult { [INFO] [stderr] | -------------- fields in this struct [INFO] [stderr] 9 | name: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] 10 | credit_code: String, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 11 | status: String, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `QichachaResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `name` and `reg_capital` are never read [INFO] [stderr] --> src/crawler/tianyancha.rs:9:2 [INFO] [stderr] | [INFO] [stderr] 8 | pub struct TianyanchaResult { [INFO] [stderr] | ---------------- fields in this struct [INFO] [stderr] 9 | name: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] 10 | reg_capital: String, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `TianyanchaResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: `axum-template` (lib) generated 8 warnings [INFO] [stderr] warning: `axum-template` (lib test) generated 8 warnings (8 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.64s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/axum_template-3cf7f6568c5a758f) [INFO] [stderr] Running unittests src/bin/main.rs (/opt/rustwide/target/debug/deps/axum_template-6a65bf2835b44ce9) [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] [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 axum_template [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/middleware/token.rs - middleware::token::auth_token (line 15) ... FAILED [INFO] [stdout] test src/core/controller.rs - core::controller::init (line 21) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/middleware/token.rs - middleware::token::auth_token (line 15) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `user` in the crate root [INFO] [stdout] --> src/middleware/token.rs:16:36 [INFO] [stdout] | [INFO] [stdout] 3 | req.extensions_mut().insert(crate::user::User) [INFO] [stdout] | ^^^^ could not find `user` in the crate root [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `req` in this scope [INFO] [stdout] --> src/middleware/token.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 3 | req.extensions_mut().insert(crate::user::User) [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/core/controller.rs - core::controller::init (line 21) stdout ---- [INFO] [stdout] error: expected `;`, found `}` [INFO] [stdout] --> src/core/controller.rs:29:24 [INFO] [stdout] | [INFO] [stdout] 10 | .layer(public_layer) [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 11 | } _doctest_main_src_core_controller_rs_21_0() } [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `role_auth` in this scope [INFO] [stdout] --> src/core/controller.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 7 | .layer(role_auth) [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `bearer_auth` in this scope [INFO] [stdout] --> src/core/controller.rs:27:11 [INFO] [stdout] | [INFO] [stdout] 8 | .layer(bearer_auth) [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `public_layer` in this scope [INFO] [stdout] --> src/core/controller.rs:29:11 [INFO] [stdout] | [INFO] [stdout] 10 | .layer(public_layer) [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/core/controller.rs - core::controller::init (line 21) [INFO] [stdout] src/middleware/token.rs - middleware::token::auth_token (line 15) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.27s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "e23c5c7e98e053ca3ec5b6c3c46fe0056b7aad9023bb23e50edf01fee8c3d750", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e23c5c7e98e053ca3ec5b6c3c46fe0056b7aad9023bb23e50edf01fee8c3d750", kill_on_drop: false }` [INFO] [stdout] e23c5c7e98e053ca3ec5b6c3c46fe0056b7aad9023bb23e50edf01fee8c3d750