[INFO] cloning repository https://github.com/davidmitesh/Rust-Crash-course
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/davidmitesh/Rust-Crash-course" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdavidmitesh%2FRust-Crash-course", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdavidmitesh%2FRust-Crash-course'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 0f1a8a5460f4248ec39d1ad249fc84559b95ca69
[INFO] checking davidmitesh/Rust-Crash-course against 4a9d5368df6450bbd2fc8dde4508c3e5d83bb19d for pr-159598
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdavidmitesh%2FRust-Crash-course" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/davidmitesh/Rust-Crash-course
[INFO] finished tweaking git repo https://github.com/davidmitesh/Rust-Crash-course
[INFO] tweaked toml for git repo https://github.com/davidmitesh/Rust-Crash-course written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/davidmitesh/Rust-Crash-course on toolchain 4a9d5368df6450bbd2fc8dde4508c3e5d83bb19d
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4a9d5368df6450bbd2fc8dde4508c3e5d83bb19d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/davidmitesh/Rust-Crash-course 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" "+4a9d5368df6450bbd2fc8dde4508c3e5d83bb19d" "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-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:00c5645b54fe3ce5dae1417175e3c7fb6a6646c021d554ecd63a097b8b9f3602" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 9f2a60d4867b01bc3431dc5f8ee7217c4da695d7a70fc746cb1fddad88cc68fb
[INFO] running `Command { std: "docker" "start" "9f2a60d4867b01bc3431dc5f8ee7217c4da695d7a70fc746cb1fddad88cc68fb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "9f2a60d4867b01bc3431dc5f8ee7217c4da695d7a70fc746cb1fddad88cc68fb", 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" "9f2a60d4867b01bc3431dc5f8ee7217c4da695d7a70fc746cb1fddad88cc68fb" "/opt/rustwide/cargo-home/bin/cargo" "+4a9d5368df6450bbd2fc8dde4508c3e5d83bb19d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "9f2a60d4867b01bc3431dc5f8ee7217c4da695d7a70fc746cb1fddad88cc68fb", 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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "9f2a60d4867b01bc3431dc5f8ee7217c4da695d7a70fc746cb1fddad88cc68fb" "/opt/rustwide/cargo-home/bin/cargo" "+4a9d5368df6450bbd2fc8dde4508c3e5d83bb19d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]     Checking rust-crash v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0382]: use of moved value: `divide2`
[INFO] [stdout]   --> src/results.rs:37:21
[INFO] [stdout]    |
[INFO] [stdout] 21 |     let divide2 = divide(2, 3);
[INFO] [stdout]    |         ------- move occurs because `divide2` has type `Result<i32, MyError>`, which does not implement the `Copy` trait
[INFO] [stdout] ...
[INFO] [stdout] 29 |     println!("{:?}",&divide2.unwrap());
[INFO] [stdout]    |                              -------- `divide2` moved due to this method call
[INFO] [stdout] ...
[INFO] [stdout] 37 |     println!("{:?}",divide2.unwrap_or(4));
[INFO] [stdout]    |                     ^^^^^^^ value used here after move
[INFO] [stdout]    |
[INFO] [stdout] note: `Result::<T, E>::unwrap` takes ownership of the receiver `self`, which moves `divide2`
[INFO] [stdout]   --> /rustc/4a9d5368df6450bbd2fc8dde4508c3e5d83bb19d/library/core/src/result.rs:1225:18
[INFO] [stdout] help: consider calling `.as_ref()` to borrow the value's contents
[INFO] [stdout]    |
[INFO] [stdout] 29 |     println!("{:?}",&divide2.as_ref().unwrap());
[INFO] [stdout]    |                             +++++++++
[INFO] [stdout] help: consider calling `.as_mut()` to mutably borrow the value's contents
[INFO] [stdout]    |
[INFO] [stdout] 29 |     println!("{:?}",&divide2.as_mut().unwrap());
[INFO] [stdout]    |                             +++++++++
[INFO] [stdout] help: you could `clone` the value and consume it, if the `MyError: Clone` trait bound could be satisfied
[INFO] [stdout]    |
[INFO] [stdout] 29 |     println!("{:?}",&divide2.clone().unwrap());
[INFO] [stdout]    |                             ++++++++
[INFO] [stdout] help: consider annotating `MyError` with `#[derive(Clone)]`
[INFO] [stdout]    |
[INFO] [stdout]  2 + #[derive(Clone)]
[INFO] [stdout]  3 | enum MyError{
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: use of moved value: `divide2`
[INFO] [stdout]   --> src/results.rs:37:21
[INFO] [stdout]    |
[INFO] [stdout] 21 |     let divide2 = divide(2, 3);
[INFO] [stdout]    |         ------- move occurs because `divide2` has type `Result<i32, MyError>`, which does not implement the `Copy` trait
[INFO] [stdout] ...
[INFO] [stdout] 29 |     println!("{:?}",&divide2.unwrap());
[INFO] [stdout]    |                              -------- `divide2` moved due to this method call
[INFO] [stdout] ...
[INFO] [stdout] 37 |     println!("{:?}",divide2.unwrap_or(4));
[INFO] [stdout]    |                     ^^^^^^^ value used here after move
[INFO] [stdout]    |
[INFO] [stdout] note: `Result::<T, E>::unwrap` takes ownership of the receiver `self`, which moves `divide2`
[INFO] [stdout]   --> /rustc/4a9d5368df6450bbd2fc8dde4508c3e5d83bb19d/library/core/src/result.rs:1225:18
[INFO] [stdout] help: consider calling `.as_ref()` to borrow the value's contents
[INFO] [stdout]    |
[INFO] [stdout] 29 |     println!("{:?}",&divide2.as_ref().unwrap());
[INFO] [stdout]    |                             +++++++++
[INFO] [stdout] help: consider calling `.as_mut()` to mutably borrow the value's contents
[INFO] [stdout]    |
[INFO] [stdout] 29 |     println!("{:?}",&divide2.as_mut().unwrap());
[INFO] [stdout]    |                             +++++++++
[INFO] [stdout] help: you could `clone` the value and consume it, if the `MyError: Clone` trait bound could be satisfied
[INFO] [stdout]    |
[INFO] [stdout] 29 |     println!("{:?}",&divide2.clone().unwrap());
[INFO] [stdout]    |                             ++++++++
[INFO] [stdout] help: consider annotating `MyError` with `#[derive(Clone)]`
[INFO] [stdout]    |
[INFO] [stdout]  2 + #[derive(Clone)]
[INFO] [stdout]  3 | enum MyError{
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-crash` (bin "rust-crash") due to 1 previous error
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `rust-crash` (bin "rust-crash" test) due to 1 previous error
[INFO] running `Command { std: "docker" "inspect" "9f2a60d4867b01bc3431dc5f8ee7217c4da695d7a70fc746cb1fddad88cc68fb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9f2a60d4867b01bc3431dc5f8ee7217c4da695d7a70fc746cb1fddad88cc68fb", kill_on_drop: false }`
[INFO] [stdout] 9f2a60d4867b01bc3431dc5f8ee7217c4da695d7a70fc746cb1fddad88cc68fb
