[INFO] fetching crate relativetime 0.1.4... [INFO] testing relativetime-0.1.4 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate relativetime 0.1.4 into /workspace/builds/worker-4-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-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate relativetime 0.1.4 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] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] e8d5c08fae7299af0b19cd8421e1111024b5a85aa65135472d52c83766488ea1 [INFO] running `Command { std: "docker" "start" "-a" "e8d5c08fae7299af0b19cd8421e1111024b5a85aa65135472d52c83766488ea1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e8d5c08fae7299af0b19cd8421e1111024b5a85aa65135472d52c83766488ea1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e8d5c08fae7299af0b19cd8421e1111024b5a85aa65135472d52c83766488ea1", kill_on_drop: false }` [INFO] [stdout] e8d5c08fae7299af0b19cd8421e1111024b5a85aa65135472d52c83766488ea1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] c07838472fbe58be529db594463ae059fc289746fb6a3e5fb9193959711cca66 [INFO] running `Command { std: "docker" "start" "-a" "c07838472fbe58be529db594463ae059fc289746fb6a3e5fb9193959711cca66", kill_on_drop: false }` [INFO] [stderr] Compiling humantime v2.2.0 [INFO] [stderr] Compiling relativetime v0.1.4 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.48s [INFO] running `Command { std: "docker" "inspect" "c07838472fbe58be529db594463ae059fc289746fb6a3e5fb9193959711cca66", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c07838472fbe58be529db594463ae059fc289746fb6a3e5fb9193959711cca66", kill_on_drop: false }` [INFO] [stdout] c07838472fbe58be529db594463ae059fc289746fb6a3e5fb9193959711cca66 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4d3f83b8ae24502d5db290cb3df257950b7d2fd4e953d8b97a42272d2ac7365d [INFO] running `Command { std: "docker" "start" "-a" "4d3f83b8ae24502d5db290cb3df257950b7d2fd4e953d8b97a42272d2ac7365d", 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" "4d3f83b8ae24502d5db290cb3df257950b7d2fd4e953d8b97a42272d2ac7365d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4d3f83b8ae24502d5db290cb3df257950b7d2fd4e953d8b97a42272d2ac7365d", kill_on_drop: false }` [INFO] [stdout] 4d3f83b8ae24502d5db290cb3df257950b7d2fd4e953d8b97a42272d2ac7365d