[INFO] fetching crate relativetime 0.1.4... [INFO] building relativetime-0.1.4 against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] extracting crate relativetime 0.1.4 into /workspace/builds/worker-0-tc1/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-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate relativetime 0.1.4 on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e69309723127f9ad123eb847a7eddaaa2264d8f44da78c4a433aa26c10f7fc75 [INFO] running `Command { std: "docker" "start" "-a" "e69309723127f9ad123eb847a7eddaaa2264d8f44da78c4a433aa26c10f7fc75", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e69309723127f9ad123eb847a7eddaaa2264d8f44da78c4a433aa26c10f7fc75", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e69309723127f9ad123eb847a7eddaaa2264d8f44da78c4a433aa26c10f7fc75", kill_on_drop: false }` [INFO] [stdout] e69309723127f9ad123eb847a7eddaaa2264d8f44da78c4a433aa26c10f7fc75 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0fe7b7a10e4f064322f70f9bc5dffbe6956fc6891bb170bec3d22da73a32bdac [INFO] running `Command { std: "docker" "start" "-a" "0fe7b7a10e4f064322f70f9bc5dffbe6956fc6891bb170bec3d22da73a32bdac", 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.38s [INFO] running `Command { std: "docker" "inspect" "0fe7b7a10e4f064322f70f9bc5dffbe6956fc6891bb170bec3d22da73a32bdac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0fe7b7a10e4f064322f70f9bc5dffbe6956fc6891bb170bec3d22da73a32bdac", kill_on_drop: false }` [INFO] [stdout] 0fe7b7a10e4f064322f70f9bc5dffbe6956fc6891bb170bec3d22da73a32bdac [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] edc8fbd8eefabb2b40e60f66f68078eeadbd300aed0bc5c881975d75ddba8061 [INFO] running `Command { std: "docker" "start" "-a" "edc8fbd8eefabb2b40e60f66f68078eeadbd300aed0bc5c881975d75ddba8061", 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" "edc8fbd8eefabb2b40e60f66f68078eeadbd300aed0bc5c881975d75ddba8061", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "edc8fbd8eefabb2b40e60f66f68078eeadbd300aed0bc5c881975d75ddba8061", kill_on_drop: false }` [INFO] [stdout] edc8fbd8eefabb2b40e60f66f68078eeadbd300aed0bc5c881975d75ddba8061