[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 master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYlgr%2Frust-revision-practice" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Ylgr/rust-revision-practice on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-5-tc1/source/Cargo.toml [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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking Ylgr/rust-revision-practice against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYlgr%2Frust-revision-practice" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Ylgr/rust-revision-practice on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-5-tc2/source/Cargo.toml [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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "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-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cd682b70a56c0003699a14382eec7080a8c42fec0dc69bec5b08eae3edb1f37b [INFO] running `Command { std: "docker" "start" "-a" "cd682b70a56c0003699a14382eec7080a8c42fec0dc69bec5b08eae3edb1f37b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cd682b70a56c0003699a14382eec7080a8c42fec0dc69bec5b08eae3edb1f37b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cd682b70a56c0003699a14382eec7080a8c42fec0dc69bec5b08eae3edb1f37b", kill_on_drop: false }` [INFO] [stdout] cd682b70a56c0003699a14382eec7080a8c42fec0dc69bec5b08eae3edb1f37b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5bf9adecdbc8266b0593d0e5e539047af4d68a70e2eb418385ea2ff6fc04f1ec [INFO] running `Command { std: "docker" "start" "-a" "5bf9adecdbc8266b0593d0e5e539047af4d68a70e2eb418385ea2ff6fc04f1ec", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Checking rust-revision-practice v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/bin/section5.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/bin/section3.rs from 2021 edition to 2024 [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] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` 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 the ... [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() wil... [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/36dbcaee1a55543dfc181be52a69d99ff46ff62f/library/core/src/option.rs:952:22 [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: aborting due to 1 previous error; 1 warning emitted [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-revision-practice` (bin "section5") due to 2 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] Migrating src/bin/section6.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/bin/section4.rs from 2021 edition to 2024 [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] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` 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 the ... [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() wil... [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/36dbcaee1a55543dfc181be52a69d99ff46ff62f/library/core/src/option.rs:952:22 [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: aborting due to 1 previous error; 1 warning emitted [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-revision-practice` (bin "section5" test) due to 2 previous errors; 1 warning emitted [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "5bf9adecdbc8266b0593d0e5e539047af4d68a70e2eb418385ea2ff6fc04f1ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5bf9adecdbc8266b0593d0e5e539047af4d68a70e2eb418385ea2ff6fc04f1ec", kill_on_drop: false }` [INFO] [stdout] 5bf9adecdbc8266b0593d0e5e539047af4d68a70e2eb418385ea2ff6fc04f1ec