[INFO] cloning repository https://github.com/Payne325/adventur [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Payne325/adventur" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPayne325%2Fadventur", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPayne325%2Fadventur'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a8bd6dbb98226c996ec4adb3d69a12cd6df64d23 [INFO] testing Payne325/adventur against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPayne325%2Fadventur" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Payne325/adventur on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Payne325/adventur [INFO] finished tweaking git repo https://github.com/Payne325/adventur [INFO] tweaked toml for git repo https://github.com/Payne325/adventur written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/Payne325/adventur already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "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-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 005e60c4590183ccc25b720a287b76ec1b76c3051a29227c670ae1fc87bb5c44 [INFO] running `Command { std: "docker" "start" "-a" "005e60c4590183ccc25b720a287b76ec1b76c3051a29227c670ae1fc87bb5c44", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "005e60c4590183ccc25b720a287b76ec1b76c3051a29227c670ae1fc87bb5c44", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "005e60c4590183ccc25b720a287b76ec1b76c3051a29227c670ae1fc87bb5c44", kill_on_drop: false }` [INFO] [stdout] 005e60c4590183ccc25b720a287b76ec1b76c3051a29227c670ae1fc87bb5c44 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7d25b73a34b649b330bf7bcfee10340915b5e8475229cebc7bcb7e31410b130a [INFO] running `Command { std: "docker" "start" "-a" "7d25b73a34b649b330bf7bcfee10340915b5e8475229cebc7bcb7e31410b130a", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.49 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling choose v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected `;`, found `PageData` [INFO] [stdout] --> src/page_reader.rs:29:75 [INFO] [stdout] | [INFO] [stdout] 29 | page_battle_initiated = if contentVec[2] == True { true } else { false } [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 30 | [INFO] [stdout] 31 | PageData { [INFO] [stdout] | -------- unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `!`, `,`, `.`, `::`, `?`, `{`, `}`, or an operator, found `enemy` [INFO] [stdout] --> src/page_reader.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 31 | PageData { [INFO] [stdout] | -------- while parsing this struct [INFO] [stdout] ... [INFO] [stdout] 34 | battleInitiated : page_battle_initiated [INFO] [stdout] | - [INFO] [stdout] | | [INFO] [stdout] | expected one of 8 possible tokens [INFO] [stdout] | help: try adding a comma: `,` [INFO] [stdout] 35 | enemy : contentVec[3] [INFO] [stdout] | ^^^^^ unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `;`, found `PageResult` [INFO] [stdout] --> src/page_reader.rs:57:6 [INFO] [stdout] | [INFO] [stdout] 57 | } [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 58 | [INFO] [stdout] 59 | PageResult { [INFO] [stdout] | ---------- unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `;`, found `PageResult` [INFO] [stdout] --> src/page_reader.rs:76:6 [INFO] [stdout] | [INFO] [stdout] 76 | } [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 77 | [INFO] [stdout] 78 | PageResult { [INFO] [stdout] | ---------- unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `;`, found `PageResult` [INFO] [stdout] --> src/page_reader.rs:92:6 [INFO] [stdout] | [INFO] [stdout] 92 | } [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 93 | [INFO] [stdout] 94 | PageResult { [INFO] [stdout] | ---------- unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected a literal [INFO] [stdout] --> src/page_reader.rs:20:26 [INFO] [stdout] | [INFO] [stdout] 20 | let filename = concat!(page.to_string(), ".txt"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: only literals (like `"foo"`, `42` and `3.14`) can be passed to `concat!()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `io` [INFO] [stdout] --> src/page_reader.rs:46:2 [INFO] [stdout] | [INFO] [stdout] 46 | io::stdin().read_line(&mut selection_str) [INFO] [stdout] | ^^ use of undeclared crate or module `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `page_options` in this scope [INFO] [stdout] --> src/page_reader.rs:26:3 [INFO] [stdout] | [INFO] [stdout] 26 | page_options: Vec = [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | not found in this scope [INFO] [stdout] | help: maybe you meant to write an assignment here: `let page_options` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `page_battle_initiated` in this scope [INFO] [stdout] --> src/page_reader.rs:29:3 [INFO] [stdout] | [INFO] [stdout] 29 | page_battle_initiated = if contentVec[2] == True { true } else { false } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `True` in this scope [INFO] [stdout] --> src/page_reader.rs:29:47 [INFO] [stdout] | [INFO] [stdout] 29 | page_battle_initiated = if contentVec[2] == True { true } else { false } [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `page_options` in this scope [INFO] [stdout] --> src/page_reader.rs:33:23 [INFO] [stdout] | [INFO] [stdout] 33 | nextPageOptions : page_options, [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Character` in this scope [INFO] [stdout] --> src/page_reader.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let enemy = Character { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Character; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Character` in this scope [INFO] [stdout] --> src/page_reader.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | let enemy = Character { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Character; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Character` in this scope [INFO] [stdout] --> src/page_reader.rs:86:17 [INFO] [stdout] | [INFO] [stdout] 86 | let enemy = Character { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Character; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, found module `page_reader` [INFO] [stdout] --> src/main.rs:23:19 [INFO] [stdout] | [INFO] [stdout] 23 | let page_data = page_reader(1); [INFO] [stdout] | ^^^^^^^^^^^ not a function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/page_reader.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | text : contentVec[0], [INFO] [stdout] | ^^^^^^^^^^^^^- help: try using a conversion method: `.to_string()` [INFO] [stdout] | | [INFO] [stdout] | expected struct `String`, found `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `enemy` in initializer of `PageData` [INFO] [stdout] --> src/page_reader.rs:31:3 [INFO] [stdout] | [INFO] [stdout] 31 | PageData { [INFO] [stdout] | ^^^^^^^^ missing `enemy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `page_options` on type `PageData` [INFO] [stdout] --> src/page_reader.rs:60:23 [INFO] [stdout] | [INFO] [stdout] 60 | nextPage : page.page_options[0], [INFO] [stdout] | ^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `text`, `nextPageOptions`, `battleInitiated`, `enemy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/page_reader.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 50 | / if page.battleInitiated == true { [INFO] [stdout] 51 | | let enemy = Character { [INFO] [stdout] 52 | | name: String::from("TestingFileReader"), [INFO] [stdout] 53 | | skill: 0, [INFO] [stdout] ... | [INFO] [stdout] 59 | /| PageResult { [INFO] [stdout] 60 | || nextPage : page.page_options[0], [INFO] [stdout] 61 | || enemy : enemy [INFO] [stdout] 62 | || } [INFO] [stdout] | ||_____^ expected `()`, found struct `PageResult` [INFO] [stdout] 63 | | } [INFO] [stdout] | |___- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] help: you might have meant to return this value [INFO] [stdout] | [INFO] [stdout] 59 ~ return PageResult { [INFO] [stdout] 60 | nextPage : page.page_options[0], [INFO] [stdout] 61 | enemy : enemy [INFO] [stdout] 62 ~ }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `-` to type `u32` [INFO] [stdout] --> src/page_reader.rs:79:18 [INFO] [stdout] | [INFO] [stdout] 79 | nextPage : -1, [INFO] [stdout] | ^^ [INFO] [stdout] | | [INFO] [stdout] | cannot apply unary operator `-` [INFO] [stdout] | help: you may have meant the maximum value of `u32`: `u32::MAX` [INFO] [stdout] | [INFO] [stdout] = note: unsigned values cannot be negated [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/page_reader.rs:85:41 [INFO] [stdout] | [INFO] [stdout] 85 | else if page.nextPageOptions.contains(selection) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `&u32`, found `u32` [INFO] [stdout] | help: consider borrowing here: `&selection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/page_reader.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | else { [INFO] [stdout] | ________^ [INFO] [stdout] 100 | | //If the user gives invalid input, [INFO] [stdout] 101 | | //then just recursively call this function until valid input is given. [INFO] [stdout] 102 | | println!("\n\n\nInvalid Option!\n\n\n"); [INFO] [stdout] 103 | | process_page(page); [INFO] [stdout] | | - help: consider removing this semicolon [INFO] [stdout] 104 | | } [INFO] [stdout] | |___^ expected struct `PageResult`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 22 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0063, E0308, E0422, E0423, E0425, E0433, E0600, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0063`. [INFO] [stdout] [INFO] [stderr] error: could not compile `choose` due to 23 previous errors [INFO] running `Command { std: "docker" "inspect" "7d25b73a34b649b330bf7bcfee10340915b5e8475229cebc7bcb7e31410b130a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d25b73a34b649b330bf7bcfee10340915b5e8475229cebc7bcb7e31410b130a", kill_on_drop: false }` [INFO] [stdout] 7d25b73a34b649b330bf7bcfee10340915b5e8475229cebc7bcb7e31410b130a