[INFO] cloning repository https://github.com/JeninSutradhar/time_duration_api [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JeninSutradhar/time_duration_api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJeninSutradhar%2Ftime_duration_api", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJeninSutradhar%2Ftime_duration_api'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a109c74e5c0675e0e2084fc09cb616ebcb27ecd6 [INFO] checking JeninSutradhar/time_duration_api/a109c74e5c0675e0e2084fc09cb616ebcb27ecd6 against try#f827120c9528a1a0e4c9881169eacd52170f9a08 for pr-130367 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJeninSutradhar%2Ftime_duration_api" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/JeninSutradhar/time_duration_api on toolchain f827120c9528a1a0e4c9881169eacd52170f9a08 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f827120c9528a1a0e4c9881169eacd52170f9a08" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/JeninSutradhar/time_duration_api [INFO] finished tweaking git repo https://github.com/JeninSutradhar/time_duration_api [INFO] tweaked toml for git repo https://github.com/JeninSutradhar/time_duration_api written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/JeninSutradhar/time_duration_api 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" "+f827120c9528a1a0e4c9881169eacd52170f9a08" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+f827120c9528a1a0e4c9881169eacd52170f9a08" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] edfb9df1da39662b4f0ff42e554daac5310de631d20555498766d0c6968abefc [INFO] running `Command { std: "docker" "start" "-a" "edfb9df1da39662b4f0ff42e554daac5310de631d20555498766d0c6968abefc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "edfb9df1da39662b4f0ff42e554daac5310de631d20555498766d0c6968abefc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "edfb9df1da39662b4f0ff42e554daac5310de631d20555498766d0c6968abefc", kill_on_drop: false }` [INFO] [stdout] edfb9df1da39662b4f0ff42e554daac5310de631d20555498766d0c6968abefc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+f827120c9528a1a0e4c9881169eacd52170f9a08" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 47f19df3c62ae97020727127f95b5c4d7970ead36b02ca60e3923428f148761a [INFO] running `Command { std: "docker" "start" "-a" "47f19df3c62ae97020727127f95b5c4d7970ead36b02ca60e3923428f148761a", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking chrono v0.4.34 [INFO] [stderr] Checking time_duration_api v0.1.6 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `TimeZone` [INFO] [stdout] --> src/lib.rs:4:56 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::{DateTime, FixedOffset, NaiveDateTime, TimeZone, Utc}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TimeZone` [INFO] [stdout] --> src/lib.rs:4:56 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::{DateTime, FixedOffset, NaiveDateTime, TimeZone, Utc}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `format` [INFO] [stdout] --> src/lib.rs:239:45 [INFO] [stdout] | [INFO] [stdout] 239 | pub fn from_str(duration_str: &str, format: &str) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_format` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `format` [INFO] [stdout] --> src/lib.rs:239:45 [INFO] [stdout] | [INFO] [stdout] 239 | pub fn from_str(duration_str: &str, format: &str) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_format` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | mod lib; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | mod lib; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TimeZone` [INFO] [stdout] --> src/lib.rs:4:56 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::{DateTime, FixedOffset, NaiveDateTime, TimeZone, Utc}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `format` [INFO] [stdout] --> src/lib.rs:239:45 [INFO] [stdout] | [INFO] [stdout] 239 | pub fn from_str(duration_str: &str, format: &str) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_format` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `to_timezone` and `from_str` are never used [INFO] [stdout] --> src/lib.rs:124:16 [INFO] [stdout] | [INFO] [stdout] 15 | impl Time { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn to_timezone(&self, timezone: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | pub fn from_str(time_str: &str, format: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/lib.rs:194:16 [INFO] [stdout] | [INFO] [stdout] 169 | impl CustomDuration { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 194 | pub fn from_millis(millis: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 209 | pub fn from_micros(micros: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 224 | pub fn from_nanos(nanos: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 239 | pub fn from_str(duration_str: &str, format: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 247 | pub fn add(&self, other: &CustomDuration) -> CustomDuration { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 254 | pub fn sub(&self, other: &CustomDuration) -> CustomDuration { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 275 | pub fn round_secs(&self) -> CustomDuration { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 287 | pub fn as_millis(&self) -> u128 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 292 | pub fn as_micros(&self) -> u128 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 297 | pub fn as_nanos(&self) -> u128 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 302 | pub fn format_human_readable(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TimeZone` [INFO] [stdout] --> src/lib.rs:4:56 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::{DateTime, FixedOffset, NaiveDateTime, TimeZone, Utc}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `format` [INFO] [stdout] --> src/lib.rs:239:45 [INFO] [stdout] | [INFO] [stdout] 239 | pub fn from_str(duration_str: &str, format: &str) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_format` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `to_timezone` and `from_str` are never used [INFO] [stdout] --> src/lib.rs:124:16 [INFO] [stdout] | [INFO] [stdout] 15 | impl Time { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn to_timezone(&self, timezone: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | pub fn from_str(time_str: &str, format: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/lib.rs:194:16 [INFO] [stdout] | [INFO] [stdout] 169 | impl CustomDuration { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 194 | pub fn from_millis(millis: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 209 | pub fn from_micros(micros: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 224 | pub fn from_nanos(nanos: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 239 | pub fn from_str(duration_str: &str, format: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 247 | pub fn add(&self, other: &CustomDuration) -> CustomDuration { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 254 | pub fn sub(&self, other: &CustomDuration) -> CustomDuration { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 275 | pub fn round_secs(&self) -> CustomDuration { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 287 | pub fn as_millis(&self) -> u128 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 292 | pub fn as_micros(&self) -> u128 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 297 | pub fn as_nanos(&self) -> u128 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 302 | pub fn format_human_readable(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.48s [INFO] running `Command { std: "docker" "inspect" "47f19df3c62ae97020727127f95b5c4d7970ead36b02ca60e3923428f148761a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "47f19df3c62ae97020727127f95b5c4d7970ead36b02ca60e3923428f148761a", kill_on_drop: false }` [INFO] [stdout] 47f19df3c62ae97020727127f95b5c4d7970ead36b02ca60e3923428f148761a