[INFO] cloning repository https://github.com/udzura/mrbasm [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/udzura/mrbasm" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fudzura%2Fmrbasm", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fudzura%2Fmrbasm'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a76b7c5946abf97f22ba1f3f1cd513dd3449afb6 [INFO] checking udzura/mrbasm against try#f77b5bc6c7c84df104f86b0dd01d9490e3923fa8 for pr-147834 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fudzura%2Fmrbasm" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/udzura/mrbasm [INFO] finished tweaking git repo https://github.com/udzura/mrbasm [INFO] tweaked toml for git repo https://github.com/udzura/mrbasm written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/udzura/mrbasm on toolchain f77b5bc6c7c84df104f86b0dd01d9490e3923fa8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f77b5bc6c7c84df104f86b0dd01d9490e3923fa8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/udzura/mrbasm 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" "+f77b5bc6c7c84df104f86b0dd01d9490e3923fa8" "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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+f77b5bc6c7c84df104f86b0dd01d9490e3923fa8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5a22ff7a41dc037a74ae518e3cd26e8d8d486becf14ed373c521dba3b3438f08 [INFO] running `Command { std: "docker" "start" "-a" "5a22ff7a41dc037a74ae518e3cd26e8d8d486becf14ed373c521dba3b3438f08", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5a22ff7a41dc037a74ae518e3cd26e8d8d486becf14ed373c521dba3b3438f08", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5a22ff7a41dc037a74ae518e3cd26e8d8d486becf14ed373c521dba3b3438f08", kill_on_drop: false }` [INFO] [stdout] 5a22ff7a41dc037a74ae518e3cd26e8d8d486becf14ed373c521dba3b3438f08 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+f77b5bc6c7c84df104f86b0dd01d9490e3923fa8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5f3814949ba612e20fbf573fbf255763101aa1254ac77efd745765cebefa138f [INFO] running `Command { std: "docker" "start" "-a" "5f3814949ba612e20fbf573fbf255763101aa1254ac77efd745765cebefa138f", kill_on_drop: false }` [INFO] [stderr] Checking bytes v1.4.0 [INFO] [stderr] Checking mrbasm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0412]: cannot find type `Pos` in this scope [INFO] [stdout] --> src/parser.rs:105:52 [INFO] [stdout] | [INFO] [stdout] 105 | fn getcurrent(&mut self, nth: usize) -> Result { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::lexer::Pos; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Pos` in this scope [INFO] [stdout] --> src/parser.rs:109:20 [INFO] [stdout] | [INFO] [stdout] 109 | .nth::(nth) [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::lexer::Pos; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LexError` in this scope [INFO] [stdout] --> src/parser.rs:114:43 [INFO] [stdout] | [INFO] [stdout] 114 | fn advance(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::lexer::LexError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LexError` in this scope [INFO] [stdout] --> src/parser.rs:120:40 [INFO] [stdout] | [INFO] [stdout] 120 | fn peek(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::lexer::LexError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Pos` in this scope [INFO] [stdout] --> src/parser.rs:105:52 [INFO] [stdout] | [INFO] [stdout] 105 | fn getcurrent(&mut self, nth: usize) -> Result { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::lexer::Pos; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Pos` in this scope [INFO] [stdout] --> src/parser.rs:109:20 [INFO] [stdout] | [INFO] [stdout] 109 | .nth::(nth) [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::lexer::Pos; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LexError` in this scope [INFO] [stdout] --> src/parser.rs:114:43 [INFO] [stdout] | [INFO] [stdout] 114 | fn advance(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::lexer::LexError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LexError` in this scope [INFO] [stdout] --> src/parser.rs:120:40 [INFO] [stdout] | [INFO] [stdout] 120 | fn peek(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::lexer::LexError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Token` [INFO] [stdout] --> src/parser.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::lexer::{self, Token}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Token` [INFO] [stdout] --> src/parser.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::lexer::{self, Token}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: method takes 0 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/parser.rs:109:14 [INFO] [stdout] | [INFO] [stdout] 109 | .nth::(nth) [INFO] [stdout] | ^^^------- help: remove the unnecessary generics [INFO] [stdout] | | [INFO] [stdout] | expected 0 generic arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: method takes 0 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/parser.rs:109:14 [INFO] [stdout] | [INFO] [stdout] 109 | .nth::(nth) [INFO] [stdout] | ^^^------- help: remove the unnecessary generics [INFO] [stdout] | | [INFO] [stdout] | expected 0 generic arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: expected a `FnOnce()` closure, found `Result<_, ParseError>` [INFO] [stdout] --> src/parser.rs:110:25 [INFO] [stdout] | [INFO] [stdout] 110 | .ok_or_else(Err(ParseError::raise())); [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^^^^^^^^^^^ expected an `FnOnce()` closure, found `Result<_, ParseError>` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `FnOnce()` is not implemented for `Result<_, ParseError>` [INFO] [stdout] = note: wrap the `Result<_, ParseError>` in a closure with no arguments: `|| { /* code */ }` [INFO] [stdout] note: required by a bound in `Option::::ok_or_else` [INFO] [stdout] --> /rustc/f77b5bc6c7c84df104f86b0dd01d9490e3923fa8/library/core/src/option.rs:1362:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: expected a `FnOnce()` closure, found `Result<_, ParseError>` [INFO] [stdout] --> src/parser.rs:110:25 [INFO] [stdout] | [INFO] [stdout] 110 | .ok_or_else(Err(ParseError::raise())); [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^^^^^^^^^^^ expected an `FnOnce()` closure, found `Result<_, ParseError>` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `FnOnce()` is not implemented for `Result<_, ParseError>` [INFO] [stdout] = note: wrap the `Result<_, ParseError>` in a closure with no arguments: `|| { /* code */ }` [INFO] [stdout] note: required by a bound in `Option::::ok_or_else` [INFO] [stdout] --> /rustc/f77b5bc6c7c84df104f86b0dd01d9490e3923fa8/library/core/src/option.rs:1362:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `getchar` found for mutable reference `&mut Parser` in the current scope [INFO] [stdout] --> src/parser.rs:115:22 [INFO] [stdout] | [INFO] [stdout] 115 | let c = self.getchar(self.current as usize)?; [INFO] [stdout] | ^^^^^^^ method not found in `&mut Parser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `getchar` found for mutable reference `&mut Parser` in the current scope [INFO] [stdout] --> src/parser.rs:115:22 [INFO] [stdout] | [INFO] [stdout] 115 | let c = self.getchar(self.current as usize)?; [INFO] [stdout] | ^^^^^^^ method not found in `&mut Parser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `peek_n` found for mutable reference `&mut Parser` in the current scope [INFO] [stdout] --> src/parser.rs:121:14 [INFO] [stdout] | [INFO] [stdout] 121 | self.peek_n(0) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `peek` with a similar name, but with different arguments [INFO] [stdout] --> src/parser.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | fn peek(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `peek_n` found for mutable reference `&mut Parser` in the current scope [INFO] [stdout] --> src/parser.rs:121:14 [INFO] [stdout] | [INFO] [stdout] 121 | self.peek_n(0) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `peek` with a similar name, but with different arguments [INFO] [stdout] --> src/parser.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | fn peek(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `source` on type `&Parser` [INFO] [stdout] --> src/parser.rs:125:30 [INFO] [stdout] | [INFO] [stdout] 125 | self.current >= self.source.len() [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `tokens`, `start`, `current` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `source` on type `&Parser` [INFO] [stdout] --> src/parser.rs:125:30 [INFO] [stdout] | [INFO] [stdout] 125 | self.current >= self.source.len() [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `tokens`, `start`, `current` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | let mut program = Program { [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:101:32 [INFO] [stdout] | [INFO] [stdout] 101 | fn generate_program(&self, mut program: &Program) -> Result<(), ParseError> { [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `program` [INFO] [stdout] --> src/parser.rs:101:32 [INFO] [stdout] | [INFO] [stdout] 101 | fn generate_program(&self, mut program: &Program) -> Result<(), ParseError> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | let mut program = Program { [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:101:32 [INFO] [stdout] | [INFO] [stdout] 101 | fn generate_program(&self, mut program: &Program) -> Result<(), ParseError> { [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `program` [INFO] [stdout] --> src/parser.rs:101:32 [INFO] [stdout] | [INFO] [stdout] 101 | fn generate_program(&self, mut program: &Program) -> Result<(), ParseError> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0277, E0412, E0599, E0609. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0277, E0412, E0599, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] [INFO] [stderr] error: could not compile `mrbasm` (lib) due to 9 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `mrbasm` (lib test) due to 9 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "5f3814949ba612e20fbf573fbf255763101aa1254ac77efd745765cebefa138f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5f3814949ba612e20fbf573fbf255763101aa1254ac77efd745765cebefa138f", kill_on_drop: false }` [INFO] [stdout] 5f3814949ba612e20fbf573fbf255763101aa1254ac77efd745765cebefa138f