[INFO] cloning repository https://github.com/suphakin-th/trading_signal [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/suphakin-th/trading_signal" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuphakin-th%2Ftrading_signal", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuphakin-th%2Ftrading_signal'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ed537fcfcb04af39085b094c0169f8f934bf4fc7 [INFO] testing suphakin-th/trading_signal against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuphakin-th%2Ftrading_signal" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-6-tc1/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/suphakin-th/trading_signal [INFO] finished tweaking git repo https://github.com/suphakin-th/trading_signal [INFO] tweaked toml for git repo https://github.com/suphakin-th/trading_signal written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/suphakin-th/trading_signal 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] crate git repo https://github.com/suphakin-th/trading_signal 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded jwalk v0.8.1 [INFO] [stderr] Downloaded dircpy v0.3.19 [INFO] [stderr] Downloaded zmq-sys v0.12.0 [INFO] [stderr] Downloaded proc-macro2 v1.0.88 [INFO] [stderr] Downloaded zmq v0.10.0 [INFO] [stderr] Downloaded serde_json v1.0.131 [INFO] [stderr] Downloaded rustls v0.23.15 [INFO] [stderr] Downloaded zeromq-src v0.2.6+4.3.4 [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] 92b40ed15d1cb131f7a3c39bad1807d47bc50b854b44cf57d1288f9cb65960db [INFO] running `Command { std: "docker" "start" "-a" "92b40ed15d1cb131f7a3c39bad1807d47bc50b854b44cf57d1288f9cb65960db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "92b40ed15d1cb131f7a3c39bad1807d47bc50b854b44cf57d1288f9cb65960db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "92b40ed15d1cb131f7a3c39bad1807d47bc50b854b44cf57d1288f9cb65960db", kill_on_drop: false }` [INFO] [stdout] 92b40ed15d1cb131f7a3c39bad1807d47bc50b854b44cf57d1288f9cb65960db [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] 8967d11d3dfa1885e663bebb3f1fd3bd88dc682b09048dbe11c095fa900d9e94 [INFO] running `Command { std: "docker" "start" "-a" "8967d11d3dfa1885e663bebb3f1fd3bd88dc682b09048dbe11c095fa900d9e94", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.88 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling libc v0.2.161 [INFO] [stderr] Compiling hashbrown v0.15.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling winnow v0.6.20 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling bytes v1.7.2 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling target-lexicon v0.12.16 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling version-compare v0.2.0 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling openssl v0.10.68 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling cfg-expr v0.15.8 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling serde_json v1.0.131 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling crossbeam-channel v0.5.13 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling indexmap v2.6.0 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling crossbeam-deque v0.8.5 [INFO] [stderr] Compiling anstyle-parse v0.2.5 [INFO] [stderr] Compiling anstyle v1.0.8 [INFO] [stderr] Compiling colorchoice v1.0.2 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Compiling unicode-bidi v0.3.17 [INFO] [stderr] Compiling anstyle-query v1.1.1 [INFO] [stderr] Compiling anstream v0.6.15 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling cc v1.1.31 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling crossbeam v0.8.4 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling overload v0.1.1 [INFO] [stderr] Compiling rustls-pki-types v1.10.0 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling zmq v0.10.0 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling clap_lex v0.7.2 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling nu-ansi-term v0.46.0 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling sync_wrapper v1.0.1 [INFO] [stderr] Compiling clap_builder v4.5.20 [INFO] [stderr] Compiling ipnet v2.10.1 [INFO] [stderr] Compiling pathdiff v0.2.2 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling serde_spanned v0.6.8 [INFO] [stderr] Compiling toml_edit v0.22.22 [INFO] [stderr] Compiling jwalk v0.8.1 [INFO] [stderr] Compiling dircpy v0.3.19 [INFO] [stderr] Compiling zeromq-src v0.2.6+4.3.4 [INFO] [stderr] Compiling toml v0.8.19 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling snafu-derive v0.8.5 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling clap_derive v4.5.18 [INFO] [stderr] Compiling system-deps v6.2.2 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling zmq-sys v0.12.0 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling snafu v0.8.5 [INFO] [stderr] Compiling clap v4.5.20 [INFO] [stderr] Compiling tokio-util v0.7.12 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling h2 v0.4.6 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling tracing-serde v0.1.3 [INFO] [stderr] Compiling tracing-subscriber v0.3.18 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling hyper v1.5.0 [INFO] [stderr] Compiling hyper-util v0.1.9 [INFO] [stderr] Compiling config v0.14.0 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.8 [INFO] [stderr] Compiling base v0.1.0 (/opt/rustwide/workdir/base) [INFO] [stderr] Compiling trad_sig v0.1.0 (/opt/rustwide/workdir/trad_sig) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SignalError` [INFO] [stdout] --> trad_sig/src/app.rs:30:60 [INFO] [stdout] | [INFO] [stdout] 30 | let mut send = |sig| snd.send(sig).map(|_| ()).map_err(SignalError::Broadcast); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `SignalError` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 1 + use crate::app::error::SignalError; [INFO] [stdout] | [INFO] [stdout] 1 + use base::error::SignalError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SignalError` [INFO] [stdout] --> trad_sig/src/app.rs:31:66 [INFO] [stdout] | [INFO] [stdout] 31 | let mut sigint = unix::signal(SignalKind::interrupt()).map_err(SignalError::Handler)?; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `SignalError` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 1 + use crate::app::error::SignalError; [INFO] [stdout] | [INFO] [stdout] 1 + use base::error::SignalError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SignalError` [INFO] [stdout] --> trad_sig/src/app.rs:32:66 [INFO] [stdout] | [INFO] [stdout] 32 | let mut sigterm = unix::signal(SignalKind::terminate()).map_err(SignalError::Handler)?; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `SignalError` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 1 + use crate::app::error::SignalError; [INFO] [stdout] | [INFO] [stdout] 1 + use base::error::SignalError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SignalError` in this scope [INFO] [stdout] --> trad_sig/src/app.rs:48:34 [INFO] [stdout] | [INFO] [stdout] 48 | impl Future>>, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 1 + use crate::app::error::SignalError; [INFO] [stdout] | [INFO] [stdout] 1 + use base::error::SignalError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `sig_svc_err` in this scope [INFO] [stdout] --> trad_sig/src/app.rs:90:7 [INFO] [stdout] | [INFO] [stdout] 90 | sig_svc_err = true; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to introduce a new binding [INFO] [stdout] | [INFO] [stdout] 90 | let sig_svc_err = true; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `force_abort` in this scope [INFO] [stdout] --> trad_sig/src/app.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | force_abort = true; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to introduce a new binding [INFO] [stdout] | [INFO] [stdout] 93 | let force_abort = true; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SendUnitSnafu` in module `error` [INFO] [stdout] --> trad_sig/src/app.rs:99:59 [INFO] [stdout] | [INFO] [stdout] 99 | if let Err(e) = interval_tx.send(()).context(error::SendUnitSnafu) { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `force_abort` in this scope [INFO] [stdout] --> trad_sig/src/app.rs:108:6 [INFO] [stdout] | [INFO] [stdout] 108 | if !force_abort { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `sig` [INFO] [stdout] --> trad_sig/src/app.rs:74:38 [INFO] [stdout] | [INFO] [stdout] 74 | let (sig_tx, mut sig_rx, sig_svc) = sig::shutdown_service(32); [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `sig` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `sig`, use `cargo add sig` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `context` found for enum `Result` in the current scope [INFO] [stdout] --> trad_sig/src/app.rs:99:44 [INFO] [stdout] | [INFO] [stdout] 99 | if let Err(e) = interval_tx.send(()).context(error::SendUnitSnafu) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/snafu-0.8.5/src/lib.rs:581:8 [INFO] [stdout] | [INFO] [stdout] 581 | fn context(self, context: C) -> Result [INFO] [stdout] | ------- the method is available for `Result>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `ResultExt` which provides `context` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use snafu::ResultExt; [INFO] [stdout] | [INFO] [stdout] help: there is a method `with_context` with a similar name [INFO] [stdout] | [INFO] [stdout] 99 | if let Err(e) = interval_tx.send(()).with_context(error::SendUnitSnafu) { [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> trad_sig/src/app.rs:131:2 [INFO] [stdout] | [INFO] [stdout] 122 | / loop { [INFO] [stdout] 123 | | let s_m = format!("Hello Subscriber, message #{}", count); [INFO] [stdout] 124 | | [INFO] [stdout] 125 | | publisher.send_message(&s_m); [INFO] [stdout] ... | [INFO] [stdout] 128 | | thread::sleep(Duration::from_secs(2)); [INFO] [stdout] 129 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 130 | [INFO] [stdout] 131 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `trad_sig` (lib) due to 10 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "8967d11d3dfa1885e663bebb3f1fd3bd88dc682b09048dbe11c095fa900d9e94", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8967d11d3dfa1885e663bebb3f1fd3bd88dc682b09048dbe11c095fa900d9e94", kill_on_drop: false }` [INFO] [stdout] 8967d11d3dfa1885e663bebb3f1fd3bd88dc682b09048dbe11c095fa900d9e94