[INFO] fetching crate tushare-api 1.1.1... [INFO] testing tushare-api-1.1.1 against try#b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b for pr-145330-1 [INFO] extracting crate tushare-api 1.1.1 into /workspace/builds/worker-0-tc2/source [INFO] started tweaking crates.io crate tushare-api 1.1.1 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate tushare-api 1.1.1 [INFO] tweaked toml for crates.io crate tushare-api 1.1.1 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate tushare-api 1.1.1 on toolchain b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate tushare-api 1.1.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 96d74709cd2f10e188e125109751e97435bdf43a5e4e648c685a92046c9789e7 [INFO] running `Command { std: "docker" "start" "-a" "96d74709cd2f10e188e125109751e97435bdf43a5e4e648c685a92046c9789e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "96d74709cd2f10e188e125109751e97435bdf43a5e4e648c685a92046c9789e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "96d74709cd2f10e188e125109751e97435bdf43a5e4e648c685a92046c9789e7", kill_on_drop: false }` [INFO] [stdout] 96d74709cd2f10e188e125109751e97435bdf43a5e4e648c685a92046c9789e7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a71015a897627e61e521f3948696cd3491295a7dec91c2b04a92efe7b11f46e8 [INFO] running `Command { std: "docker" "start" "-a" "a71015a897627e61e521f3948696cd3491295a7dec91c2b04a92efe7b11f46e8", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling cfg-if v1.0.1 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling cc v1.2.30 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling slab v0.4.10 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling serde_json v1.0.141 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling humantime v2.2.0 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling env_logger v0.10.2 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tushare-derive v1.1.0 [INFO] [stderr] Compiling tokio v1.47.0 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling tushare-api v1.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/types.rs:211:17 [INFO] [stdout] | [INFO] [stdout] 211 | pub fn iter(&self) -> std::slice::Iter { [INFO] [stdout] | ^^^^^ ------------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 211 | pub fn iter(&self) -> std::slice::Iter<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/types.rs:216:21 [INFO] [stdout] | [INFO] [stdout] 216 | pub fn iter_mut(&mut self) -> std::slice::IterMut { [INFO] [stdout] | ^^^^^^^^^ ---------------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 216 | pub fn iter_mut(&mut self) -> std::slice::IterMut<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 41.01s [INFO] running `Command { std: "docker" "inspect" "a71015a897627e61e521f3948696cd3491295a7dec91c2b04a92efe7b11f46e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a71015a897627e61e521f3948696cd3491295a7dec91c2b04a92efe7b11f46e8", kill_on_drop: false }` [INFO] [stdout] a71015a897627e61e521f3948696cd3491295a7dec91c2b04a92efe7b11f46e8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c18d458413f03028b9e4d65530b194e414cffbe763b040e2b2d84101b8be8816 [INFO] running `Command { std: "docker" "start" "-a" "c18d458413f03028b9e4d65530b194e414cffbe763b040e2b2d84101b8be8816", kill_on_drop: false }` [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/types.rs:211:17 [INFO] [stdout] | [INFO] [stdout] 211 | pub fn iter(&self) -> std::slice::Iter { [INFO] [stdout] | ^^^^^ ------------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 211 | pub fn iter(&self) -> std::slice::Iter<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling tushare-api v1.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/types.rs:216:21 [INFO] [stdout] | [INFO] [stdout] 216 | pub fn iter_mut(&mut self) -> std::slice::IterMut { [INFO] [stdout] | ^^^^^^^^^ ---------------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 216 | pub fn iter_mut(&mut self) -> std::slice::IterMut<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `json` [INFO] [stdout] --> examples/debug_custom_type.rs:7:25 [INFO] [stdout] | [INFO] [stdout] 7 | use serde_json::{Value, json}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LogConfig` [INFO] [stdout] --> examples/tracing_example.rs:6:65 [INFO] [stdout] | [INFO] [stdout] 6 | use tushare_api::{TushareClient, TushareRequest, Api, LogLevel, LogConfig}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `tracing-log` [INFO] [stdout] --> examples/tracing_example.rs:14:36 [INFO] [stdout] | [INFO] [stdout] 14 | #[cfg(all(feature = "tracing", feature = "tracing-log"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `all_types`, `bigdecimal`, `chrono`, `default`, `rust_decimal`, `tracing`, and `uuid` [INFO] [stdout] = help: consider adding `tracing-log` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Api`, `TushareClient`, and `request` [INFO] [stdout] --> examples/generic_pagination_example.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use tushare_api::{TushareClient, Api, request, TushareEntityList}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client1` [INFO] [stdout] --> examples/logging_example.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let client1 = TushareClient::builder() [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client2` [INFO] [stdout] --> examples/logging_example.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let client2 = TushareClient::builder() [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client3` [INFO] [stdout] --> examples/logging_example.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let client3 = TushareClient::builder() [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client4` [INFO] [stdout] --> examples/logging_example.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let client4 = TushareClient::builder() [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client5` [INFO] [stdout] --> examples/logging_example.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let client5 = TushareClient::builder() [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client5` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `stock_code`, `stock_price`, and `stock_volume` are never read [INFO] [stdout] --> examples/debug_custom_type.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct SimpleStock { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 46 | #[tushare(field = "code")] [INFO] [stdout] 47 | stock_code: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | stock_price: SimpleDecimal, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | stock_volume: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SimpleStock` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> examples/third_party_types_example.rs:159:9 [INFO] [stdout] | [INFO] [stdout] 159 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tushare_api::traits::FromTushareValue` [INFO] [stdout] --> examples/third_party_types_example.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 160 | use tushare_api::traits::FromTushareValue; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `market` and `list_date` are never read [INFO] [stdout] --> examples/macro_conversion_example.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 6 | struct Stock { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 18 | market: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 19 | /// 上市日期 [INFO] [stdout] 20 | list_date: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Stock` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StockDaily` is never constructed [INFO] [stdout] --> examples/macro_conversion_example.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | struct StockDaily { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> examples/macro_conversion_example.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 60 | struct Fund { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 68 | custodian: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | found_date: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 73 | /// 到期日期 [INFO] [stdout] 74 | due_date: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 75 | /// 上市日期 [INFO] [stdout] 76 | list_date: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 77 | /// 发行日期 [INFO] [stdout] 78 | issue_date: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 79 | /// 退市日期 [INFO] [stdout] 80 | delist_date: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 81 | /// 基金状态 [INFO] [stdout] 82 | status: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Fund` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/types.rs:211:17 [INFO] [stdout] | [INFO] [stdout] 211 | pub fn iter(&self) -> std::slice::Iter { [INFO] [stdout] | ^^^^^ ------------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 211 | pub fn iter(&self) -> std::slice::Iter<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/types.rs:216:21 [INFO] [stdout] | [INFO] [stdout] 216 | pub fn iter_mut(&mut self) -> std::slice::IterMut { [INFO] [stdout] | ^^^^^^^^^ ---------------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 216 | pub fn iter_mut(&mut self) -> std::slice::IterMut<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 4.71s [INFO] running `Command { std: "docker" "inspect" "c18d458413f03028b9e4d65530b194e414cffbe763b040e2b2d84101b8be8816", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c18d458413f03028b9e4d65530b194e414cffbe763b040e2b2d84101b8be8816", kill_on_drop: false }` [INFO] [stdout] c18d458413f03028b9e4d65530b194e414cffbe763b040e2b2d84101b8be8816 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 6c3ea74952081896cc20f1ceb8ede6cc44ac2d0515025b592118e9cd23c16790 [INFO] running `Command { std: "docker" "start" "-a" "6c3ea74952081896cc20f1ceb8ede6cc44ac2d0515025b592118e9cd23c16790", kill_on_drop: false }` [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/types.rs:211:17 [INFO] [stderr] | [INFO] [stderr] 211 | pub fn iter(&self) -> std::slice::Iter { [INFO] [stderr] | ^^^^^ ------------------- the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 211 | pub fn iter(&self) -> std::slice::Iter<'_, T> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/types.rs:216:21 [INFO] [stderr] | [INFO] [stderr] 216 | pub fn iter_mut(&mut self) -> std::slice::IterMut { [INFO] [stderr] | ^^^^^^^^^ ---------------------- the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 216 | pub fn iter_mut(&mut self) -> std::slice::IterMut<'_, T> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: `tushare-api` (lib) generated 2 warnings (run `cargo fix --lib -p tushare-api` to apply 2 suggestions) [INFO] [stderr] warning: `tushare-api` (lib test) generated 2 warnings (2 duplicates) [INFO] [stderr] warning: unused imports: `Api`, `TushareClient`, and `request` [INFO] [stderr] --> examples/generic_pagination_example.rs:1:19 [INFO] [stderr] | [INFO] [stderr] 1 | use tushare_api::{TushareClient, Api, request, TushareEntityList}; [INFO] [stderr] | ^^^^^^^^^^^^^ ^^^ ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: fields `market` and `list_date` are never read [INFO] [stderr] --> examples/macro_conversion_example.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 6 | struct Stock { [INFO] [stderr] | ----- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 18 | market: String, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 19 | /// 上市日期 [INFO] [stderr] 20 | list_date: Option, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Stock` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: struct `StockDaily` is never constructed [INFO] [stderr] --> examples/macro_conversion_example.rs:25:8 [INFO] [stderr] | [INFO] [stderr] 25 | struct StockDaily { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple fields are never read [INFO] [stderr] --> examples/macro_conversion_example.rs:68:5 [INFO] [stderr] | [INFO] [stderr] 60 | struct Fund { [INFO] [stderr] | ---- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 68 | custodian: Option, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 72 | found_date: Option, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 73 | /// 到期日期 [INFO] [stderr] 74 | due_date: Option, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 75 | /// 上市日期 [INFO] [stderr] 76 | list_date: Option, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 77 | /// 发行日期 [INFO] [stderr] 78 | issue_date: Option, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 79 | /// 退市日期 [INFO] [stderr] 80 | delist_date: Option, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 81 | /// 基金状态 [INFO] [stderr] 82 | status: Option, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Fund` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: unused import: `serde_json::json` [INFO] [stderr] --> examples/third_party_types_example.rs:159:9 [INFO] [stderr] | [INFO] [stderr] 159 | use serde_json::json; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `tushare_api::traits::FromTushareValue` [INFO] [stderr] --> examples/third_party_types_example.rs:160:9 [INFO] [stderr] | [INFO] [stderr] 160 | use tushare_api::traits::FromTushareValue; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `client1` [INFO] [stderr] --> examples/logging_example.rs:14:9 [INFO] [stderr] | [INFO] [stderr] 14 | let client1 = TushareClient::builder() [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client1` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `client2` [INFO] [stderr] --> examples/logging_example.rs:20:9 [INFO] [stderr] | [INFO] [stderr] 20 | let client2 = TushareClient::builder() [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client2` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `client3` [INFO] [stderr] --> examples/logging_example.rs:27:9 [INFO] [stderr] | [INFO] [stderr] 27 | let client3 = TushareClient::builder() [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client3` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `client4` [INFO] [stderr] --> examples/logging_example.rs:48:9 [INFO] [stderr] | [INFO] [stderr] 48 | let client4 = TushareClient::builder() [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client4` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `client5` [INFO] [stderr] --> examples/logging_example.rs:55:9 [INFO] [stderr] | [INFO] [stderr] 55 | let client5 = TushareClient::builder() [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client5` [INFO] [stderr] [INFO] [stderr] warning: unused import: `LogConfig` [INFO] [stderr] --> examples/tracing_example.rs:6:65 [INFO] [stderr] | [INFO] [stderr] 6 | use tushare_api::{TushareClient, TushareRequest, Api, LogLevel, LogConfig}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `tracing-log` [INFO] [stderr] --> examples/tracing_example.rs:14:36 [INFO] [stderr] | [INFO] [stderr] 14 | #[cfg(all(feature = "tracing", feature = "tracing-log"))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `all_types`, `bigdecimal`, `chrono`, `default`, `rust_decimal`, `tracing`, and `uuid` [INFO] [stderr] = help: consider adding `tracing-log` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `json` [INFO] [stderr] --> examples/debug_custom_type.rs:7:25 [INFO] [stderr] | [INFO] [stderr] 7 | use serde_json::{Value, json}; [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: fields `stock_code`, `stock_price`, and `stock_volume` are never read [INFO] [stderr] --> examples/debug_custom_type.rs:47:5 [INFO] [stderr] | [INFO] [stderr] 45 | pub struct SimpleStock { [INFO] [stderr] | ----------- fields in this struct [INFO] [stderr] 46 | #[tushare(field = "code")] [INFO] [stderr] 47 | stock_code: String, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 50 | stock_price: SimpleDecimal, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 53 | stock_volume: Option, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `SimpleStock` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `tushare-api` (example "generic_pagination_example") generated 1 warning (run `cargo fix --example "generic_pagination_example"` to apply 1 suggestion) [INFO] [stderr] warning: `tushare-api` (example "macro_conversion_example") generated 3 warnings [INFO] [stderr] warning: `tushare-api` (example "third_party_types_example") generated 2 warnings (run `cargo fix --example "third_party_types_example"` to apply 2 suggestions) [INFO] [stderr] warning: `tushare-api` (example "logging_example") generated 5 warnings [INFO] [stderr] warning: `tushare-api` (example "tracing_example") generated 2 warnings (run `cargo fix --example "tracing_example"` to apply 1 suggestion) [INFO] [stderr] warning: `tushare-api` (example "debug_custom_type") generated 2 warnings (run `cargo fix --example "debug_custom_type"` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.20s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/tushare_api-1ca867f52003f31b) [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test tests::test_tushare_response_creation ... ok [INFO] [stdout] test tests::test_tushare_request_creation ... ok [INFO] [stdout] test tests::test_api_serialization ... ok [INFO] [stdout] test utils::tests::test_response_to_vec ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stderr] Doc-tests tushare_api [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 12 tests [INFO] [stdout] test src/client.rs - client::TushareClient::from_env (line 264) - compile ... ok [INFO] [stdout] test src/lib.rs - (line 20) - compile ... ok [INFO] [stdout] test src/client.rs - client::TushareClient::from_env_with_timeout (line 297) - compile ... ok [INFO] [stdout] test src/traits.rs - traits::FromOptionalTushareValue (line 72) ... ok [INFO] [stdout] test src/client.rs - client::TushareClient::call_api_as (line 499) ... ok [INFO] [stdout] test src/types.rs - types::TushareEntityList (line 129) ... ok [INFO] [stdout] test src/traits.rs - traits::FromTushareData (line 137) ... ok [INFO] [stdout] test src/traits.rs - traits::FromTushareData (line 171) ... ok [INFO] [stdout] test src/client.rs - client::TushareClient::call_api (line 368) ... ok [INFO] [stdout] test src/traits.rs - traits::FromTushareValue (line 19) ... ok [INFO] [stdout] test src/client.rs - client::TushareClient::with_timeout (line 331) ... ok [INFO] [stdout] test src/client.rs - client::TushareClient::new (line 247) ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.19s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "6c3ea74952081896cc20f1ceb8ede6cc44ac2d0515025b592118e9cd23c16790", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6c3ea74952081896cc20f1ceb8ede6cc44ac2d0515025b592118e9cd23c16790", kill_on_drop: false }` [INFO] [stdout] 6c3ea74952081896cc20f1ceb8ede6cc44ac2d0515025b592118e9cd23c16790