[INFO] cloning repository https://github.com/TerenceGe/rust_data_api [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TerenceGe/rust_data_api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTerenceGe%2Frust_data_api", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTerenceGe%2Frust_data_api'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8612a28f0fb0c2d7694dcf2c98b6fbe4d7d79391 [INFO] checking TerenceGe/rust_data_api against try#3e22d1f9053c0fc87629b3c6d5d9567856368e5d for pr-78714 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTerenceGe%2Frust_data_api" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/TerenceGe/rust_data_api on toolchain 3e22d1f9053c0fc87629b3c6d5d9567856368e5d [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e22d1f9053c0fc87629b3c6d5d9567856368e5d" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/TerenceGe/rust_data_api [INFO] finished tweaking git repo https://github.com/TerenceGe/rust_data_api [INFO] tweaked toml for git repo https://github.com/TerenceGe/rust_data_api written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/TerenceGe/rust_data_api already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e22d1f9053c0fc87629b3c6d5d9567856368e5d" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] error: the lock file /workspace/builds/worker-9/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e22d1f9053c0fc87629b3c6d5d9567856368e5d" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e22d1f9053c0fc87629b3c6d5d9567856368e5d" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+3e22d1f9053c0fc87629b3c6d5d9567856368e5d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 16f4e28c8721b949a0d8f3312c1cab5de1370aff133b3d58972f2d3ebc7c5f33 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "16f4e28c8721b949a0d8f3312c1cab5de1370aff133b3d58972f2d3ebc7c5f33", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "16f4e28c8721b949a0d8f3312c1cab5de1370aff133b3d58972f2d3ebc7c5f33", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "16f4e28c8721b949a0d8f3312c1cab5de1370aff133b3d58972f2d3ebc7c5f33", kill_on_drop: false }` [INFO] [stdout] 16f4e28c8721b949a0d8f3312c1cab5de1370aff133b3d58972f2d3ebc7c5f33 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+3e22d1f9053c0fc87629b3c6d5d9567856368e5d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] af386a4b9d8027c16b5a2a81994779adca7850642ef1ea28a7e9f6a306d7b919 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "af386a4b9d8027c16b5a2a81994779adca7850642ef1ea28a7e9f6a306d7b919", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.48 [INFO] [stderr] Checking futures-core v0.3.8 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Checking pin-project-lite v0.1.11 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Checking futures-io v0.3.8 [INFO] [stderr] Checking once_cell v1.5.2 [INFO] [stderr] Checking itoa v0.4.6 [INFO] [stderr] Checking bytes v0.5.6 [INFO] [stderr] Checking cache-padded v1.1.1 [INFO] [stderr] Checking safemem v0.3.3 [INFO] [stderr] Checking waker-fn v1.1.0 [INFO] [stderr] Checking parking v2.0.0 [INFO] [stderr] Checking fastrand v1.4.0 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling const_fn v0.4.3 [INFO] [stderr] Checking futures-sink v0.3.8 [INFO] [stderr] Compiling serde v1.0.117 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stderr] Checking vec-arena v1.0.0 [INFO] [stderr] Checking async-task v4.0.3 [INFO] [stderr] Compiling serde_json v1.0.59 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Checking event-listener v2.5.1 [INFO] [stderr] Checking remove_dir_all v0.5.3 [INFO] [stderr] Checking hashbrown v0.9.1 [INFO] [stderr] Checking atomic-waker v1.0.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking try-lock v0.2.3 [INFO] [stderr] Checking httpdate v0.3.2 [INFO] [stderr] Checking dtoa v0.4.6 [INFO] [stderr] Checking route-recognizer v0.1.13 [INFO] [stderr] Checking tower-service v0.3.0 [INFO] [stderr] Compiling unicase v1.4.2 [INFO] [stderr] Checking tracing-core v0.1.17 [INFO] [stderr] Checking tinyvec v1.0.1 [INFO] [stderr] Compiling standback v0.2.11 [INFO] [stderr] Compiling time v0.2.22 [INFO] [stderr] Checking futures-channel v0.3.8 [INFO] [stderr] Checking concurrent-queue v1.2.2 [INFO] [stderr] Checking futures-task v0.3.8 [INFO] [stderr] Checking async-mutex v1.4.0 [INFO] [stderr] Checking form_urlencoded v1.0.0 [INFO] [stderr] Checking http v0.2.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling indexmap v1.6.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.0 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Checking base64 v0.9.3 [INFO] [stderr] Checking async-channel v1.5.1 [INFO] [stderr] Checking log v0.3.9 [INFO] [stderr] Checking tracing v0.1.21 [INFO] [stderr] Checking kv-log-macro v1.0.7 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking futures-lite v1.11.2 [INFO] [stderr] Checking twoway v0.1.8 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking mime v0.2.6 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling phf_shared v0.7.24 [INFO] [stderr] Checking unicode-normalization v0.1.14 [INFO] [stderr] Compiling phf v0.7.24 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking net2 v0.2.35 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking nb-connect v1.0.2 [INFO] [stderr] Checking polling v2.0.2 [INFO] [stderr] Checking memchr v1.0.2 [INFO] [stderr] Checking socket2 v0.3.16 [INFO] [stderr] Checking async-executor v1.4.0 [INFO] [stderr] Checking blocking v1.0.2 [INFO] [stderr] Checking mio v0.6.22 [INFO] [stderr] Checking buf_redux v0.6.3 [INFO] [stderr] Checking async-io v1.2.0 [INFO] [stderr] Checking num-complex v0.1.43 [INFO] [stderr] Checking idna v0.1.5 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking async-global-executor v1.4.3 [INFO] [stderr] Checking async-std v1.7.0 [INFO] [stderr] Checking num-bigint v0.1.44 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking tempdir v0.3.7 [INFO] [stderr] Compiling phf_generator v0.7.24 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Compiling phf_codegen v0.7.24 [INFO] [stderr] Checking tokio v0.2.23 [INFO] [stderr] Checking http-body v0.3.1 [INFO] [stderr] Checking url v1.7.2 [INFO] [stderr] Compiling mime_guess v1.8.8 [INFO] [stderr] Checking url v2.2.0 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking hyper v0.10.16 [INFO] [stderr] Checking multipart v0.13.6 [INFO] [stderr] Checking iron v0.6.1 [INFO] [stderr] Checking persistent v0.4.0 [INFO] [stderr] Checking router v0.6.0 [INFO] [stderr] Checking bodyparser v0.8.0 [INFO] [stderr] Checking urlencoded v0.6.0 [INFO] [stderr] Checking params v0.8.0 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Compiling pin-project-internal v1.0.1 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Compiling async-trait v0.1.41 [INFO] [stderr] Checking time-macros v0.1.1 [INFO] [stderr] Checking pin-project v1.0.1 [INFO] [stderr] Checking futures-util v0.3.8 [INFO] [stderr] Checking pin-project v0.4.27 [INFO] [stderr] Checking tracing-futures v0.2.4 [INFO] [stderr] Checking h2 v0.2.7 [INFO] [stderr] Checking combine v4.3.2 [INFO] [stderr] Checking hyper v0.13.9 [INFO] [stderr] Checking redis v0.17.0 [INFO] [stderr] Checking data_api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:38:18 [INFO] [stdout] | [INFO] [stdout] 38 | let client = try!(redis::Client::open("redis://127.0.0.1:6379")); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:39:15 [INFO] [stdout] | [INFO] [stdout] 39 | let con = try!(client.get_connection()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:42:23 [INFO] [stdout] | [INFO] [stdout] 42 | *ticker = try!(con.get("ticker_btccny")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:45:23 [INFO] [stdout] | [INFO] [stdout] 45 | *ticker = try!(con.get("ticker_ltccny")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:48:23 [INFO] [stdout] | [INFO] [stdout] 48 | *ticker = try!(con.get("ticker_ltcbtc")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:51:42 [INFO] [stdout] | [INFO] [stdout] 51 | let ticker_btccny : String = try!(con.get("ticker_btccny")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:52:42 [INFO] [stdout] | [INFO] [stdout] 52 | let ticker_ltccny : String = try!(con.get("ticker_ltccny")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:53:42 [INFO] [stdout] | [INFO] [stdout] 53 | let ticker_ltcbtc : String = try!(con.get("ticker_ltcbtc")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `time::precise_time_ns`: Use `OffsetDateTime::now() - OffsetDateTime::unix_epoch()` to get a `Duration` since a known epoch. [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use time::precise_time_ns; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `time::precise_time_ns`: Use `OffsetDateTime::now() - OffsetDateTime::unix_epoch()` to get a `Duration` since a known epoch. [INFO] [stdout] --> src/main.rs:24:47 [INFO] [stdout] | [INFO] [stdout] 24 | req.extensions.insert::(precise_time_ns()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `time::precise_time_ns`: Use `OffsetDateTime::now() - OffsetDateTime::unix_epoch()` to get a `Duration` since a known epoch. [INFO] [stdout] --> src/main.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | let delta = precise_time_ns() - *req.extensions.get::().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:38:18 [INFO] [stdout] | [INFO] [stdout] 38 | let client = try!(redis::Client::open("redis://127.0.0.1:6379")); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:39:15 [INFO] [stdout] | [INFO] [stdout] 39 | let con = try!(client.get_connection()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:42:23 [INFO] [stdout] | [INFO] [stdout] 42 | *ticker = try!(con.get("ticker_btccny")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:45:23 [INFO] [stdout] | [INFO] [stdout] 45 | *ticker = try!(con.get("ticker_ltccny")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:48:23 [INFO] [stdout] | [INFO] [stdout] 48 | *ticker = try!(con.get("ticker_ltcbtc")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:51:42 [INFO] [stdout] | [INFO] [stdout] 51 | let ticker_btccny : String = try!(con.get("ticker_btccny")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:52:42 [INFO] [stdout] | [INFO] [stdout] 52 | let ticker_ltccny : String = try!(con.get("ticker_ltccny")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:53:42 [INFO] [stdout] | [INFO] [stdout] 53 | let ticker_ltcbtc : String = try!(con.get("ticker_ltcbtc")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right_matches`: superseded by `trim_end_matches` [INFO] [stdout] --> src/main.rs:55:66 [INFO] [stdout] | [INFO] [stdout] 55 | ticker_btccny.replace("ticker", "ticker_btccny").trim_right_matches('}'), "}", [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right_matches`: superseded by `trim_end_matches` [INFO] [stdout] --> src/main.rs:56:66 [INFO] [stdout] | [INFO] [stdout] 56 | ticker_ltccny.replace("ticker", "ticker_ltccny").trim_right_matches('}').trim_left_matches('{'), "}", [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left_matches`: superseded by `trim_start_matches` [INFO] [stdout] --> src/main.rs:56:90 [INFO] [stdout] | [INFO] [stdout] 56 | ticker_ltccny.replace("ticker", "ticker_ltccny").trim_right_matches('}').trim_left_matches('{'), "}", [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right_matches`: superseded by `trim_end_matches` [INFO] [stdout] --> src/main.rs:57:66 [INFO] [stdout] | [INFO] [stdout] 57 | ticker_ltcbtc.replace("ticker", "ticker_ltcbtc").trim_right_matches('}').trim_left_matches('{'), "}", "}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left_matches`: superseded by `trim_start_matches` [INFO] [stdout] --> src/main.rs:57:90 [INFO] [stdout] | [INFO] [stdout] 57 | ticker_ltcbtc.replace("ticker", "ticker_ltcbtc").trim_right_matches('}').trim_left_matches('{'), "}", "}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `iron::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:72:62 [INFO] [stdout] | [INFO] [stdout] 72 | println!(" {}: {}", err.category(), err.description()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `time::precise_time_ns`: Use `OffsetDateTime::now() - OffsetDateTime::unix_epoch()` to get a `Duration` since a known epoch. [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use time::precise_time_ns; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `time::precise_time_ns`: Use `OffsetDateTime::now() - OffsetDateTime::unix_epoch()` to get a `Duration` since a known epoch. [INFO] [stdout] --> src/main.rs:24:47 [INFO] [stdout] | [INFO] [stdout] 24 | req.extensions.insert::(precise_time_ns()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `time::precise_time_ns`: Use `OffsetDateTime::now() - OffsetDateTime::unix_epoch()` to get a `Duration` since a known epoch. [INFO] [stdout] --> src/main.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | let delta = precise_time_ns() - *req.extensions.get::().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> src/main.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | router.get("/ticker", move |r: &mut Request| fetch_ticker(r)); [INFO] [stdout] | ^^^ --------- -------------------------------------- supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `data_api` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right_matches`: superseded by `trim_end_matches` [INFO] [stdout] --> src/main.rs:55:66 [INFO] [stdout] | [INFO] [stdout] 55 | ticker_btccny.replace("ticker", "ticker_btccny").trim_right_matches('}'), "}", [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right_matches`: superseded by `trim_end_matches` [INFO] [stdout] --> src/main.rs:56:66 [INFO] [stdout] | [INFO] [stdout] 56 | ticker_ltccny.replace("ticker", "ticker_ltccny").trim_right_matches('}').trim_left_matches('{'), "}", [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left_matches`: superseded by `trim_start_matches` [INFO] [stdout] --> src/main.rs:56:90 [INFO] [stdout] | [INFO] [stdout] 56 | ticker_ltccny.replace("ticker", "ticker_ltccny").trim_right_matches('}').trim_left_matches('{'), "}", [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right_matches`: superseded by `trim_end_matches` [INFO] [stdout] --> src/main.rs:57:66 [INFO] [stdout] | [INFO] [stdout] 57 | ticker_ltcbtc.replace("ticker", "ticker_ltcbtc").trim_right_matches('}').trim_left_matches('{'), "}", "}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left_matches`: superseded by `trim_start_matches` [INFO] [stdout] --> src/main.rs:57:90 [INFO] [stdout] | [INFO] [stdout] 57 | ticker_ltcbtc.replace("ticker", "ticker_ltcbtc").trim_right_matches('}').trim_left_matches('{'), "}", "}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `iron::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:72:62 [INFO] [stdout] | [INFO] [stdout] 72 | println!(" {}: {}", err.category(), err.description()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> src/main.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | router.get("/ticker", move |r: &mut Request| fetch_ticker(r)); [INFO] [stdout] | ^^^ --------- -------------------------------------- supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "af386a4b9d8027c16b5a2a81994779adca7850642ef1ea28a7e9f6a306d7b919", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "af386a4b9d8027c16b5a2a81994779adca7850642ef1ea28a7e9f6a306d7b919", kill_on_drop: false }` [INFO] [stdout] af386a4b9d8027c16b5a2a81994779adca7850642ef1ea28a7e9f6a306d7b919