[INFO] cloning repository https://github.com/qiaojinxia/rust_web [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/qiaojinxia/rust_web" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqiaojinxia%2Frust_web", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqiaojinxia%2Frust_web'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 88f5c5eb9329cae7168f8a83df23998bf2c38827 [INFO] testing qiaojinxia/rust_web against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqiaojinxia%2Frust_web" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/qiaojinxia/rust_web [INFO] finished tweaking git repo https://github.com/qiaojinxia/rust_web [INFO] tweaked toml for git repo https://github.com/qiaojinxia/rust_web written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/qiaojinxia/rust_web on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 426 packages to latest compatible versions [INFO] [stderr] Adding actix-session v0.9.0 (available: v0.11.0) [INFO] [stderr] Adding bcrypt v0.15.1 (available: v0.17.1) [INFO] [stderr] Adding mockall v0.12.1 (available: v0.13.1) [INFO] [stderr] Adding sea-orm v0.12.15 (available: v1.1.15) [INFO] [stderr] Adding thiserror v1.0.69 (available: v2.0.16) [INFO] [stderr] Adding toml v0.8.23 (available: v0.9.5) [INFO] [stderr] Adding validator v0.18.1 (available: v0.20.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded redis-async v0.17.2 [INFO] [stderr] Downloaded actix-redis v0.13.1+deprecated [INFO] [stderr] Downloaded redis-async v0.16.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] efb4fe85a964fa1b2bc6a59d67908356f2adadabe6aef3b6c87a07745fb2f0db [INFO] running `Command { std: "docker" "start" "-a" "efb4fe85a964fa1b2bc6a59d67908356f2adadabe6aef3b6c87a07745fb2f0db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "efb4fe85a964fa1b2bc6a59d67908356f2adadabe6aef3b6c87a07745fb2f0db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "efb4fe85a964fa1b2bc6a59d67908356f2adadabe6aef3b6c87a07745fb2f0db", kill_on_drop: false }` [INFO] [stdout] efb4fe85a964fa1b2bc6a59d67908356f2adadabe6aef3b6c87a07745fb2f0db [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 53d961858bbb5a12271ca9a1adf6cba3330ce43b10cb1ad87eb198a710952cf3 [INFO] running `Command { std: "docker" "start" "-a" "53d961858bbb5a12271ca9a1adf6cba3330ce43b10cb1ad87eb198a710952cf3", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling cfg-if v1.0.3 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling const-oid v0.9.6 [INFO] [stderr] Compiling libm v0.2.15 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling time-core v0.1.5 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling base64ct v1.8.0 [INFO] [stderr] Compiling time-macros v0.2.23 [INFO] [stderr] Compiling inout v0.1.4 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling pem-rfc7468 v0.7.0 [INFO] [stderr] Compiling local-waker v0.1.4 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling alloc-no-stdlib v2.0.4 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling der v0.7.10 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling rust_decimal v1.37.2 [INFO] [stderr] Compiling indexmap v2.11.0 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Compiling opaque-debug v0.3.1 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Compiling alloc-stdlib v0.2.2 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling actix-utils v3.0.1 [INFO] [stderr] Compiling actix-service v2.0.3 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling num-bigint-dig v0.8.4 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling regex-lite v0.1.7 [INFO] [stderr] Compiling cc v1.2.34 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling bytestring v1.4.0 [INFO] [stderr] Compiling pkcs8 v0.10.2 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling brotli-decompressor v5.0.0 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling pkcs1 v0.7.5 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling local-channel v0.1.5 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling zstd-sys v2.0.15+zstd.1.5.7 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Compiling universal-hash v0.5.1 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling polyval v0.6.2 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling ghash v0.5.1 [INFO] [stderr] Compiling ctr v0.9.2 [INFO] [stderr] Compiling aead v0.5.2 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling bigdecimal v0.3.1 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling brotli v8.0.2 [INFO] [stderr] Compiling impl-more v0.1.9 [INFO] [stderr] Compiling base64 v0.20.0 [INFO] [stderr] Compiling aes-gcm v0.10.3 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling unicode-properties v0.1.3 [INFO] [stderr] Compiling language-tags v0.3.2 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling thiserror v2.0.16 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling anstyle v1.0.11 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Compiling cfg_aliases v0.2.1 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling nix v0.30.1 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling ordered-float v3.9.2 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling predicates-core v1.0.9 [INFO] [stderr] Compiling rsa v0.9.8 [INFO] [stderr] Compiling anyhow v1.0.99 [INFO] [stderr] Compiling anstyle-parse v0.2.7 [INFO] [stderr] Compiling crossbeam-channel v0.5.15 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Compiling arc-swap v1.7.1 [INFO] [stderr] Compiling toml_write v0.1.2 [INFO] [stderr] Compiling signal-hook v0.3.18 [INFO] [stderr] Compiling regex v1.11.2 [INFO] [stderr] Compiling aliasable v0.1.3 [INFO] [stderr] Compiling winnow v0.7.13 [INFO] [stderr] Compiling termtree v0.5.1 [INFO] [stderr] Compiling anstyle-query v1.1.4 [INFO] [stderr] Compiling colorchoice v1.0.4 [INFO] [stderr] Compiling predicates-tree v1.0.12 [INFO] [stderr] Compiling env_filter v0.1.3 [INFO] [stderr] Compiling anstream v0.6.20 [INFO] [stderr] Compiling backoff v0.4.0 [INFO] [stderr] Compiling predicates v3.1.3 [INFO] [stderr] Compiling blowfish v0.9.1 [INFO] [stderr] Compiling blake2 v0.10.6 [INFO] [stderr] Compiling password-hash v0.5.0 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling pem v3.0.5 [INFO] [stderr] Compiling strum v0.25.0 [INFO] [stderr] Compiling jiff v0.2.15 [INFO] [stderr] Compiling downcast v0.11.0 [INFO] [stderr] Compiling fragile v2.0.1 [INFO] [stderr] Compiling argon2 v0.5.3 [INFO] [stderr] Compiling bcrypt v0.15.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling inherent v1.0.12 [INFO] [stderr] Compiling thiserror-impl v2.0.16 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling actix_derive v0.6.2 [INFO] [stderr] Compiling sea-bae v0.2.1 [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 ouroboros_macro v0.17.2 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling derive_more v0.99.20 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling sea-orm-macros v0.12.15 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling validator_derive v0.18.2 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling mockall_derive v0.12.1 [INFO] [stderr] Compiling env_logger v0.11.8 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling ouroboros v0.17.2 [INFO] [stderr] Compiling zstd v0.13.3 [INFO] [stderr] Compiling derive_more v2.0.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling mockall v0.12.1 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling actix-rt v2.11.0 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling tokio-retry v0.3.0 [INFO] [stderr] Compiling actix-server v2.6.0 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling combine v4.6.7 [INFO] [stderr] Compiling redis-async v0.16.1 [INFO] [stderr] Compiling actix-tls v3.4.0 [INFO] [stderr] Compiling redis-async v0.17.2 [INFO] [stderr] Compiling bitflags v2.9.3 [INFO] [stderr] Compiling deranged v0.5.2 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling uuid v1.18.0 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling actix-codec v0.5.2 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling actix v0.13.5 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling validator v0.18.1 [INFO] [stderr] Compiling ctrlc v3.4.7 [INFO] [stderr] Compiling time v0.3.42 [INFO] [stderr] Compiling actix-http v3.11.1 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Compiling sqlx-core v0.7.4 [INFO] [stderr] Compiling sea-query v0.30.7 [INFO] [stderr] Compiling simple_asn1 v0.6.3 [INFO] [stderr] Compiling jsonwebtoken v9.3.1 [INFO] [stderr] Compiling redis v0.24.0 [INFO] [stderr] Compiling sqlx-mysql v0.7.4 [INFO] [stderr] Compiling actix-web v4.11.0 [INFO] [stderr] Compiling sqlx v0.7.4 [INFO] [stderr] Compiling sea-query-binder v0.5.0 [INFO] [stderr] Compiling sea-orm v0.12.15 [INFO] [stderr] Compiling actix-session v0.9.0 [INFO] [stderr] Compiling actix-cors v0.7.1 [INFO] [stderr] Compiling actix-redis v0.13.1+deprecated [INFO] [stderr] Compiling rust-web v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 38s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: actix-session v0.9.0, num-bigint-dig v0.8.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "53d961858bbb5a12271ca9a1adf6cba3330ce43b10cb1ad87eb198a710952cf3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "53d961858bbb5a12271ca9a1adf6cba3330ce43b10cb1ad87eb198a710952cf3", kill_on_drop: false }` [INFO] [stdout] 53d961858bbb5a12271ca9a1adf6cba3330ce43b10cb1ad87eb198a710952cf3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b77a2388776e49e011f81cc4f2b70050106a67f68838edb9bd4607bc7c631068 [INFO] running `Command { std: "docker" "start" "-a" "b77a2388776e49e011f81cc4f2b70050106a67f68838edb9bd4607bc7c631068", kill_on_drop: false }` [INFO] [stderr] Compiling rust-web v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `rust_web::dto::admin::sys_menu_dto::MenuBaseDto` [INFO] [stdout] --> tests/menu_test.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | MenuBaseDto, MenuCreateDto, MenuCreationResponseDto, MenuDeleteResponseDto, MenuDto, [INFO] [stdout] | ^^^^^^^^^^^ no `MenuBaseDto` in `dto::admin::sys_menu_dto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `routes` [INFO] [stdout] --> tests/menu_test.rs:12:28 [INFO] [stdout] | [INFO] [stdout] 12 | .configure(routes::admin::sys_menu_routes::api_config) [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `routes` [INFO] [stdout] ... [INFO] [stdout] 39 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `routes`, use `cargo add routes` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `init` in module `app` [INFO] [stdout] --> tests/user_test.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | app::init().await; [INFO] [stdout] | ^^^^ not found in `app` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use crate::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] 1 + use crate::common::log::config::init; [INFO] [stdout] | [INFO] [stdout] 1 + use env_logger::init; [INFO] [stdout] | [INFO] [stdout] 1 + use rust_web::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] = and 1 other candidate [INFO] [stdout] help: if you import `init`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 6 - app::init().await; [INFO] [stdout] 6 + init().await; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `routes` [INFO] [stdout] --> tests/menu_test.rs:12:28 [INFO] [stdout] | [INFO] [stdout] 12 | .configure(routes::admin::sys_menu_routes::api_config) [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `routes` [INFO] [stdout] ... [INFO] [stdout] 71 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `routes`, use `cargo add routes` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (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 `routes` [INFO] [stdout] --> tests/menu_test.rs:12:28 [INFO] [stdout] | [INFO] [stdout] 12 | .configure(routes::admin::sys_menu_routes::api_config) [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `routes` [INFO] [stdout] ... [INFO] [stdout] 81 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `routes`, use `cargo add routes` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (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 `routes` [INFO] [stdout] --> tests/menu_test.rs:12:28 [INFO] [stdout] | [INFO] [stdout] 12 | .configure(routes::admin::sys_menu_routes::api_config) [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `routes` [INFO] [stdout] ... [INFO] [stdout] 107 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `routes`, use `cargo add routes` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `common` and `handlers` [INFO] [stdout] --> tests/user_test.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use rust_web::{app, common, handlers}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `routes` [INFO] [stdout] --> tests/menu_test.rs:12:28 [INFO] [stdout] | [INFO] [stdout] 12 | .configure(routes::admin::sys_menu_routes::api_config) [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `routes` [INFO] [stdout] ... [INFO] [stdout] 125 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `routes`, use `cargo add routes` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `init` in module `app` [INFO] [stdout] --> tests/menu_test.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | app::init().await; [INFO] [stdout] | ^^^^ not found in `app` [INFO] [stdout] ... [INFO] [stdout] 39 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 23 + use crate::menu_tests::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] 23 + use crate::menu_tests::common::log::config::init; [INFO] [stdout] | [INFO] [stdout] 23 + use env_logger::init; [INFO] [stdout] | [INFO] [stdout] 23 + use rust_web::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] = and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `init` in module `app` [INFO] [stdout] --> tests/menu_test.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | app::init().await; [INFO] [stdout] | ^^^^ not found in `app` [INFO] [stdout] ... [INFO] [stdout] 71 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 23 + use crate::menu_tests::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] 23 + use crate::menu_tests::common::log::config::init; [INFO] [stdout] | [INFO] [stdout] 23 + use env_logger::init; [INFO] [stdout] | [INFO] [stdout] 23 + use rust_web::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] = and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `init` in module `app` [INFO] [stdout] --> tests/menu_test.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | app::init().await; [INFO] [stdout] | ^^^^ not found in `app` [INFO] [stdout] ... [INFO] [stdout] 81 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 23 + use crate::menu_tests::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] 23 + use crate::menu_tests::common::log::config::init; [INFO] [stdout] | [INFO] [stdout] 23 + use env_logger::init; [INFO] [stdout] | [INFO] [stdout] 23 + use rust_web::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] = and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `init` in module `app` [INFO] [stdout] --> tests/menu_test.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | app::init().await; [INFO] [stdout] | ^^^^ not found in `app` [INFO] [stdout] ... [INFO] [stdout] 107 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 23 + use crate::menu_tests::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] 23 + use crate::menu_tests::common::log::config::init; [INFO] [stdout] | [INFO] [stdout] 23 + use env_logger::init; [INFO] [stdout] | [INFO] [stdout] 23 + use rust_web::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] = and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `init` in module `app` [INFO] [stdout] --> tests/menu_test.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | app::init().await; [INFO] [stdout] | ^^^^ not found in `app` [INFO] [stdout] ... [INFO] [stdout] 125 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 23 + use crate::menu_tests::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] 23 + use crate::menu_tests::common::log::config::init; [INFO] [stdout] | [INFO] [stdout] 23 + use env_logger::init; [INFO] [stdout] | [INFO] [stdout] 23 + use rust_web::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] = and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `handlers` [INFO] [stdout] --> tests/menu_test.rs:28:33 [INFO] [stdout] | [INFO] [stdout] 28 | use rust_web::{app, common, handlers}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `routes` [INFO] [stdout] --> tests/role_test.rs:13:28 [INFO] [stdout] | [INFO] [stdout] 13 | .configure(routes::admin::sys_role_routes::api_config) [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `routes` [INFO] [stdout] ... [INFO] [stdout] 35 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `routes`, use `cargo add routes` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (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 `routes` [INFO] [stdout] --> tests/role_permission_test.rs:12:28 [INFO] [stdout] | [INFO] [stdout] 12 | .configure(routes::admin::sys_role_permission_routes::api_config) [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `routes` [INFO] [stdout] ... [INFO] [stdout] 39 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `routes`, use `cargo add routes` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (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 `routes` [INFO] [stdout] --> tests/role_test.rs:13:28 [INFO] [stdout] | [INFO] [stdout] 13 | .configure(routes::admin::sys_role_routes::api_config) [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `routes` [INFO] [stdout] ... [INFO] [stdout] 59 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `routes`, use `cargo add routes` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `routes` [INFO] [stdout] --> tests/permission_test.rs:12:28 [INFO] [stdout] | [INFO] [stdout] 12 | .configure(routes::admin::sys_permission_routes::api_config) [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `routes` [INFO] [stdout] ... [INFO] [stdout] 38 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `routes`, use `cargo add routes` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (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 `routes` [INFO] [stdout] --> tests/permission_test.rs:12:28 [INFO] [stdout] | [INFO] [stdout] 12 | .configure(routes::admin::sys_permission_routes::api_config) [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `routes` [INFO] [stdout] ... [INFO] [stdout] 61 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `routes`, use `cargo add routes` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (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 `routes` [INFO] [stdout] --> tests/role_test.rs:13:28 [INFO] [stdout] | [INFO] [stdout] 13 | .configure(routes::admin::sys_role_routes::api_config) [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `routes` [INFO] [stdout] ... [INFO] [stdout] 73 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `routes`, use `cargo add routes` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (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 `routes` [INFO] [stdout] --> tests/role_permission_test.rs:12:28 [INFO] [stdout] | [INFO] [stdout] 12 | .configure(routes::admin::sys_role_permission_routes::api_config) [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `routes` [INFO] [stdout] ... [INFO] [stdout] 58 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `routes`, use `cargo add routes` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (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 `routes` [INFO] [stdout] --> tests/role_test.rs:13:28 [INFO] [stdout] | [INFO] [stdout] 13 | .configure(routes::admin::sys_role_routes::api_config) [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `routes` [INFO] [stdout] ... [INFO] [stdout] 96 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `routes`, use `cargo add routes` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `init` in module `app` [INFO] [stdout] --> tests/role_test.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | app::init().await; [INFO] [stdout] | ^^^^ not found in `app` [INFO] [stdout] ... [INFO] [stdout] 35 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 25 + use crate::tests::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] 25 + use crate::tests::common::log::config::init; [INFO] [stdout] | [INFO] [stdout] 25 + use env_logger::init; [INFO] [stdout] | [INFO] [stdout] 25 + use rust_web::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] = and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `APP_STATE` in this scope [INFO] [stdout] --> tests/role_test.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | let m = APP_STATE.get().unwrap(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 35 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these statics [INFO] [stdout] | [INFO] [stdout] 25 + use crate::tests::globals::APP_STATE; [INFO] [stdout] | [INFO] [stdout] 25 + use rust_web::config::globals::APP_STATE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `init` in module `app` [INFO] [stdout] --> tests/role_test.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | app::init().await; [INFO] [stdout] | ^^^^ not found in `app` [INFO] [stdout] ... [INFO] [stdout] 59 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 25 + use crate::tests::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] 25 + use crate::tests::common::log::config::init; [INFO] [stdout] | [INFO] [stdout] 25 + use env_logger::init; [INFO] [stdout] | [INFO] [stdout] 25 + use rust_web::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] = and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `APP_STATE` in this scope [INFO] [stdout] --> tests/role_test.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | let m = APP_STATE.get().unwrap(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 59 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these statics [INFO] [stdout] | [INFO] [stdout] 25 + use crate::tests::globals::APP_STATE; [INFO] [stdout] | [INFO] [stdout] 25 + use rust_web::config::globals::APP_STATE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `init` in module `app` [INFO] [stdout] --> tests/role_test.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | app::init().await; [INFO] [stdout] | ^^^^ not found in `app` [INFO] [stdout] ... [INFO] [stdout] 73 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 25 + use crate::tests::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] 25 + use crate::tests::common::log::config::init; [INFO] [stdout] | [INFO] [stdout] 25 + use env_logger::init; [INFO] [stdout] | [INFO] [stdout] 25 + use rust_web::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] = and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `APP_STATE` in this scope [INFO] [stdout] --> tests/role_test.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | let m = APP_STATE.get().unwrap(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 73 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these statics [INFO] [stdout] | [INFO] [stdout] 25 + use crate::tests::globals::APP_STATE; [INFO] [stdout] | [INFO] [stdout] 25 + use rust_web::config::globals::APP_STATE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `init` in module `app` [INFO] [stdout] --> tests/role_test.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | app::init().await; [INFO] [stdout] | ^^^^ not found in `app` [INFO] [stdout] ... [INFO] [stdout] 96 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 25 + use crate::tests::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] 25 + use crate::tests::common::log::config::init; [INFO] [stdout] | [INFO] [stdout] 25 + use env_logger::init; [INFO] [stdout] | [INFO] [stdout] 25 + use rust_web::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] = and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `APP_STATE` in this scope [INFO] [stdout] --> tests/role_test.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | let m = APP_STATE.get().unwrap(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 96 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these statics [INFO] [stdout] | [INFO] [stdout] 25 + use crate::tests::globals::APP_STATE; [INFO] [stdout] | [INFO] [stdout] 25 + use rust_web::config::globals::APP_STATE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `routes` [INFO] [stdout] --> tests/permission_test.rs:12:28 [INFO] [stdout] | [INFO] [stdout] 12 | .configure(routes::admin::sys_permission_routes::api_config) [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `routes` [INFO] [stdout] ... [INFO] [stdout] 72 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `routes`, use `cargo add routes` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (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 `routes` [INFO] [stdout] --> tests/user_role_test.rs:12:28 [INFO] [stdout] | [INFO] [stdout] 12 | .configure(routes::admin::sys_user_role_routes::api_config) [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `routes` [INFO] [stdout] ... [INFO] [stdout] 35 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `routes`, use `cargo add routes` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_web::config::globals` [INFO] [stdout] --> tests/role_test.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | use rust_web::config::globals; [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: `handlers` [INFO] [stdout] --> tests/role_test.rs:32:33 [INFO] [stdout] | [INFO] [stdout] 32 | use rust_web::{app, common, handlers}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `routes` [INFO] [stdout] --> tests/role_permission_test.rs:12:28 [INFO] [stdout] | [INFO] [stdout] 12 | .configure(routes::admin::sys_role_permission_routes::api_config) [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `routes` [INFO] [stdout] ... [INFO] [stdout] 72 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `routes`, use `cargo add routes` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `init` in module `app` [INFO] [stdout] --> tests/role_permission_test.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | app::init().await; [INFO] [stdout] | ^^^^ not found in `app` [INFO] [stdout] ... [INFO] [stdout] 39 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 23 + use crate::role_permission_tests::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] 23 + use crate::role_permission_tests::common::log::config::init; [INFO] [stdout] | [INFO] [stdout] 23 + use env_logger::init; [INFO] [stdout] | [INFO] [stdout] 23 + use rust_web::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] = and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `init` in module `app` [INFO] [stdout] --> tests/role_permission_test.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | app::init().await; [INFO] [stdout] | ^^^^ not found in `app` [INFO] [stdout] ... [INFO] [stdout] 58 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 23 + use crate::role_permission_tests::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] 23 + use crate::role_permission_tests::common::log::config::init; [INFO] [stdout] | [INFO] [stdout] 23 + use env_logger::init; [INFO] [stdout] | [INFO] [stdout] 23 + use rust_web::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] = and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `init` in module `app` [INFO] [stdout] --> tests/role_permission_test.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | app::init().await; [INFO] [stdout] | ^^^^ not found in `app` [INFO] [stdout] ... [INFO] [stdout] 72 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 23 + use crate::role_permission_tests::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] 23 + use crate::role_permission_tests::common::log::config::init; [INFO] [stdout] | [INFO] [stdout] 23 + use env_logger::init; [INFO] [stdout] | [INFO] [stdout] 23 + use rust_web::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] = and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `init` in module `app` [INFO] [stdout] --> tests/role_permission_test.rs:86:14 [INFO] [stdout] | [INFO] [stdout] 86 | app::init().await; [INFO] [stdout] | ^^^^ not found in `app` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 23 + use crate::role_permission_tests::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] 23 + use crate::role_permission_tests::common::log::config::init; [INFO] [stdout] | [INFO] [stdout] 23 + use env_logger::init; [INFO] [stdout] | [INFO] [stdout] 23 + use rust_web::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] = and 1 other candidate [INFO] [stdout] help: if you import `init`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 86 - app::init().await; [INFO] [stdout] 86 + init().await; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `routes` [INFO] [stdout] --> tests/user_role_test.rs:12:28 [INFO] [stdout] | [INFO] [stdout] 12 | .configure(routes::admin::sys_user_role_routes::api_config) [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `routes` [INFO] [stdout] ... [INFO] [stdout] 53 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `routes`, use `cargo add routes` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (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 `routes` [INFO] [stdout] --> tests/permission_test.rs:12:28 [INFO] [stdout] | [INFO] [stdout] 12 | .configure(routes::admin::sys_permission_routes::api_config) [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `routes` [INFO] [stdout] ... [INFO] [stdout] 85 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `routes`, use `cargo add routes` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-web` (test "user_test") due to 1 previous error; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused import: `handlers` [INFO] [stdout] --> tests/role_permission_test.rs:34:33 [INFO] [stdout] | [INFO] [stdout] 34 | use rust_web::{app, common, handlers}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `MenuCreateDto` has no field named `base` [INFO] [stdout] --> tests/menu_test.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | base: menu_base_dto, [INFO] [stdout] | ^^^^ `MenuCreateDto` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `menu_type`, `menu_name`, `route_name`, `route_path`, `layout` ... and 16 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `routes` [INFO] [stdout] --> tests/user_role_test.rs:12:28 [INFO] [stdout] | [INFO] [stdout] 12 | .configure(routes::admin::sys_user_role_routes::api_config) [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `routes` [INFO] [stdout] ... [INFO] [stdout] 66 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `routes`, use `cargo add routes` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `init` in module `app` [INFO] [stdout] --> tests/user_role_test.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | app::init().await; [INFO] [stdout] | ^^^^ not found in `app` [INFO] [stdout] ... [INFO] [stdout] 35 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 22 + use crate::user_role_tests::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] 22 + use crate::user_role_tests::common::log::config::init; [INFO] [stdout] | [INFO] [stdout] 22 + use env_logger::init; [INFO] [stdout] | [INFO] [stdout] 22 + use rust_web::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] = and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `init` in module `app` [INFO] [stdout] --> tests/user_role_test.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | app::init().await; [INFO] [stdout] | ^^^^ not found in `app` [INFO] [stdout] ... [INFO] [stdout] 53 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 22 + use crate::user_role_tests::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] 22 + use crate::user_role_tests::common::log::config::init; [INFO] [stdout] | [INFO] [stdout] 22 + use env_logger::init; [INFO] [stdout] | [INFO] [stdout] 22 + use rust_web::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] = and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `init` in module `app` [INFO] [stdout] --> tests/user_role_test.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | app::init().await; [INFO] [stdout] | ^^^^ not found in `app` [INFO] [stdout] ... [INFO] [stdout] 66 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 22 + use crate::user_role_tests::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] 22 + use crate::user_role_tests::common::log::config::init; [INFO] [stdout] | [INFO] [stdout] 22 + use env_logger::init; [INFO] [stdout] | [INFO] [stdout] 22 + use rust_web::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] = and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `routes` [INFO] [stdout] --> tests/permission_test.rs:12:28 [INFO] [stdout] | [INFO] [stdout] 12 | .configure(routes::admin::sys_permission_routes::api_config) [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `routes` [INFO] [stdout] ... [INFO] [stdout] 107 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `routes`, use `cargo add routes` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `init` in module `app` [INFO] [stdout] --> tests/permission_test.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | app::init().await; [INFO] [stdout] | ^^^^ not found in `app` [INFO] [stdout] ... [INFO] [stdout] 38 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 23 + use crate::permission_tests::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] 23 + use crate::permission_tests::common::log::config::init; [INFO] [stdout] | [INFO] [stdout] 23 + use env_logger::init; [INFO] [stdout] | [INFO] [stdout] 23 + use rust_web::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] = and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `init` in module `app` [INFO] [stdout] --> tests/permission_test.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | app::init().await; [INFO] [stdout] | ^^^^ not found in `app` [INFO] [stdout] ... [INFO] [stdout] 61 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 23 + use crate::permission_tests::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] 23 + use crate::permission_tests::common::log::config::init; [INFO] [stdout] | [INFO] [stdout] 23 + use env_logger::init; [INFO] [stdout] | [INFO] [stdout] 23 + use rust_web::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] = and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PermissionsRespDto` in this scope [INFO] [stdout] --> tests/permission_test.rs:65:45 [INFO] [stdout] | [INFO] [stdout] 65 | let resp: common::resp::ApiResponse = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/dto/admin/sys_permission_dto.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct PermissionRespDto { [INFO] [stdout] | ---------------------------- similarly named struct `PermissionRespDto` defined here [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 65 - let resp: common::resp::ApiResponse = [INFO] [stdout] 65 + let resp: common::resp::ApiResponse = [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 60 | async fn test_get_permissions() { [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `init` in module `app` [INFO] [stdout] --> tests/permission_test.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | app::init().await; [INFO] [stdout] | ^^^^ not found in `app` [INFO] [stdout] ... [INFO] [stdout] 72 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 23 + use crate::permission_tests::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] 23 + use crate::permission_tests::common::log::config::init; [INFO] [stdout] | [INFO] [stdout] 23 + use env_logger::init; [INFO] [stdout] | [INFO] [stdout] 23 + use rust_web::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] = and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `init` in module `app` [INFO] [stdout] --> tests/permission_test.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | app::init().await; [INFO] [stdout] | ^^^^ not found in `app` [INFO] [stdout] ... [INFO] [stdout] 85 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 23 + use crate::permission_tests::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] 23 + use crate::permission_tests::common::log::config::init; [INFO] [stdout] | [INFO] [stdout] 23 + use env_logger::init; [INFO] [stdout] | [INFO] [stdout] 23 + use rust_web::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] = and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `init` in module `app` [INFO] [stdout] --> tests/permission_test.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | app::init().await; [INFO] [stdout] | ^^^^ not found in `app` [INFO] [stdout] ... [INFO] [stdout] 107 | let app = setup_test_app!(); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `setup_test_app` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 23 + use crate::permission_tests::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] 23 + use crate::permission_tests::common::log::config::init; [INFO] [stdout] | [INFO] [stdout] 23 + use env_logger::init; [INFO] [stdout] | [INFO] [stdout] 23 + use rust_web::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] = and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `handlers` [INFO] [stdout] --> tests/permission_test.rs:33:33 [INFO] [stdout] | [INFO] [stdout] 33 | use rust_web::{app, common, handlers}; [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: `handlers` [INFO] [stdout] --> tests/user_role_test.rs:31:33 [INFO] [stdout] | [INFO] [stdout] 31 | use rust_web::{app, common, handlers}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `MenuUpdateDto` has no field named `base` [INFO] [stdout] --> tests/menu_test.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | base: menu_base_dto, [INFO] [stdout] | ^^^^ `MenuUpdateDto` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `menu_type`, `menu_name`, `route_name`, `route_path`, `layout` ... and 16 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433, E0560. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] error[E0063]: missing fields `action_codes`, `apis`, `menus` and 2 other fields in initializer of `PermissionCreationDto` [INFO] [stdout] --> tests/permission_test.rs:40:39 [INFO] [stdout] | [INFO] [stdout] 40 | let permission_creation_dto = PermissionCreationDto { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ missing `action_codes`, `apis`, `menus` and 2 other fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `PermissionCreationDto: serde::ser::Serialize` is not satisfied [INFO] [stdout] --> tests/permission_test.rs:47:24 [INFO] [stdout] | [INFO] [stdout] 47 | .set_json(&permission_creation_dto) [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^^^^^ the trait `serde::ser::Serialize` is not implemented for `PermissionCreationDto` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: for local types consider adding `#[derive(serde::Serialize)]` to your `PermissionCreationDto` type [INFO] [stdout] = note: for types from other crates check whether the crate offers a `serde` feature flag [INFO] [stdout] = help: the following other types implement trait `serde::ser::Serialize`: [INFO] [stdout] &'a T [INFO] [stdout] &'a mut T [INFO] [stdout] () [INFO] [stdout] (T,) [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] and 325 others [INFO] [stdout] = note: required for `&PermissionCreationDto` to implement `serde::ser::Serialize` [INFO] [stdout] note: required by a bound in `TestRequest::set_json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/actix-web-4.11.0/src/test/test_request.rs:201:42 [INFO] [stdout] | [INFO] [stdout] 201 | pub fn set_json(mut self, data: impl Serialize) -> Self { [INFO] [stdout] | ^^^^^^^^^ required by this bound in `TestRequest::set_json` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-web` (test "user_role_test") due to 6 previous errors; 1 warning emitted [INFO] [stderr] error: could not compile `rust-web` (test "menu_test") due to 13 previous errors; 1 warning emitted [INFO] [stderr] error: could not compile `rust-web` (test "role_permission_test") due to 7 previous errors; 1 warning emitted [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/permission_test.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | permission_creation_dto.permission_code [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Option`, found `String` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found struct `String` [INFO] [stdout] help: try wrapping the expression in `Some` [INFO] [stdout] | [INFO] [stdout] 55 | Some(permission_creation_dto.permission_code) [INFO] [stdout] | +++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/role_test.rs:38:24 [INFO] [stdout] | [INFO] [stdout] 38 | role_code: Some("role_id_2".to_string()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `String`, found `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `String` [INFO] [stdout] found enum `Option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `id` on type `PermissionDto` [INFO] [stdout] --> tests/permission_test.rs:80:32 [INFO] [stdout] | [INFO] [stdout] 80 | assert!(resp.data.base.id != 0); // 确认我们能获取到权限ID [INFO] [stdout] | ^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `permission_name`, `permission_code`, `description`, `action_codes`, `menus` ... and 2 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/role_test.rs:39:24 [INFO] [stdout] | [INFO] [stdout] 39 | role_name: Some("Test Role Name2".to_string()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `String`, found `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `String` [INFO] [stdout] found enum `Option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `PermissionUpdateDto` has no field named `permission_code` [INFO] [stdout] --> tests/permission_test.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | permission_code: Some("new_permission_code".to_string()), [INFO] [stdout] | ^^^^^^^^^^^^^^^ `PermissionUpdateDto` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `base` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `PermissionUpdateDto` has no field named `description` [INFO] [stdout] --> tests/permission_test.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | description: Some("Updated Permission Description".to_string()), [INFO] [stdout] | ^^^^^^^^^^^ `PermissionUpdateDto` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `base` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `permission_code` on type `Option` [INFO] [stdout] --> tests/permission_test.rs:100:28 [INFO] [stdout] | [INFO] [stdout] 100 | resp.data.base.permission_code, [INFO] [stdout] | ^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: one of the expressions' fields has a field of the same name [INFO] [stdout] | [INFO] [stdout] 100 | resp.data.base.unwrap().permission_code, [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `permission_code` on type `PermissionUpdateDto` [INFO] [stdout] --> tests/permission_test.rs:101:35 [INFO] [stdout] | [INFO] [stdout] 101 | permission_update_dto.permission_code.unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: one of the expressions' fields has a field of the same name [INFO] [stdout] | [INFO] [stdout] 101 | permission_update_dto.base.permission_code.unwrap() [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/role_test.rs:40:24 [INFO] [stdout] | [INFO] [stdout] 40 | role_desc: Some("Test Role Description2".to_string()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `String`, found `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `String` [INFO] [stdout] found enum `Option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0063, E0277, E0308, E0412, E0425, E0433, E0560, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0063`. [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `permission_ids` in initializer of `RoleCreationDto` [INFO] [stdout] --> tests/role_test.rs:37:33 [INFO] [stdout] | [INFO] [stdout] 37 | let role_creation_dto = RoleCreationDto { [INFO] [stdout] | ^^^^^^^^^^^^^^^ missing `permission_ids` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/role_test.rs:53:46 [INFO] [stdout] | [INFO] [stdout] 53 | assert_eq!(resp.data.base.role_code, role_creation_dto.role_code); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Option`, found `String` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found struct `String` [INFO] [stdout] help: try wrapping the expression in `Some` [INFO] [stdout] | [INFO] [stdout] 53 | assert_eq!(resp.data.base.role_code, Some(role_creation_dto.role_code)); [INFO] [stdout] | +++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/role_test.rs:79:26 [INFO] [stdout] | [INFO] [stdout] 79 | status: Some(0), [INFO] [stdout] | ---- ^ expected `String`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed [INFO] [stdout] --> tests/role_test.rs:79:21 [INFO] [stdout] | [INFO] [stdout] 79 | status: Some(0), [INFO] [stdout] | ^^^^^-^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/option.rs:601:5 [INFO] [stdout] help: try using a conversion method [INFO] [stdout] | [INFO] [stdout] 79 | status: Some(0.to_string()), [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `permission_ids` in initializer of `RoleUpdateDto` [INFO] [stdout] --> tests/role_test.rs:75:31 [INFO] [stdout] | [INFO] [stdout] 75 | let role_update_dto = RoleUpdateDto { [INFO] [stdout] | ^^^^^^^^^^^^^ missing `permission_ids` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-web` (test "permission_test") due to 19 previous errors; 1 warning emitted [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/role_test.rs:41:21 [INFO] [stdout] | [INFO] [stdout] 41 | status: 1, [INFO] [stdout] | ^ expected `String`, found integer [INFO] [stdout] | [INFO] [stdout] help: try using a conversion method [INFO] [stdout] | [INFO] [stdout] 41 | status: 1.to_string(), [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0063, E0308, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0063`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-web` (test "role_test") due to 20 previous errors; 2 warnings emitted [INFO] [stdout] error[E0425]: cannot find function `init` in module `app` [INFO] [stdout] --> src/common/redis/utils.rs:70:14 [INFO] [stdout] | [INFO] [stdout] 70 | app::init().await; [INFO] [stdout] | ^^^^ not found in `app` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 61 + use crate::common::db::config::init; [INFO] [stdout] | [INFO] [stdout] 61 + use crate::common::log::config::init; [INFO] [stdout] | [INFO] [stdout] 61 + use env_logger::init; [INFO] [stdout] | [INFO] [stdout] help: if you import `init`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 70 - app::init().await; [INFO] [stdout] 70 + init().await; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `actix::Actor` [INFO] [stdout] --> src/common/redis/utils.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | use actix::Actor; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-web` (lib test) due to 1 previous error; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "b77a2388776e49e011f81cc4f2b70050106a67f68838edb9bd4607bc7c631068", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b77a2388776e49e011f81cc4f2b70050106a67f68838edb9bd4607bc7c631068", kill_on_drop: false }` [INFO] [stdout] b77a2388776e49e011f81cc4f2b70050106a67f68838edb9bd4607bc7c631068