[INFO] cloning repository https://github.com/SheldonNico/ctp-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SheldonNico/ctp-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSheldonNico%2Fctp-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSheldonNico%2Fctp-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d80b23ed1d748db0e5c156d6a9240f9b75364693 [INFO] checking SheldonNico/ctp-rs/d80b23ed1d748db0e5c156d6a9240f9b75364693 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSheldonNico%2Fctp-rs" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/SheldonNico/ctp-rs on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/SheldonNico/ctp-rs [INFO] finished tweaking git repo https://github.com/SheldonNico/ctp-rs [INFO] tweaked toml for git repo https://github.com/SheldonNico/ctp-rs written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/SheldonNico/ctp-rs 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bindgen v0.55.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2f871ea2450e757bbda2eaada8555d5147cc460cf8254faafcadbc9dc3257f61 [INFO] running `Command { std: "docker" "start" "-a" "2f871ea2450e757bbda2eaada8555d5147cc460cf8254faafcadbc9dc3257f61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2f871ea2450e757bbda2eaada8555d5147cc460cf8254faafcadbc9dc3257f61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2f871ea2450e757bbda2eaada8555d5147cc460cf8254faafcadbc9dc3257f61", kill_on_drop: false }` [INFO] [stdout] 2f871ea2450e757bbda2eaada8555d5147cc460cf8254faafcadbc9dc3257f61 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4dcf792c946bb376d7ffc7f890b84a322332975db44ba8e1343a9e0ed7e1c981 [INFO] running `Command { std: "docker" "start" "-a" "4dcf792c946bb376d7ffc7f890b84a322332975db44ba8e1343a9e0ed7e1c981", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.137 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling proc-macro2 v1.0.47 [INFO] [stderr] Compiling unicode-ident v1.0.5 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Compiling unicode-width v0.1.10 [INFO] [stderr] Compiling regex-syntax v0.6.28 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling libloading v0.7.4 [INFO] [stderr] Compiling bindgen v0.55.1 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling humantime v1.3.0 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling shlex v0.1.1 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Checking aho-corasick v0.7.20 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Compiling clang-sys v1.4.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling which v3.1.1 [INFO] [stderr] Compiling jobserver v0.1.25 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling cc v1.0.77 [INFO] [stderr] Compiling cexpr v0.4.0 [INFO] [stderr] Compiling regex v1.7.0 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling ctp_rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Sender` [INFO] [stdout] --> examples/tdapi.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::mpsc::{self, Sender, SyncSender, Receiver}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration` and `Instant` [INFO] [stdout] --> examples/mdapi.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> examples/mdapi.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{Write, Read}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap` and `HashSet` [INFO] [stdout] --> examples/mdapi.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> examples/mdapi.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `Condvar`, and `Mutex` [INFO] [stdout] --> examples/mdapi.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | use std::sync::{Arc, Mutex, Condvar}; [INFO] [stdout] | ^^^ ^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> examples/mdapi.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{Write, Read}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pRspUserLogin` [INFO] [stdout] --> examples/mdapi.rs:52:37 [INFO] [stdout] | [INFO] [stdout] 52 | fn on_rsp_user_login(&mut self, pRspUserLogin: *mut CThostFtdcRspUserLoginField, pRspInfo: *mut CThostFtdcRspInfoField, nRequestID: :... [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pRspUserLogin` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pRspInfo` [INFO] [stdout] --> examples/mdapi.rs:52:86 [INFO] [stdout] | [INFO] [stdout] 52 | ...hostFtdcRspUserLoginField, pRspInfo: *mut CThostFtdcRspInfoField, nRequestID: ::std::os::raw::c_int, bIsLast: bool) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pRspInfo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nRequestID` [INFO] [stdout] --> examples/mdapi.rs:52:125 [INFO] [stdout] | [INFO] [stdout] 52 | ... CThostFtdcRspInfoField, nRequestID: ::std::os::raw::c_int, bIsLast: bool) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nRequestID` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bIsLast` [INFO] [stdout] --> examples/mdapi.rs:52:160 [INFO] [stdout] | [INFO] [stdout] 52 | ...tID: ::std::os::raw::c_int, bIsLast: bool) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bIsLast` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nReason` [INFO] [stdout] --> examples/mdapi.rs:57:41 [INFO] [stdout] | [INFO] [stdout] 57 | fn on_front_disconnected(&mut self, nReason: ::std::os::raw::c_int) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nReason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nTimeLapse` [INFO] [stdout] --> examples/mdapi.rs:61:41 [INFO] [stdout] | [INFO] [stdout] 61 | fn on_heart_beat_warning(&mut self, nTimeLapse: ::std::os::raw::c_int) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nTimeLapse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pRspInfo` [INFO] [stdout] --> examples/mdapi.rs:65:32 [INFO] [stdout] | [INFO] [stdout] 65 | fn on_rsp_error(&mut self, pRspInfo: *mut CThostFtdcRspInfoField, nRequestID: ::std::os::raw::c_int, bIsLast: bool) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pRspInfo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nRequestID` [INFO] [stdout] --> examples/mdapi.rs:65:71 [INFO] [stdout] | [INFO] [stdout] 65 | fn on_rsp_error(&mut self, pRspInfo: *mut CThostFtdcRspInfoField, nRequestID: ::std::os::raw::c_int, bIsLast: bool) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nRequestID` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bIsLast` [INFO] [stdout] --> examples/mdapi.rs:65:106 [INFO] [stdout] | [INFO] [stdout] 65 | fn on_rsp_error(&mut self, pRspInfo: *mut CThostFtdcRspInfoField, nRequestID: ::std::os::raw::c_int, bIsLast: bool) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bIsLast` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `symbols_file` is never read [INFO] [stdout] --> examples/mdapi.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Config { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 22 | symbols_file: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` 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: variable `pRspUserLogin` should have a snake case name [INFO] [stdout] --> examples/mdapi.rs:52:37 [INFO] [stdout] | [INFO] [stdout] 52 | fn on_rsp_user_login(&mut self, pRspUserLogin: *mut CThostFtdcRspUserLoginField, pRspInfo: *mut CThostFtdcRspInfoField, nRequestID: :... [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `p_rsp_user_login` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pRspInfo` should have a snake case name [INFO] [stdout] --> examples/mdapi.rs:52:86 [INFO] [stdout] | [INFO] [stdout] 52 | ...*mut CThostFtdcRspUserLoginField, pRspInfo: *mut CThostFtdcRspInfoField, nRequestID: ::std::os::raw::c_int, bIsLast: bool) { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `p_rsp_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nRequestID` should have a snake case name [INFO] [stdout] --> examples/mdapi.rs:52:125 [INFO] [stdout] | [INFO] [stdout] 52 | ...o: *mut CThostFtdcRspInfoField, nRequestID: ::std::os::raw::c_int, bIsLast: bool) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `n_request_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bIsLast` should have a snake case name [INFO] [stdout] --> examples/mdapi.rs:52:160 [INFO] [stdout] | [INFO] [stdout] 52 | ...nRequestID: ::std::os::raw::c_int, bIsLast: bool) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `b_is_last` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nReason` should have a snake case name [INFO] [stdout] --> examples/mdapi.rs:57:41 [INFO] [stdout] | [INFO] [stdout] 57 | fn on_front_disconnected(&mut self, nReason: ::std::os::raw::c_int) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `n_reason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nTimeLapse` should have a snake case name [INFO] [stdout] --> examples/mdapi.rs:61:41 [INFO] [stdout] | [INFO] [stdout] 61 | fn on_heart_beat_warning(&mut self, nTimeLapse: ::std::os::raw::c_int) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `n_time_lapse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pRspInfo` should have a snake case name [INFO] [stdout] --> examples/mdapi.rs:65:32 [INFO] [stdout] | [INFO] [stdout] 65 | fn on_rsp_error(&mut self, pRspInfo: *mut CThostFtdcRspInfoField, nRequestID: ::std::os::raw::c_int, bIsLast: bool) { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `p_rsp_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nRequestID` should have a snake case name [INFO] [stdout] --> examples/mdapi.rs:65:71 [INFO] [stdout] | [INFO] [stdout] 65 | fn on_rsp_error(&mut self, pRspInfo: *mut CThostFtdcRspInfoField, nRequestID: ::std::os::raw::c_int, bIsLast: bool) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `n_request_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bIsLast` should have a snake case name [INFO] [stdout] --> examples/mdapi.rs:65:106 [INFO] [stdout] | [INFO] [stdout] 65 | fn on_rsp_error(&mut self, pRspInfo: *mut CThostFtdcRspInfoField, nRequestID: ::std::os::raw::c_int, bIsLast: bool) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `b_is_last` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pDepthMarketData` should have a snake case name [INFO] [stdout] --> examples/mdapi.rs:69:44 [INFO] [stdout] | [INFO] [stdout] 69 | fn on_rtn_depth_market_data(&mut self, pDepthMarketData: *mut CThostFtdcDepthMarketDataField) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `p_depth_market_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pDepthMarketData` should have a snake case name [INFO] [stdout] --> examples/mdapi.rs:73:17 [INFO] [stdout] | [INFO] [stdout] 73 | let pDepthMarketData = unsafe { &mut *pDepthMarketData }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `p_depth_market_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> examples/tdapi.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Config { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | nm_addr: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 21 | user_info: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 22 | product_info: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 23 | auth_code: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 24 | app_id: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | broker_id: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 29 | user_id: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 30 | password: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 31 | [INFO] [stdout] 32 | qry_freq: i32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` 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: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 21.63s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v5.1.2 [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" "4dcf792c946bb376d7ffc7f890b84a322332975db44ba8e1343a9e0ed7e1c981", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4dcf792c946bb376d7ffc7f890b84a322332975db44ba8e1343a9e0ed7e1c981", kill_on_drop: false }` [INFO] [stdout] 4dcf792c946bb376d7ffc7f890b84a322332975db44ba8e1343a9e0ed7e1c981