[INFO] cloning repository https://github.com/Ylgr/rust-revision-practice [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Ylgr/rust-revision-practice" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYlgr%2Frust-revision-practice", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYlgr%2Frust-revision-practice'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 306c136e20d17010e81cbf448800a49262a99559 [INFO] checking Ylgr/rust-revision-practice against try#579169d0e78824dc60934e5eb74cd3841f2b33e8 for pr-149328 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYlgr%2Frust-revision-practice" "/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/Ylgr/rust-revision-practice [INFO] finished tweaking git repo https://github.com/Ylgr/rust-revision-practice [INFO] tweaked toml for git repo https://github.com/Ylgr/rust-revision-practice written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Ylgr/rust-revision-practice on toolchain 579169d0e78824dc60934e5eb74cd3841f2b33e8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+579169d0e78824dc60934e5eb74cd3841f2b33e8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Ylgr/rust-revision-practice 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" "+579169d0e78824dc60934e5eb74cd3841f2b33e8" "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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+579169d0e78824dc60934e5eb74cd3841f2b33e8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 76fe27d2d8ccafc0e3abdb9e37525a95f8905a53a77788ffcc8eee89094348ff [INFO] running `Command { std: "docker" "start" "-a" "76fe27d2d8ccafc0e3abdb9e37525a95f8905a53a77788ffcc8eee89094348ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "76fe27d2d8ccafc0e3abdb9e37525a95f8905a53a77788ffcc8eee89094348ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "76fe27d2d8ccafc0e3abdb9e37525a95f8905a53a77788ffcc8eee89094348ff", kill_on_drop: false }` [INFO] [stdout] 76fe27d2d8ccafc0e3abdb9e37525a95f8905a53a77788ffcc8eee89094348ff [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+579169d0e78824dc60934e5eb74cd3841f2b33e8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 07f3d7a44cdc67312e64cae8d67c8a64d3f323d29b6334192f5e778d6c7763a3 [INFO] running `Command { std: "docker" "start" "-a" "07f3d7a44cdc67312e64cae8d67c8a64d3f323d29b6334192f5e778d6c7763a3", kill_on_drop: false }` [INFO] [stderr] Checking rust-revision-practice v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/bin/section5.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | _ => 0, // unreachable pattern because all variants are covered [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/bin/section5.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 7 | Shape::Round => 0, [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] 8 | Shape::Triangle => 3, [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 9 | Shape::Square => 4, [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] 10 | Shape::Rectangle => 4, [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 15 | _ => 0, // unreachable pattern because all variants are covered [INFO] [stdout] | ^ ...and 4 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/bin/section5.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | _ => 0, // unreachable pattern because all variants are covered [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/bin/section5.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 7 | Shape::Round => 0, [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] 8 | Shape::Triangle => 3, [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 9 | Shape::Square => 4, [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] 10 | Shape::Rectangle => 4, [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 15 | _ => 0, // unreachable pattern because all variants are covered [INFO] [stdout] | ^ ...and 4 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `shape` [INFO] [stdout] --> src/bin/section5.rs:60:35 [INFO] [stdout] | [INFO] [stdout] 56 | let shape = find_shape("Not Square"); [INFO] [stdout] | ----- move occurs because `shape` has type `Option`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 59 | println!("shape sides: {:?}", shape.unwrap_or(Shape::Round).get_sides()); // this will not panic because unwrap_or() will return... [INFO] [stdout] | ----- ----------------------- `shape` 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] 60 | println!("shape sides: {:?}", shape.unwrap_or_else(|| Shape::Round).get_sides()); // this will not panic because unwrap_or_else(... [INFO] [stdout] | ^^^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] note: `Option::::unwrap_or` takes ownership of the receiver `self`, which moves `shape` [INFO] [stdout] --> /rustc/579169d0e78824dc60934e5eb74cd3841f2b33e8/library/core/src/option.rs:1038:27 [INFO] [stdout] help: you could `clone` the value and consume it, if the `Shape: Clone` trait bound could be satisfied [INFO] [stdout] | [INFO] [stdout] 59 | println!("shape sides: {:?}", shape.clone().unwrap_or(Shape::Round).get_sides()); // this will not panic because unwrap_or() will return the value of the default value [INFO] [stdout] | ++++++++ [INFO] [stdout] help: consider annotating `Shape` with `#[derive(Clone)]` [INFO] [stdout] | [INFO] [stdout] 2 + #[derive(Clone)] [INFO] [stdout] 3 | enum Shape {Round, Triangle, Square, Rectangle, Oval, Hexagon, Pentagon, Octagon} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `shape` [INFO] [stdout] --> src/bin/section5.rs:60:35 [INFO] [stdout] | [INFO] [stdout] 56 | let shape = find_shape("Not Square"); [INFO] [stdout] | ----- move occurs because `shape` has type `Option`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 59 | println!("shape sides: {:?}", shape.unwrap_or(Shape::Round).get_sides()); // this will not panic because unwrap_or() will return... [INFO] [stdout] | ----- ----------------------- `shape` 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] 60 | println!("shape sides: {:?}", shape.unwrap_or_else(|| Shape::Round).get_sides()); // this will not panic because unwrap_or_else(... [INFO] [stdout] | ^^^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] note: `Option::::unwrap_or` takes ownership of the receiver `self`, which moves `shape` [INFO] [stdout] --> /rustc/579169d0e78824dc60934e5eb74cd3841f2b33e8/library/core/src/option.rs:1038:27 [INFO] [stdout] help: you could `clone` the value and consume it, if the `Shape: Clone` trait bound could be satisfied [INFO] [stdout] | [INFO] [stdout] 59 | println!("shape sides: {:?}", shape.clone().unwrap_or(Shape::Round).get_sides()); // this will not panic because unwrap_or() will return the value of the default value [INFO] [stdout] | ++++++++ [INFO] [stdout] help: consider annotating `Shape` with `#[derive(Clone)]` [INFO] [stdout] | [INFO] [stdout] 2 + #[derive(Clone)] [INFO] [stdout] 3 | enum Shape {Round, Triangle, Square, Rectangle, Oval, Hexagon, Pentagon, Octagon} [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-revision-practice` (bin "section5" test) due to 1 previous error; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rust-revision-practice` (bin "section5") due to 1 previous error; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "07f3d7a44cdc67312e64cae8d67c8a64d3f323d29b6334192f5e778d6c7763a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "07f3d7a44cdc67312e64cae8d67c8a64d3f323d29b6334192f5e778d6c7763a3", kill_on_drop: false }` [INFO] [stdout] 07f3d7a44cdc67312e64cae8d67c8a64d3f323d29b6334192f5e778d6c7763a3