[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/0f1a8a5460f4248ec39d1ad249fc84559b95ca69 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdavidmitesh%2FRust-Crash-course" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/davidmitesh/Rust-Crash-course on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-6-tc1/source/Cargo.toml [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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8cdddd3196dae0e43f85eb6a0197ea1562b1b52c29fdd4b6d93357fd7c5f7fc7 [INFO] running `Command { std: "docker" "start" "-a" "8cdddd3196dae0e43f85eb6a0197ea1562b1b52c29fdd4b6d93357fd7c5f7fc7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8cdddd3196dae0e43f85eb6a0197ea1562b1b52c29fdd4b6d93357fd7c5f7fc7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8cdddd3196dae0e43f85eb6a0197ea1562b1b52c29fdd4b6d93357fd7c5f7fc7", kill_on_drop: false }` [INFO] [stdout] 8cdddd3196dae0e43f85eb6a0197ea1562b1b52c29fdd4b6d93357fd7c5f7fc7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7c8e4d2c535cbde2dc3f68570af17cf12bfe0662fc3eb5adf436cf776bd17285 [INFO] running `Command { std: "docker" "start" "-a" "7c8e4d2c535cbde2dc3f68570af17cf12bfe0662fc3eb5adf436cf776bd17285", 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`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 29 | println!("{:?}",÷2.unwrap()); [INFO] [stdout] | ------- -------- `divide2` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | help: consider calling `.as_ref()` or `.as_mut()` to borrow the type's contents [INFO] [stdout] ... [INFO] [stdout] 37 | println!("{:?}",divide2.unwrap_or(4)); [INFO] [stdout] | ^^^^^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] note: `Result::::unwrap` takes ownership of the receiver `self`, which moves `divide2` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/result.rs:1096:19 [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!("{:?}",÷2.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`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 29 | println!("{:?}",÷2.unwrap()); [INFO] [stdout] | ------- -------- `divide2` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | help: consider calling `.as_ref()` or `.as_mut()` to borrow the type's contents [INFO] [stdout] ... [INFO] [stdout] 37 | println!("{:?}",divide2.unwrap_or(4)); [INFO] [stdout] | ^^^^^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] note: `Result::::unwrap` takes ownership of the receiver `self`, which moves `divide2` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/result.rs:1096:19 [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!("{:?}",÷2.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: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [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 2 previous errors [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 2 previous errors [INFO] running `Command { std: "docker" "inspect" "7c8e4d2c535cbde2dc3f68570af17cf12bfe0662fc3eb5adf436cf776bd17285", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7c8e4d2c535cbde2dc3f68570af17cf12bfe0662fc3eb5adf436cf776bd17285", kill_on_drop: false }` [INFO] [stdout] 7c8e4d2c535cbde2dc3f68570af17cf12bfe0662fc3eb5adf436cf776bd17285