[INFO] cloning repository https://github.com/jdkern11/rust_clock
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jdkern11/rust_clock" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjdkern11%2Frust_clock", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjdkern11%2Frust_clock'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] dfda5f98d8e5a3a643bfd36c9411db0e35c2b28d
[INFO] testing jdkern11/rust_clock against 1.99.0-beta.1+cargoflags=--release for beta-release-1.99-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjdkern11%2Frust_clock" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/jdkern11/rust_clock
[INFO] finished tweaking git repo https://github.com/jdkern11/rust_clock
[INFO] tweaked toml for git repo https://github.com/jdkern11/rust_clock written to /workspace/builds/worker-7-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/jdkern11/rust_clock on toolchain 1.99.0-beta.1
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.99.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/jdkern11/rust_clock 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" "+1.99.0-beta.1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] a1fc9029ec5e57a4df57d00357dee191f88afe45cd905a3376acb84d8765d27f
[INFO] running `Command { std: "docker" "start" "a1fc9029ec5e57a4df57d00357dee191f88afe45cd905a3376acb84d8765d27f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "a1fc9029ec5e57a4df57d00357dee191f88afe45cd905a3376acb84d8765d27f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "a1fc9029ec5e57a4df57d00357dee191f88afe45cd905a3376acb84d8765d27f" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "a1fc9029ec5e57a4df57d00357dee191f88afe45cd905a3376acb84d8765d27f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "a1fc9029ec5e57a4df57d00357dee191f88afe45cd905a3376acb84d8765d27f" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.1" "build" "--frozen" "--message-format=json" "--release", kill_on_drop: false }`
[INFO] [stderr]    Compiling clock v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: enum `TimeUnit` is never used
[INFO] [stdout]  --> src/lib.rs:4:6
[INFO] [stdout]   |
[INFO] [stdout] 4 | enum TimeUnit {
[INFO] [stdout]   |      ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Clock` is never constructed
[INFO] [stdout]   --> src/lib.rs:10:8
[INFO] [stdout]    |
[INFO] [stdout] 10 | struct Clock {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `add`, `add_seconds`, `add_minutes`, `add_hours`, and `normalize` are never used
[INFO] [stdout]   --> src/lib.rs:17:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | impl Clock {
[INFO] [stdout]    | ---------- associated items in this implementation
[INFO] [stdout] 17 |     pub fn new(hour: u32, minute: u32, second: u32) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 30 |     pub fn add(self, unit: TimeUnit) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 38 |     fn add_seconds(mut self, seconds: u32) -> Self {
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 44 |     fn add_minutes(mut self, minutes: u32) -> Self {
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 50 |     fn add_hours(mut self, hours: u32) -> Self {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 56 |     fn normalize(&mut self) {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `release` profile [optimized] target(s) in 0.10s
[INFO] running `Command { std: "docker" "inspect" "a1fc9029ec5e57a4df57d00357dee191f88afe45cd905a3376acb84d8765d27f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "a1fc9029ec5e57a4df57d00357dee191f88afe45cd905a3376acb84d8765d27f" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.1" "test" "--frozen" "--no-run" "--message-format=json" "--release", kill_on_drop: false }`
[INFO] [stdout] warning: enum `TimeUnit` is never used
[INFO] [stdout]  --> src/lib.rs:4:6
[INFO] [stdout]   |
[INFO] [stdout] 4 | enum TimeUnit {
[INFO] [stdout]   |      ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Clock` is never constructed
[INFO] [stdout]   --> src/lib.rs:10:8
[INFO] [stdout]    |
[INFO] [stdout] 10 | struct Clock {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling clock v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: associated items `new`, `add`, `add_seconds`, `add_minutes`, `add_hours`, and `normalize` are never used
[INFO] [stdout]   --> src/lib.rs:17:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | impl Clock {
[INFO] [stdout]    | ---------- associated items in this implementation
[INFO] [stdout] 17 |     pub fn new(hour: u32, minute: u32, second: u32) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 30 |     pub fn add(self, unit: TimeUnit) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 38 |     fn add_seconds(mut self, seconds: u32) -> Self {
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 44 |     fn add_minutes(mut self, minutes: u32) -> Self {
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 50 |     fn add_hours(mut self, hours: u32) -> Self {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 56 |     fn normalize(&mut self) {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: borrow of moved value: `clock`
[INFO] [stdout]    --> src/lib.rs:100:33
[INFO] [stdout]     |
[INFO] [stdout]  98 |         let clock = Clock::new(8, 40, 23);
[INFO] [stdout]     |             ----- move occurs because `clock` has type `Clock`, which does not implement the `Copy` trait
[INFO] [stdout]  99 |         let new_clock = clock + TimeUnit::Seconds(60);
[INFO] [stdout]     |                         ----------------------------- `clock` moved due to usage in operator
[INFO] [stdout] 100 |         println!("clock is {}", clock.to_string());
[INFO] [stdout]     |                                 ^^^^^ value borrowed here after move
[INFO] [stdout]     |
[INFO] [stdout] note: if `Clock` implemented `Clone`, you could clone the value
[INFO] [stdout]    --> src/lib.rs:10:1
[INFO] [stdout]     |
[INFO] [stdout]  10 | struct Clock {
[INFO] [stdout]     | ^^^^^^^^^^^^ consider implementing `Clone` for this type
[INFO] [stdout] ...
[INFO] [stdout]  99 |         let new_clock = clock + TimeUnit::Seconds(60);
[INFO] [stdout]     |                         ----- you could clone this value
[INFO] [stdout] note: calling this operator moves the left-hand side
[INFO] [stdout]    --> /rustc/f47d5bb13648d5c859f5b438eb7dc834b9729961/library/core/src/ops/arith.rs:91:11
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `clock` (lib test) due to 1 previous error
[INFO] [stdout] For more information about this error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "a1fc9029ec5e57a4df57d00357dee191f88afe45cd905a3376acb84d8765d27f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a1fc9029ec5e57a4df57d00357dee191f88afe45cd905a3376acb84d8765d27f", kill_on_drop: false }`
[INFO] [stdout] a1fc9029ec5e57a4df57d00357dee191f88afe45cd905a3376acb84d8765d27f
