[INFO] cloning repository https://github.com/floki2020/sentry-wecom-webhook [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/floki2020/sentry-wecom-webhook" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffloki2020%2Fsentry-wecom-webhook", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffloki2020%2Fsentry-wecom-webhook'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8e226978596709887f1afdbcea144ab2139caf99 [INFO] testing floki2020/sentry-wecom-webhook against master#0d162b25edd5bf0dba9a22e83b614f1113e90474 for pr-150681 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffloki2020%2Fsentry-wecom-webhook" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/floki2020/sentry-wecom-webhook [INFO] finished tweaking git repo https://github.com/floki2020/sentry-wecom-webhook [INFO] tweaked toml for git repo https://github.com/floki2020/sentry-wecom-webhook written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/floki2020/sentry-wecom-webhook on toolchain 0d162b25edd5bf0dba9a22e83b614f1113e90474 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "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" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 288 packages to latest compatible versions [INFO] [stderr] Adding config v0.13.4 (available: v0.15.19) [INFO] [stderr] Adding generic-array v0.14.7 (available: v0.14.9) [INFO] [stderr] Adding reqwest v0.12.28 (available: v0.13.1) [INFO] [stderr] Adding toml v0.5.11 (available: v0.9.10+spec-1.1.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pest_generator v2.8.5 [INFO] [stderr] Downloaded actix-cors v0.7.1 [INFO] [stderr] Downloaded pest_derive v2.8.5 [INFO] [stderr] Downloaded pest v2.8.5 [INFO] [stderr] Downloaded pest_meta v2.8.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 295596dfe59d8271f2e0a712e7039751ba637e96fb88a577c6df6f5b050329be [INFO] running `Command { std: "docker" "start" "-a" "295596dfe59d8271f2e0a712e7039751ba637e96fb88a577c6df6f5b050329be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "295596dfe59d8271f2e0a712e7039751ba637e96fb88a577c6df6f5b050329be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "295596dfe59d8271f2e0a712e7039751ba637e96fb88a577c6df6f5b050329be", kill_on_drop: false }` [INFO] [stdout] 295596dfe59d8271f2e0a712e7039751ba637e96fb88a577c6df6f5b050329be [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 46b425f888a3fafc4367649d006433d105c92262d5b9e0a3b33c388fc97dffdd [INFO] running `Command { std: "docker" "start" "-a" "46b425f888a3fafc4367649d006433d105c92262d5b9e0a3b33c388fc97dffdd", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.22 [INFO] [stderr] Compiling quote v1.0.43 [INFO] [stderr] Compiling libc v0.2.179 [INFO] [stderr] Compiling cfg-if v1.0.4 [INFO] [stderr] Compiling log v0.4.29 [INFO] [stderr] Compiling bytes v1.11.0 [INFO] [stderr] Compiling find-msvc-tools v0.1.6 [INFO] [stderr] Compiling itoa v1.0.17 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Compiling tracing-core v0.1.36 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling proc-macro2 v1.0.105 [INFO] [stderr] Compiling writeable v0.6.2 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling hashbrown v0.16.1 [INFO] [stderr] Compiling litemap v0.8.1 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling zerocopy v0.8.31 [INFO] [stderr] Compiling regex-syntax v0.8.8 [INFO] [stderr] Compiling local-waker v0.1.4 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Compiling aho-corasick v1.1.4 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling indexmap v2.12.1 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Compiling alloc-no-stdlib v2.0.4 [INFO] [stderr] Compiling http v1.4.0 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling convert_case v0.10.0 [INFO] [stderr] Compiling pest v2.8.5 [INFO] [stderr] Compiling syn v2.0.113 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling alloc-stdlib v0.2.2 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling simd-adler32 v0.3.8 [INFO] [stderr] Compiling time-core v0.1.6 [INFO] [stderr] Compiling adler2 v2.0.1 [INFO] [stderr] Compiling regex-lite v0.1.8 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Compiling errno v0.3.14 [INFO] [stderr] Compiling cc v1.2.51 [INFO] [stderr] Compiling signal-hook-registry v1.4.8 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling mio v1.1.1 [INFO] [stderr] Compiling socket2 v0.6.1 [INFO] [stderr] Compiling crypto-common v0.1.7 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling tokio v1.49.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling pest_meta v2.8.5 [INFO] [stderr] Compiling tracing v0.1.44 [INFO] [stderr] Compiling bytestring v1.5.0 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Compiling time-macros v0.2.24 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling brotli-decompressor v5.0.0 [INFO] [stderr] Compiling deranged v0.5.5 [INFO] [stderr] Compiling actix-utils v3.0.1 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling actix-service v2.0.3 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling ryu v1.0.22 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Compiling zstd-sys v2.0.16+zstd.1.5.7 [INFO] [stderr] Compiling flate2 v1.1.5 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling local-channel v0.1.5 [INFO] [stderr] Compiling brotli v8.0.2 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling language-tags v0.3.2 [INFO] [stderr] Compiling dlv-list v0.3.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling time v0.3.44 [INFO] [stderr] Compiling pest_generator v2.8.5 [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling ordered-multimap v0.4.3 [INFO] [stderr] Compiling impl-more v0.1.9 [INFO] [stderr] Compiling iri-string v0.7.10 [INFO] [stderr] Compiling anstyle-query v1.1.5 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.2 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Compiling anstyle v1.0.13 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Compiling anstream v0.6.21 [INFO] [stderr] Compiling env_filter v0.1.4 [INFO] [stderr] Compiling rust-ini v0.18.0 [INFO] [stderr] Compiling rustls-pki-types v1.13.2 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling pathdiff v0.2.3 [INFO] [stderr] Compiling jiff v0.2.18 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling derive_more-impl v2.1.1 [INFO] [stderr] Compiling pest_derive v2.8.5 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling tokio-util v0.7.18 [INFO] [stderr] Compiling actix-rt v2.11.0 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling tower-http v0.6.8 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling h2 v0.4.13 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling actix-codec v0.5.2 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling actix-server v2.6.0 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling derive_more v2.1.1 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling icu_properties v2.1.2 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling json5 v0.4.1 [INFO] [stderr] Compiling ron v0.7.1 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling env_logger v0.11.8 [INFO] [stderr] Compiling config v0.13.4 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling zstd v0.13.3 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Compiling hyper v1.8.1 [INFO] [stderr] Compiling actix-http v3.11.2 [INFO] [stderr] Compiling hyper-util v0.1.19 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.28 [INFO] [stderr] Compiling actix-web v4.12.1 [INFO] [stderr] Compiling actix-cors v0.7.1 [INFO] [stderr] Compiling sentry-wecom-webhook v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/handlers.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | use log::{debug, error, info, warn}; [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: `warn` [INFO] [stdout] --> src/main.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | use log::{info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mentioned_mobiles` [INFO] [stdout] --> src/handlers.rs:212:9 [INFO] [stdout] | [INFO] [stdout] 212 | mentioned_mobiles: &[String], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mentioned_mobiles` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `host`, `port`, `wecom_webhook_url`, and `sentry_org` are never used [INFO] [stdout] --> src/models.rs:180:12 [INFO] [stdout] | [INFO] [stdout] 153 | impl AppConfig { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 180 | pub fn host(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 184 | pub fn port(&self) -> u16 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | pub fn wecom_webhook_url(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 192 | pub fn sentry_org(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extract_tag_value` is never used [INFO] [stdout] --> src/utils.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn extract_tag_value(tags: &Vec<[String; 2]>, key: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extract_json_string` is never used [INFO] [stdout] --> src/utils.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn extract_json_string(value: &Value, key: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extract_nested_json_string` is never used [INFO] [stdout] --> src/utils.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn extract_nested_json_string(value: &Value, keys: &[&str]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extract_merchant_id` is never used [INFO] [stdout] --> src/utils.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn extract_merchant_id(webhook: &SentryWebhook) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extract_internal_url` is never used [INFO] [stdout] --> src/utils.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn extract_internal_url(webhook: &SentryWebhook) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `convert_api_to_web_url` is never used [INFO] [stdout] --> src/utils.rs:160:4 [INFO] [stdout] | [INFO] [stdout] 160 | fn convert_api_to_web_url(api_url: &str, base_url: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_event_timestamp` is never used [INFO] [stdout] --> src/utils.rs:196:8 [INFO] [stdout] | [INFO] [stdout] 196 | pub fn get_event_timestamp(event: &SentryEvent) -> DateTime { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_tags_string` is never used [INFO] [stdout] --> src/utils.rs:259:8 [INFO] [stdout] | [INFO] [stdout] 259 | pub fn build_tags_string(tags: &Vec<[String; 2]>, include_tags: &[String]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `RequestError` is never constructed [INFO] [stdout] --> src/error.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum AppError { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 11 | RequestError(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppError` 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 46.83s [INFO] running `Command { std: "docker" "inspect" "46b425f888a3fafc4367649d006433d105c92262d5b9e0a3b33c388fc97dffdd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "46b425f888a3fafc4367649d006433d105c92262d5b9e0a3b33c388fc97dffdd", kill_on_drop: false }` [INFO] [stdout] 46b425f888a3fafc4367649d006433d105c92262d5b9e0a3b33c388fc97dffdd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b744385a595f536149b64f7d296bc57214bd60c5950d9146027a0865e432aa5c [INFO] running `Command { std: "docker" "start" "-a" "b744385a595f536149b64f7d296bc57214bd60c5950d9146027a0865e432aa5c", kill_on_drop: false }` [INFO] [stderr] Compiling actix-rt v2.11.0 [INFO] [stderr] Compiling actix-http v3.11.2 [INFO] [stderr] Compiling actix-server v2.6.0 [INFO] [stderr] Compiling actix-web v4.12.1 [INFO] [stderr] Compiling actix-cors v0.7.1 [INFO] [stderr] Compiling sentry-wecom-webhook v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/handlers.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | use log::{debug, error, info, warn}; [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: `warn` [INFO] [stdout] --> src/main.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | use log::{info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mentioned_mobiles` [INFO] [stdout] --> src/handlers.rs:212:9 [INFO] [stdout] | [INFO] [stdout] 212 | mentioned_mobiles: &[String], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mentioned_mobiles` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `host`, `port`, `wecom_webhook_url`, and `sentry_org` are never used [INFO] [stdout] --> src/models.rs:180:12 [INFO] [stdout] | [INFO] [stdout] 153 | impl AppConfig { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 180 | pub fn host(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 184 | pub fn port(&self) -> u16 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | pub fn wecom_webhook_url(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 192 | pub fn sentry_org(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extract_tag_value` is never used [INFO] [stdout] --> src/utils.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn extract_tag_value(tags: &Vec<[String; 2]>, key: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extract_json_string` is never used [INFO] [stdout] --> src/utils.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn extract_json_string(value: &Value, key: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extract_nested_json_string` is never used [INFO] [stdout] --> src/utils.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn extract_nested_json_string(value: &Value, keys: &[&str]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extract_merchant_id` is never used [INFO] [stdout] --> src/utils.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn extract_merchant_id(webhook: &SentryWebhook) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extract_internal_url` is never used [INFO] [stdout] --> src/utils.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn extract_internal_url(webhook: &SentryWebhook) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `convert_api_to_web_url` is never used [INFO] [stdout] --> src/utils.rs:160:4 [INFO] [stdout] | [INFO] [stdout] 160 | fn convert_api_to_web_url(api_url: &str, base_url: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_event_timestamp` is never used [INFO] [stdout] --> src/utils.rs:196:8 [INFO] [stdout] | [INFO] [stdout] 196 | pub fn get_event_timestamp(event: &SentryEvent) -> DateTime { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_tags_string` is never used [INFO] [stdout] --> src/utils.rs:259:8 [INFO] [stdout] | [INFO] [stdout] 259 | pub fn build_tags_string(tags: &Vec<[String; 2]>, include_tags: &[String]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_sentry_webhook` is never used [INFO] [stdout] --> src/utils.rs:279:8 [INFO] [stdout] | [INFO] [stdout] 279 | pub fn create_test_sentry_webhook() -> SentryWebhook { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `RequestError` is never constructed [INFO] [stdout] --> src/error.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum AppError { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 11 | RequestError(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppError` 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 7.03s [INFO] running `Command { std: "docker" "inspect" "b744385a595f536149b64f7d296bc57214bd60c5950d9146027a0865e432aa5c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b744385a595f536149b64f7d296bc57214bd60c5950d9146027a0865e432aa5c", kill_on_drop: false }` [INFO] [stdout] b744385a595f536149b64f7d296bc57214bd60c5950d9146027a0865e432aa5c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 68cce8e0bc90e9cbe7c0fac76e98e9e32ccd8467f83dbf9dd6c488d04f98dfe2 [INFO] running `Command { std: "docker" "start" "-a" "68cce8e0bc90e9cbe7c0fac76e98e9e32ccd8467f83dbf9dd6c488d04f98dfe2", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `debug` [INFO] [stderr] --> src/handlers.rs:11:11 [INFO] [stderr] | [INFO] [stderr] 11 | use log::{debug, error, info, warn}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `warn` [INFO] [stderr] --> src/main.rs:12:17 [INFO] [stderr] | [INFO] [stderr] 12 | use log::{info, warn}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `mentioned_mobiles` [INFO] [stderr] --> src/handlers.rs:212:9 [INFO] [stderr] | [INFO] [stderr] 212 | mentioned_mobiles: &[String], [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mentioned_mobiles` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: methods `host`, `port`, `wecom_webhook_url`, and `sentry_org` are never used [INFO] [stderr] --> src/models.rs:180:12 [INFO] [stderr] | [INFO] [stderr] 153 | impl AppConfig { [INFO] [stderr] | -------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 180 | pub fn host(&self) -> &str { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 184 | pub fn port(&self) -> u16 { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 188 | pub fn wecom_webhook_url(&self) -> &str { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 192 | pub fn sentry_org(&self) -> &str { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: function `extract_tag_value` is never used [INFO] [stderr] --> src/utils.rs:32:8 [INFO] [stderr] | [INFO] [stderr] 32 | pub fn extract_tag_value(tags: &Vec<[String; 2]>, key: &str) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `extract_json_string` is never used [INFO] [stderr] --> src/utils.rs:42:8 [INFO] [stderr] | [INFO] [stderr] 42 | pub fn extract_json_string(value: &Value, key: &str) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `extract_nested_json_string` is never used [INFO] [stderr] --> src/utils.rs:49:8 [INFO] [stderr] | [INFO] [stderr] 49 | pub fn extract_nested_json_string(value: &Value, keys: &[&str]) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `extract_merchant_id` is never used [INFO] [stderr] --> src/utils.rs:60:8 [INFO] [stderr] | [INFO] [stderr] 60 | pub fn extract_merchant_id(webhook: &SentryWebhook) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `extract_internal_url` is never used [INFO] [stderr] --> src/utils.rs:93:8 [INFO] [stderr] | [INFO] [stderr] 93 | pub fn extract_internal_url(webhook: &SentryWebhook) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `convert_api_to_web_url` is never used [INFO] [stderr] --> src/utils.rs:160:4 [INFO] [stderr] | [INFO] [stderr] 160 | fn convert_api_to_web_url(api_url: &str, base_url: &str) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_event_timestamp` is never used [INFO] [stderr] --> src/utils.rs:196:8 [INFO] [stderr] | [INFO] [stderr] 196 | pub fn get_event_timestamp(event: &SentryEvent) -> DateTime { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `build_tags_string` is never used [INFO] [stderr] --> src/utils.rs:259:8 [INFO] [stderr] | [INFO] [stderr] 259 | pub fn build_tags_string(tags: &Vec<[String; 2]>, include_tags: &[String]) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `create_test_sentry_webhook` is never used [INFO] [stderr] --> src/utils.rs:279:8 [INFO] [stderr] | [INFO] [stderr] 279 | pub fn create_test_sentry_webhook() -> SentryWebhook { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `RequestError` is never constructed [INFO] [stderr] --> src/error.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 6 | pub enum AppError { [INFO] [stderr] | -------- variant in this enum [INFO] [stderr] ... [INFO] [stderr] 11 | RequestError(String), [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `AppError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: `sentry-wecom-webhook` (bin "sentry-wecom-webhook" test) generated 14 warnings (run `cargo fix --bin "sentry-wecom-webhook" -p sentry-wecom-webhook --tests` to apply 3 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.18s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/sentry_wecom_webhook-453562194cfedc06) [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] running `Command { std: "docker" "inspect" "68cce8e0bc90e9cbe7c0fac76e98e9e32ccd8467f83dbf9dd6c488d04f98dfe2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "68cce8e0bc90e9cbe7c0fac76e98e9e32ccd8467f83dbf9dd6c488d04f98dfe2", kill_on_drop: false }` [INFO] [stdout] 68cce8e0bc90e9cbe7c0fac76e98e9e32ccd8467f83dbf9dd6c488d04f98dfe2