[INFO] cloning repository https://github.com/hasanhaja/rust_book_workthrough [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hasanhaja/rust_book_workthrough" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhasanhaja%2Frust_book_workthrough", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhasanhaja%2Frust_book_workthrough'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fb94a901fa00cfef7e3484d23d28279d003a7cf0 [INFO] checking hasanhaja/rust_book_workthrough against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhasanhaja%2Frust_book_workthrough" "/workspace/builds/worker-62/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-62/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hasanhaja/rust_book_workthrough on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/hasanhaja/rust_book_workthrough [INFO] finished tweaking git repo https://github.com/hasanhaja/rust_book_workthrough [INFO] tweaked toml for git repo https://github.com/hasanhaja/rust_book_workthrough written to /workspace/builds/worker-62/source/Cargo.toml [INFO] crate git repo https://github.com/hasanhaja/rust_book_workthrough already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bitflags v1.0.4 [INFO] [stderr] Downloaded rand v0.4.3 [INFO] [stderr] Downloaded libc v0.2.43 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-62/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-62/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 493c58ee4b39511db8e13c8839e52e1b87067b8fe0673c4bc093a4a5a34847c8 [INFO] running `Command { std: "docker" "start" "-a" "493c58ee4b39511db8e13c8839e52e1b87067b8fe0673c4bc093a4a5a34847c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "493c58ee4b39511db8e13c8839e52e1b87067b8fe0673c4bc093a4a5a34847c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "493c58ee4b39511db8e13c8839e52e1b87067b8fe0673c4bc093a4a5a34847c8", kill_on_drop: false }` [INFO] [stdout] 493c58ee4b39511db8e13c8839e52e1b87067b8fe0673c4bc093a4a5a34847c8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-62/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-62/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ee5e04a713b71501ccac9b0fdc54082b363f1141e0c0ca7eb44d59d51753a15e [INFO] running `Command { std: "docker" "start" "-a" "ee5e04a713b71501ccac9b0fdc54082b363f1141e0c0ca7eb44d59d51753a15e", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Checking libc v0.2.43 [INFO] [stderr] Checking rand v0.4.3 [INFO] [stderr] Checking rand v0.3.22 [INFO] [stderr] Checking rust_book_workthrough v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/main.rs (1 fix) [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Rectangle` in this scope [INFO] [stdout] --> src/main.rs:88:22 [INFO] [stdout] | [INFO] [stdout] 88 | let larger = Rectangle { width: 7, height: 8 }; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 41 | use crate::structs::Rectangle; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Rectangle` in this scope [INFO] [stdout] --> src/main.rs:89:23 [INFO] [stdout] | [INFO] [stdout] 89 | let smaller = Rectangle { width: 1, height: 5 }; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 41 | use crate::structs::Rectangle; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Rectangle` in this scope [INFO] [stdout] --> src/main.rs:96:22 [INFO] [stdout] | [INFO] [stdout] 96 | let larger = Rectangle { width: 7, height: 8 }; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 41 | use crate::structs::Rectangle; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Rectangle` in this scope [INFO] [stdout] --> src/main.rs:97:23 [INFO] [stdout] | [INFO] [stdout] 97 | let smaller = Rectangle { width: 1, height: 5 }; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 41 | use crate::structs::Rectangle; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Person` [INFO] [stdout] --> src/structs.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Person { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `area` [INFO] [stdout] --> src/structs.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn area(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `square` [INFO] [stdout] --> src/structs.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn square(size: u64) -> Rectangle { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `area` [INFO] [stdout] --> src/structs.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn area(&self) -> u64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_hold` [INFO] [stdout] --> src/structs.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Guess` [INFO] [stdout] --> src/main.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | struct Guess { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/main.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn new(value: i32) -> Guess { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0422`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_book_workthrough` due to 5 previous errors [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" "ee5e04a713b71501ccac9b0fdc54082b363f1141e0c0ca7eb44d59d51753a15e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ee5e04a713b71501ccac9b0fdc54082b363f1141e0c0ca7eb44d59d51753a15e", kill_on_drop: false }` [INFO] [stdout] ee5e04a713b71501ccac9b0fdc54082b363f1141e0c0ca7eb44d59d51753a15e