[INFO] cloning repository https://github.com/JamesZFS/Decaf [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JamesZFS/Decaf" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJamesZFS%2FDecaf", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJamesZFS%2FDecaf'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0710883d707724f1bd1c8867599186c6058d7d43 [INFO] checking JamesZFS/Decaf against master#36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923 for pr-81863 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJamesZFS%2FDecaf" "/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/JamesZFS/Decaf on toolchain 36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/JamesZFS/Decaf [INFO] finished tweaking git repo https://github.com/JamesZFS/Decaf [INFO] tweaked toml for git repo https://github.com/JamesZFS/Decaf written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/JamesZFS/Decaf already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: /workspace/builds/worker-3/source/Cargo.toml: unused manifest key: profile.dev.overrides [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" "rustops/crates-build-env@sha256:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ee8fbaf1faa60c2ba2a2bb1e48027f9e8ab9f4ff8bfffab6ac6e296251a7594e [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "ee8fbaf1faa60c2ba2a2bb1e48027f9e8ab9f4ff8bfffab6ac6e296251a7594e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ee8fbaf1faa60c2ba2a2bb1e48027f9e8ab9f4ff8bfffab6ac6e296251a7594e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ee8fbaf1faa60c2ba2a2bb1e48027f9e8ab9f4ff8bfffab6ac6e296251a7594e", kill_on_drop: false }` [INFO] [stdout] ee8fbaf1faa60c2ba2a2bb1e48027f9e8ab9f4ff8bfffab6ac6e296251a7594e [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=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" "rustops/crates-build-env@sha256:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4d01f77e8f892c1921624481b7b0586bed7ddf162f303f5019adf8c1d87dbb1f [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "4d01f77e8f892c1921624481b7b0586bed7ddf162f303f5019adf8c1d87dbb1f", kill_on_drop: false }` [INFO] [stderr] warning: /opt/rustwide/workdir/Cargo.toml: unused manifest key: profile.dev.overrides [INFO] [stderr] Compiling syn v1.0.11 [INFO] [stderr] Compiling serde v1.0.103 [INFO] [stderr] Compiling arrayvec v0.4.12 [INFO] [stderr] Checking hashbrown v0.5.0 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling bitset v0.1.0 (https://github.com/MashPlant/bitset#a20d7b54) [INFO] [stderr] Compiling static_assertions v0.3.4 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling print v0.1.0 (https://github.com/MashPlant/re2dfa#b8b85e9b) [INFO] [stderr] Checking nodrop v0.1.14 [INFO] [stderr] Compiling cgmath v0.16.1 [INFO] [stderr] Compiling winapi v0.3.8 [INFO] [stderr] Checking vec_map v0.8.1 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking bytecount v0.3.2 [INFO] [stderr] Checking unescape v0.1.0 [INFO] [stderr] Compiling indexmap v1.3.0 [INFO] [stderr] Compiling num-traits v0.2.10 [INFO] [stderr] Compiling nom v5.0.1 [INFO] [stderr] Compiling ryu v1.0.2 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling lexical-core v0.4.6 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking atty v0.2.13 [INFO] [stderr] Compiling regex v1.3.1 [INFO] [stderr] Compiling smallvec v0.6.13 [INFO] [stderr] Checking clap v2.33.0 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Compiling serde_derive v1.0.103 [INFO] [stderr] Checking winconsole v0.10.0 [INFO] [stderr] Checking nom_locate v1.0.0 [INFO] [stderr] Checking colored v1.8.0 [INFO] [stderr] Compiling re2dfa v1.0.0 (https://github.com/MashPlant/re2dfa#b8b85e9b) [INFO] [stderr] Compiling derive_more v0.15.0 [INFO] [stderr] Compiling toml v0.5.5 [INFO] [stderr] Checking common v0.1.0 (/opt/rustwide/workdir/common) [INFO] [stderr] Checking tacvm v0.1.0 (https://github.com/MashPlant/tacvm#a8c9afd9) [INFO] [stderr] Checking tac v0.1.0 (/opt/rustwide/workdir/tac) [INFO] [stderr] Checking tacopt v0.1.0 (/opt/rustwide/workdir/tacopt) [INFO] [stderr] Compiling grammar-config v0.1.0 (https://github.com/MashPlant/lalr1#8d2e0054) [INFO] [stderr] Checking codegen v0.1.0 (/opt/rustwide/workdir/codegen) [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> codegen/src/mips_gen.rs:177:13 [INFO] [stdout] | [INFO] [stdout] 177 | match ARG.nth(i as usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(const_item_mutation)]` on by default [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: mutable reference created due to call to this method [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> codegen/src/mips.rs:26:3 [INFO] [stdout] | [INFO] [stdout] 26 | pub const ARG: RangeInclusive = A0 as u32..=A3 as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> codegen/src/mips_gen.rs:313:15 [INFO] [stdout] | [INFO] [stdout] 313 | match ARG.nth(*arg_num as usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: mutable reference created due to call to this method [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> codegen/src/mips.rs:26:3 [INFO] [stdout] | [INFO] [stdout] 26 | pub const ARG: RangeInclusive = A0 as u32..=A3 as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling ll1-core v0.1.0 (https://github.com/MashPlant/lalr1#8d2e0054) [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> codegen/src/mips_gen.rs:177:13 [INFO] [stdout] | [INFO] [stdout] 177 | match ARG.nth(i as usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(const_item_mutation)]` on by default [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: mutable reference created due to call to this method [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> codegen/src/mips.rs:26:3 [INFO] [stdout] | [INFO] [stdout] 26 | pub const ARG: RangeInclusive = A0 as u32..=A3 as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> codegen/src/mips_gen.rs:313:15 [INFO] [stdout] | [INFO] [stdout] 313 | match ARG.nth(*arg_num as usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: mutable reference created due to call to this method [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> codegen/src/mips.rs:26:3 [INFO] [stdout] | [INFO] [stdout] 26 | pub const ARG: RangeInclusive = A0 as u32..=A3 as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling lalr1-core v0.1.0 (https://github.com/MashPlant/lalr1#8d2e0054) [INFO] [stderr] Compiling parser-gen v0.1.0 (https://github.com/MashPlant/lalr1#8d2e0054) [INFO] [stderr] Compiling parser-macros v0.1.0 (https://github.com/MashPlant/lalr1#8d2e0054) [INFO] [stderr] Checking syntax v0.1.0 (/opt/rustwide/workdir/syntax) [INFO] [stdout] error: custom attribute panicked [INFO] [stdout] --> syntax/src/parser_ll.rs:136:1 [INFO] [stdout] | [INFO] [stdout] 136 | #[ll1(Program)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: Fail to write verbose information into file `verbose.txt`, error: `Read-only file system (os error 30)`. [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenKind` [INFO] [stdout] --> syntax/src/parser_ll.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | TokenKind::_Err => if self.error.0.last().map(|x| x.0) != Some(loc) { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenKind` [INFO] [stdout] --> syntax/src/parser_ll.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | TokenKind::UntermString => { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StackItem` [INFO] [stdout] --> syntax/src/parser_ll.rs:58:66 [INFO] [stdout] | [INFO] [stdout] 58 | if end.contains(&(lookahead.ty as u32)) { return StackItem::_Fail; } [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `StackItem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StackItem` [INFO] [stdout] --> syntax/src/parser_ll.rs:66:32 [INFO] [stdout] | [INFO] [stdout] 66 | return StackItem::_Fail; // failed A, continue analysing [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `StackItem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StackItem` [INFO] [stdout] --> syntax/src/parser_ll.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 80 | StackItem::_Fail [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `StackItem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Lexer` [INFO] [stdout] --> syntax/src/parser_ll.rs:10:29 [INFO] [stdout] | [INFO] [stdout] 10 | match parser.parse(&mut Lexer::new(code.as_bytes())) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parser::Lexer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Token` in this scope [INFO] [stdout] --> syntax/src/parser_ll.rs:22:33 [INFO] [stdout] | [INFO] [stdout] 22 | fn error(&mut self, token: &Token<'p>, lexer_loc: Loc) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parser::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Token` in this scope [INFO] [stdout] --> syntax/src/parser_ll.rs:39:63 [INFO] [stdout] | [INFO] [stdout] 39 | fn _parse<'l: 'p>(&mut self, target: u32, lookahead: &mut Token<'l>, lexer: &mut Lexer<'l>, f: &HashSet) -> StackItem<'p> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parser::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Lexer` in this scope [INFO] [stdout] --> syntax/src/parser_ll.rs:39:86 [INFO] [stdout] | [INFO] [stdout] 39 | fn _parse<'l: 'p>(&mut self, target: u32, lookahead: &mut Token<'l>, lexer: &mut Lexer<'l>, f: &HashSet) -> StackItem<'p> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parser::Lexer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `StackItem` in this scope [INFO] [stdout] --> syntax/src/parser_ll.rs:39:118 [INFO] [stdout] | [INFO] [stdout] 39 | fn _parse<'l: 'p>(&mut self, target: u32, lookahead: &mut Token<'l>, lexer: &mut Lexer<'l>, f: &HashSet) -> StackItem<'p> { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parser::StackItem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FOLLOW` in this scope [INFO] [stdout] --> syntax/src/parser_ll.rs:42:41 [INFO] [stdout] | [INFO] [stdout] 42 | let follow: &[HashSet] = &*FOLLOW; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TABLE` in this scope [INFO] [stdout] --> syntax/src/parser_ll.rs:43:57 [INFO] [stdout] | [INFO] [stdout] 43 | let table: &[HashMap)>] = &*TABLE; // 2D table[nt][t] -> prod rhs comb (u32, Vec) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NT_NUM` in this scope [INFO] [stdout] --> syntax/src/parser_ll.rs:44:34 [INFO] [stdout] | [INFO] [stdout] 44 | let is_nt = |x: u32| x < NT_NUM; // if x is a non-term [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StackItem` [INFO] [stdout] --> syntax/src/parser_ll.rs:76:17 [INFO] [stdout] | [INFO] [stdout] 76 | StackItem::_Token(token) [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parser::StackItem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Token` in this scope [INFO] [stdout] --> syntax/src/parser_ll.rs:87:10 [INFO] [stdout] | [INFO] [stdout] 87 | impl<'p> Token<'p> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parser::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Lexer` in this scope [INFO] [stdout] --> syntax/src/parser_ll.rs:92:6 [INFO] [stdout] | [INFO] [stdout] 92 | impl Lexer<'_> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parser::Lexer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `VecExt`, `mk_block`, `mk_int_lit`, `mk_stmt` [INFO] [stdout] --> syntax/src/parser_ll.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{ast::*, ty::*, VecExt, dft, check_str, mk_expr, mk_stmt, mk_int_lit, mk_block}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ ^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NO_LOC`, `UnOp` [INFO] [stdout] --> syntax/src/parser_ll.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | use common::{ErrorKind, Loc, NO_LOC, BinOp, UnOp, Errors, HashSet, HashMap}; [INFO] [stdout] | ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::Cell` [INFO] [stdout] --> syntax/src/parser_ll.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::cell::Cell; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `parse` found for struct `parser_ll::Parser<'_>` in the current scope [INFO] [stdout] --> syntax/src/parser_ll.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 10 | match parser.parse(&mut Lexer::new(code.as_bytes())) { [INFO] [stdout] | ^^^^^ help: there is an associated function with a similar name: `_parse` [INFO] [stdout] ... [INFO] [stdout] 16 | pub struct Parser<'p> { [INFO] [stdout] | --------------------- method `parse` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `act` found for mutable reference `&mut parser_ll::Parser<'p>` in the current scope [INFO] [stdout] --> syntax/src/parser_ll.rs:83:14 [INFO] [stdout] | [INFO] [stdout] 83 | self.act(*prod, value_stk) // call action [INFO] [stdout] | ^^^ method not found in `&mut parser_ll::Parser<'p>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: custom attribute panicked [INFO] [stdout] --> syntax/src/parser_ll.rs:136:1 [INFO] [stdout] | [INFO] [stdout] 136 | #[ll1(Program)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: Fail to write verbose information into file `verbose.txt`, error: `Read-only file system (os error 30)`. [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenKind` [INFO] [stdout] --> syntax/src/parser_ll.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | TokenKind::_Err => if self.error.0.last().map(|x| x.0) != Some(loc) { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenKind` [INFO] [stdout] --> syntax/src/parser_ll.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | TokenKind::UntermString => { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StackItem` [INFO] [stdout] --> syntax/src/parser_ll.rs:58:66 [INFO] [stdout] | [INFO] [stdout] 58 | if end.contains(&(lookahead.ty as u32)) { return StackItem::_Fail; } [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `StackItem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StackItem` [INFO] [stdout] --> syntax/src/parser_ll.rs:66:32 [INFO] [stdout] | [INFO] [stdout] 66 | return StackItem::_Fail; // failed A, continue analysing [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `StackItem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StackItem` [INFO] [stdout] --> syntax/src/parser_ll.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 80 | StackItem::_Fail [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `StackItem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Lexer` [INFO] [stdout] --> syntax/src/parser_ll.rs:10:29 [INFO] [stdout] | [INFO] [stdout] 10 | match parser.parse(&mut Lexer::new(code.as_bytes())) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parser::Lexer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Token` in this scope [INFO] [stdout] --> syntax/src/parser_ll.rs:22:33 [INFO] [stdout] | [INFO] [stdout] 22 | fn error(&mut self, token: &Token<'p>, lexer_loc: Loc) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parser::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Token` in this scope [INFO] [stdout] --> syntax/src/parser_ll.rs:39:63 [INFO] [stdout] | [INFO] [stdout] 39 | fn _parse<'l: 'p>(&mut self, target: u32, lookahead: &mut Token<'l>, lexer: &mut Lexer<'l>, f: &HashSet) -> StackItem<'p> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parser::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Lexer` in this scope [INFO] [stdout] --> syntax/src/parser_ll.rs:39:86 [INFO] [stdout] | [INFO] [stdout] 39 | fn _parse<'l: 'p>(&mut self, target: u32, lookahead: &mut Token<'l>, lexer: &mut Lexer<'l>, f: &HashSet) -> StackItem<'p> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parser::Lexer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `StackItem` in this scope [INFO] [stdout] --> syntax/src/parser_ll.rs:39:118 [INFO] [stdout] | [INFO] [stdout] 39 | fn _parse<'l: 'p>(&mut self, target: u32, lookahead: &mut Token<'l>, lexer: &mut Lexer<'l>, f: &HashSet) -> StackItem<'p> { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parser::StackItem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 19 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FOLLOW` in this scope [INFO] [stdout] --> syntax/src/parser_ll.rs:42:41 [INFO] [stdout] | [INFO] [stdout] 42 | let follow: &[HashSet] = &*FOLLOW; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TABLE` in this scope [INFO] [stdout] --> syntax/src/parser_ll.rs:43:57 [INFO] [stdout] | [INFO] [stdout] 43 | let table: &[HashMap)>] = &*TABLE; // 2D table[nt][t] -> prod rhs comb (u32, Vec) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NT_NUM` in this scope [INFO] [stdout] --> syntax/src/parser_ll.rs:44:34 [INFO] [stdout] | [INFO] [stdout] 44 | let is_nt = |x: u32| x < NT_NUM; // if x is a non-term [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StackItem` [INFO] [stdout] --> syntax/src/parser_ll.rs:76:17 [INFO] [stdout] | [INFO] [stdout] 76 | StackItem::_Token(token) [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parser::StackItem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Token` in this scope [INFO] [stdout] --> syntax/src/parser_ll.rs:87:10 [INFO] [stdout] | [INFO] [stdout] 87 | impl<'p> Token<'p> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parser::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Lexer` in this scope [INFO] [stdout] --> syntax/src/parser_ll.rs:92:6 [INFO] [stdout] | [INFO] [stdout] 92 | impl Lexer<'_> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parser::Lexer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `syntax` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused imports: `VecExt`, `mk_block`, `mk_int_lit`, `mk_stmt` [INFO] [stdout] --> syntax/src/parser_ll.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{ast::*, ty::*, VecExt, dft, check_str, mk_expr, mk_stmt, mk_int_lit, mk_block}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ ^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NO_LOC`, `UnOp` [INFO] [stdout] --> syntax/src/parser_ll.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | use common::{ErrorKind, Loc, NO_LOC, BinOp, UnOp, Errors, HashSet, HashMap}; [INFO] [stdout] | ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::Cell` [INFO] [stdout] --> syntax/src/parser_ll.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::cell::Cell; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `parse` found for struct `parser_ll::Parser<'_>` in the current scope [INFO] [stdout] --> syntax/src/parser_ll.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 10 | match parser.parse(&mut Lexer::new(code.as_bytes())) { [INFO] [stdout] | ^^^^^ help: there is an associated function with a similar name: `_parse` [INFO] [stdout] ... [INFO] [stdout] 16 | pub struct Parser<'p> { [INFO] [stdout] | --------------------- method `parse` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `act` found for mutable reference `&mut parser_ll::Parser<'p>` in the current scope [INFO] [stdout] --> syntax/src/parser_ll.rs:83:14 [INFO] [stdout] | [INFO] [stdout] 83 | self.act(*prod, value_stk) // call action [INFO] [stdout] | ^^^ method not found in `&mut parser_ll::Parser<'p>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 19 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "4d01f77e8f892c1921624481b7b0586bed7ddf162f303f5019adf8c1d87dbb1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4d01f77e8f892c1921624481b7b0586bed7ddf162f303f5019adf8c1d87dbb1f", kill_on_drop: false }` [INFO] [stdout] 4d01f77e8f892c1921624481b7b0586bed7ddf162f303f5019adf8c1d87dbb1f