[INFO] fetching crate relativetime 0.1.4... [INFO] building relativetime-0.1.4 against try#4987e9d4227139400384ab59296ffee3b0fb1183 for pr-146237-2 [INFO] extracting crate relativetime 0.1.4 into /workspace/builds/worker-0-tc2/source [INFO] started tweaking crates.io crate relativetime 0.1.4 [INFO] finished tweaking crates.io crate relativetime 0.1.4 [INFO] tweaked toml for crates.io crate relativetime 0.1.4 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate relativetime 0.1.4 on toolchain 4987e9d4227139400384ab59296ffee3b0fb1183 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 33 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "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" "+4987e9d4227139400384ab59296ffee3b0fb1183" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 179d6df031a4e1f096891fafe59ecc8a4705040159212faf18cb4cf63c96b6ab [INFO] running `Command { std: "docker" "start" "-a" "179d6df031a4e1f096891fafe59ecc8a4705040159212faf18cb4cf63c96b6ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "179d6df031a4e1f096891fafe59ecc8a4705040159212faf18cb4cf63c96b6ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "179d6df031a4e1f096891fafe59ecc8a4705040159212faf18cb4cf63c96b6ab", kill_on_drop: false }` [INFO] [stdout] 179d6df031a4e1f096891fafe59ecc8a4705040159212faf18cb4cf63c96b6ab [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" "+4987e9d4227139400384ab59296ffee3b0fb1183" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3a00922c8e53f9fc037ff4df9167f75f78c9e9ae4b4e8b7fd21a7bfd320acbe6 [INFO] running `Command { std: "docker" "start" "-a" "3a00922c8e53f9fc037ff4df9167f75f78c9e9ae4b4e8b7fd21a7bfd320acbe6", kill_on_drop: false }` [INFO] [stderr] Compiling humantime v2.3.0 [INFO] [stderr] Compiling relativetime v0.1.4 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.36s [INFO] running `Command { std: "docker" "inspect" "3a00922c8e53f9fc037ff4df9167f75f78c9e9ae4b4e8b7fd21a7bfd320acbe6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3a00922c8e53f9fc037ff4df9167f75f78c9e9ae4b4e8b7fd21a7bfd320acbe6", kill_on_drop: false }` [INFO] [stdout] 3a00922c8e53f9fc037ff4df9167f75f78c9e9ae4b4e8b7fd21a7bfd320acbe6 [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" "+4987e9d4227139400384ab59296ffee3b0fb1183" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b842234368475665d555f268fa76546e2aef30de15fefdf6d426b670d468f0b9 [INFO] running `Command { std: "docker" "start" "-a" "b842234368475665d555f268fa76546e2aef30de15fefdf6d426b670d468f0b9", kill_on_drop: false }` [INFO] [stderr] Compiling relativetime v0.1.4 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `chrono` [INFO] [stdout] --> src/lib.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | use chrono::Utc; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `chrono` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `chrono`, use `cargo add chrono` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `chrono` [INFO] [stdout] --> src/lib.rs:150:17 [INFO] [stdout] | [INFO] [stdout] 150 | let d = chrono::Duration::seconds(10); [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `chrono` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `chrono`, use `cargo add chrono` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 98 + use crate::tests::Duration; [INFO] [stdout] | [INFO] [stdout] 98 + use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] 98 + use humantime::Duration; [INFO] [stdout] | [INFO] [stdout] help: if you import `Duration`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 150 - let d = chrono::Duration::seconds(10); [INFO] [stdout] 150 + let d = Duration::seconds(10); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `chrono` [INFO] [stdout] --> src/lib.rs:153:17 [INFO] [stdout] | [INFO] [stdout] 153 | let d = chrono::Duration::minutes(-10); [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `chrono` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `chrono`, use `cargo add chrono` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 98 + use crate::tests::Duration; [INFO] [stdout] | [INFO] [stdout] 98 + use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] 98 + use humantime::Duration; [INFO] [stdout] | [INFO] [stdout] help: if you import `Duration`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 153 - let d = chrono::Duration::minutes(-10); [INFO] [stdout] 153 + let d = Duration::minutes(-10); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `chrono` [INFO] [stdout] --> src/lib.rs:159:32 [INFO] [stdout] | [INFO] [stdout] 159 | let d = Utc::now().sub(chrono::Duration::days(1)); [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `chrono` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `chrono`, use `cargo add chrono` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 98 + use crate::tests::Duration; [INFO] [stdout] | [INFO] [stdout] 98 + use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] 98 + use humantime::Duration; [INFO] [stdout] | [INFO] [stdout] help: if you import `Duration`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 159 - let d = Utc::now().sub(chrono::Duration::days(1)); [INFO] [stdout] 159 + let d = Utc::now().sub(Duration::days(1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Add` [INFO] [stdout] --> src/lib.rs:98:20 [INFO] [stdout] | [INFO] [stdout] 98 | use std::ops::{Add, Sub}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `relativetime` (lib test) due to 4 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "b842234368475665d555f268fa76546e2aef30de15fefdf6d426b670d468f0b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b842234368475665d555f268fa76546e2aef30de15fefdf6d426b670d468f0b9", kill_on_drop: false }` [INFO] [stdout] b842234368475665d555f268fa76546e2aef30de15fefdf6d426b670d468f0b9