[INFO] fetching crate text_based_rpg 0.1.0... [INFO] checking text_based_rpg-0.1.0 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate text_based_rpg 0.1.0 into /workspace/builds/worker-5-tc2/source [INFO] validating manifest of crates.io crate text_based_rpg 0.1.0 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate text_based_rpg 0.1.0 [INFO] finished tweaking crates.io crate text_based_rpg 0.1.0 [INFO] tweaked toml for crates.io crate text_based_rpg 0.1.0 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate crates.io crate text_based_rpg 0.1.0 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d4fe846ee0f4fc6566b3a2bc48d7a5546c0fc49c629cc94b874344b57094d66c [INFO] running `Command { std: "docker" "start" "-a" "d4fe846ee0f4fc6566b3a2bc48d7a5546c0fc49c629cc94b874344b57094d66c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d4fe846ee0f4fc6566b3a2bc48d7a5546c0fc49c629cc94b874344b57094d66c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d4fe846ee0f4fc6566b3a2bc48d7a5546c0fc49c629cc94b874344b57094d66c", kill_on_drop: false }` [INFO] [stdout] d4fe846ee0f4fc6566b3a2bc48d7a5546c0fc49c629cc94b874344b57094d66c [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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 223ec52b542268c4c4b6391c5208278155b6b8c70e2199d6aa6adfdc6fecde01 [INFO] running `Command { std: "docker" "start" "-a" "223ec52b542268c4c4b6391c5208278155b6b8c70e2199d6aa6adfdc6fecde01", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.75 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking text_based_rpg v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/locations.rs (3 fixes) [INFO] [stderr] Fixed src/locations/loot.rs (2 fixes) [INFO] [stderr] Fixed src/entity.rs (6 fixes) [INFO] [stderr] Fixed src/game.rs (1 fix) [INFO] [stdout] warning: unused import: `std::io::BufRead` [INFO] [stdout] --> src/entity.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::BufRead; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/entity/monsters/greater_taiga.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | |target|{}, // Effect [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/entity/monsters/greater_taiga.rs:29:14 [INFO] [stdout] | [INFO] [stdout] 29 | |target|{} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/entity/monsters/greater_taiga.rs:41:14 [INFO] [stdout] | [INFO] [stdout] 41 | |target| {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/entity/monsters/greater_taiga.rs:53:14 [INFO] [stdout] | [INFO] [stdout] 53 | |target| {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/entity/monsters/greater_taiga.rs:65:14 [INFO] [stdout] | [INFO] [stdout] 65 | |target| {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_input` [INFO] [stdout] --> src/game.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | let user_input = String::new(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `user_select_ith_index_from_vec` is never used [INFO] [stdout] --> src/entity.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub trait User { [INFO] [stdout] | ---- method in this trait [INFO] [stdout] ... [INFO] [stdout] 31 | fn user_select_ith_index_from_vec(&mut self) -> usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Hero` [INFO] [stdout] --> src/entity.rs:238:28 [INFO] [stdout] | [INFO] [stdout] 238 | let mut hero = Hero::default(); [INFO] [stdout] | ^^^^ use of undeclared type `Hero` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 234 + use crate::Hero; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Item` [INFO] [stdout] --> src/entity.rs:239:29 [INFO] [stdout] | [INFO] [stdout] 239 | hero.items.push(Item::default()); [INFO] [stdout] | ^^^^ use of undeclared type `Item` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 234 + use crate::Item; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Item` [INFO] [stdout] --> src/entity.rs:240:29 [INFO] [stdout] | [INFO] [stdout] 240 | hero.items.push(Item::default()); [INFO] [stdout] | ^^^^ use of undeclared type `Item` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 234 + use crate::Item; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Item` [INFO] [stdout] --> src/entity.rs:241:29 [INFO] [stdout] | [INFO] [stdout] 241 | hero.items.push(Item::default()); [INFO] [stdout] | ^^^^ use of undeclared type `Item` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 234 + use crate::Item; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Weapon` [INFO] [stdout] --> src/entity.rs:257:33 [INFO] [stdout] | [INFO] [stdout] 257 | let attack_weapon = Weapon::new("Attack Weapon", 10, |target| target.take_damage(10)); [INFO] [stdout] | ^^^^^^ use of undeclared type `Weapon` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 253 + use crate::weapons::Weapon; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Weapon` [INFO] [stdout] --> src/entity.rs:282:33 [INFO] [stdout] | [INFO] [stdout] 282 | let attack_weapon = Weapon::new("Attack Weapon", 10, |target| target.take_damage(10)); [INFO] [stdout] | ^^^^^^ use of undeclared type `Weapon` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 278 + use crate::weapons::Weapon; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Location` in this scope [INFO] [stdout] --> src/locations.rs:31:29 [INFO] [stdout] | [INFO] [stdout] 31 | let greater_taiga = Location { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 29 + use crate::locations::Location; [INFO] [stdout] | [INFO] [stdout] 29 + use std::panic::Location; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `greater_taiga` [INFO] [stdout] --> src/locations.rs:33:28 [INFO] [stdout] | [INFO] [stdout] 33 | load_entities: greater_taiga::get_greater_taiga_entities, [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared crate or module `greater_taiga` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 29 + use crate::locations::monsters::greater_taiga; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/game.rs:96:19 [INFO] [stdout] | [INFO] [stdout] 96 | use std::io::{self, BufRead}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_current_health` found for struct `entity::Enemy` in the current scope [INFO] [stdout] --> src/entity.rs:263:40 [INFO] [stdout] | [INFO] [stdout] 10 | fn get_current_health(&self) -> i32; [INFO] [stdout] | ------------------ the method is available for `entity::Enemy` here [INFO] [stdout] ... [INFO] [stdout] 156 | pub struct Enemy { [INFO] [stdout] | ---------------- method `get_current_health` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 263 | let initial_health = enemy.get_current_health(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Entity` which provides `get_current_health` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 253 + use crate::entity::Entity; [INFO] [stdout] | [INFO] [stdout] help: there is a method `get_max_health` with a similar name [INFO] [stdout] | [INFO] [stdout] 263 | let initial_health = enemy.get_max_health(); [INFO] [stdout] | ~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_current_health` found for struct `entity::Enemy` in the current scope [INFO] [stdout] --> src/entity.rs:268:38 [INFO] [stdout] | [INFO] [stdout] 10 | fn get_current_health(&self) -> i32; [INFO] [stdout] | ------------------ the method is available for `entity::Enemy` here [INFO] [stdout] ... [INFO] [stdout] 156 | pub struct Enemy { [INFO] [stdout] | ---------------- method `get_current_health` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 268 | let final_health = enemy.get_current_health(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Entity` which provides `get_current_health` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 253 + use crate::entity::Entity; [INFO] [stdout] | [INFO] [stdout] help: there is a method `get_max_health` with a similar name [INFO] [stdout] | [INFO] [stdout] 268 | let final_health = enemy.get_max_health(); [INFO] [stdout] | ~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_current_health` found for struct `entity::Enemy` in the current scope [INFO] [stdout] --> src/entity.rs:288:40 [INFO] [stdout] | [INFO] [stdout] 10 | fn get_current_health(&self) -> i32; [INFO] [stdout] | ------------------ the method is available for `entity::Enemy` here [INFO] [stdout] ... [INFO] [stdout] 156 | pub struct Enemy { [INFO] [stdout] | ---------------- method `get_current_health` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 288 | let initial_health = enemy.get_current_health(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Entity` which provides `get_current_health` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 278 + use crate::entity::Entity; [INFO] [stdout] | [INFO] [stdout] help: there is a method `get_max_health` with a similar name [INFO] [stdout] | [INFO] [stdout] 288 | let initial_health = enemy.get_max_health(); [INFO] [stdout] | ~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_current_health` found for struct `entity::Enemy` in the current scope [INFO] [stdout] --> src/entity.rs:293:38 [INFO] [stdout] | [INFO] [stdout] 10 | fn get_current_health(&self) -> i32; [INFO] [stdout] | ------------------ the method is available for `entity::Enemy` here [INFO] [stdout] ... [INFO] [stdout] 156 | pub struct Enemy { [INFO] [stdout] | ---------------- method `get_current_health` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 293 | let final_health = enemy.get_current_health(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Entity` which provides `get_current_health` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 278 + use crate::entity::Entity; [INFO] [stdout] | [INFO] [stdout] help: there is a method `get_max_health` with a similar name [INFO] [stdout] | [INFO] [stdout] 293 | let final_health = enemy.get_max_health(); [INFO] [stdout] | ~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::BufRead` [INFO] [stdout] --> src/entity.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::BufRead; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `text_based_rpg` (lib test) due to 13 previous errors; 8 warnings emitted [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/entity/monsters/greater_taiga.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | |target|{}, // Effect [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/entity/monsters/greater_taiga.rs:29:14 [INFO] [stdout] | [INFO] [stdout] 29 | |target|{} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/entity/monsters/greater_taiga.rs:41:14 [INFO] [stdout] | [INFO] [stdout] 41 | |target| {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/entity/monsters/greater_taiga.rs:53:14 [INFO] [stdout] | [INFO] [stdout] 53 | |target| {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/entity/monsters/greater_taiga.rs:65:14 [INFO] [stdout] | [INFO] [stdout] 65 | |target| {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_input` [INFO] [stdout] --> src/game.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | let user_input = String::new(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 12 previous errors; 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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" "223ec52b542268c4c4b6391c5208278155b6b8c70e2199d6aa6adfdc6fecde01", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "223ec52b542268c4c4b6391c5208278155b6b8c70e2199d6aa6adfdc6fecde01", kill_on_drop: false }` [INFO] [stdout] 223ec52b542268c4c4b6391c5208278155b6b8c70e2199d6aa6adfdc6fecde01