[INFO] cloning repository https://github.com/karlguy/hcc [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/karlguy/hcc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkarlguy%2Fhcc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkarlguy%2Fhcc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 18ef8c6b2ef54e1286b7d5b2544f6c7d64ac360d [INFO] checking karlguy/hcc against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkarlguy%2Fhcc" "/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/karlguy/hcc on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/karlguy/hcc [INFO] finished tweaking git repo https://github.com/karlguy/hcc [INFO] tweaked toml for git repo https://github.com/karlguy/hcc written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/karlguy/hcc already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: lib.patch [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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9fe4053e38643f9e943dc4b45ebf1cc8d5db561ebae7fd6d93a30fef6f545f60 [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" "9fe4053e38643f9e943dc4b45ebf1cc8d5db561ebae7fd6d93a30fef6f545f60", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9fe4053e38643f9e943dc4b45ebf1cc8d5db561ebae7fd6d93a30fef6f545f60", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9fe4053e38643f9e943dc4b45ebf1cc8d5db561ebae7fd6d93a30fef6f545f60", kill_on_drop: false }` [INFO] [stdout] 9fe4053e38643f9e943dc4b45ebf1cc8d5db561ebae7fd6d93a30fef6f545f60 [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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 5d36c99908d39130599e521b12e3d39edf697dbd2835224e18c867771827b35f [INFO] running `Command { std: "docker" "start" "-a" "5d36c99908d39130599e521b12e3d39edf697dbd2835224e18c867771827b35f", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: lib.patch [INFO] [stderr] Checking libc v0.2.39 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking lazy_static v1.0.0 [INFO] [stderr] Checking utf8-ranges v1.0.0 [INFO] [stderr] Checking regex-syntax v0.4.2 [INFO] [stderr] Checking unreachable v1.0.0 [INFO] [stderr] Checking thread_local v0.3.5 [INFO] [stderr] Checking memchr v2.0.1 [INFO] [stderr] Checking aho-corasick v0.6.4 [INFO] [stderr] Checking regex v0.2.6 [INFO] [stderr] Checking hcc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0583]: file not found for module `tok` [INFO] [stdout] --> src/lib.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub mod tok; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `tok`, create file "src/tok.rs" [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `tok` [INFO] [stdout] --> src/lib.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub mod tok; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `tok`, create file "src/tok.rs" [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `(`, `,`, `=`, `{`, or `}`, found `Init` [INFO] [stdout] --> src/ast.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 44 | UnInit [INFO] [stdout] | - [INFO] [stdout] | | [INFO] [stdout] | expected one of `(`, `,`, `=`, `{`, or `}` [INFO] [stdout] | help: missing `,` [INFO] [stdout] 45 | Init [INFO] [stdout] | ^^^^ unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `(`, `,`, `=`, `{`, or `}`, found `Union` [INFO] [stdout] --> src/ast.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 45 | Init [INFO] [stdout] | - [INFO] [stdout] | | [INFO] [stdout] | expected one of `(`, `,`, `=`, `{`, or `}` [INFO] [stdout] | help: missing `,` [INFO] [stdout] 46 | Union(Union [INFO] [stdout] | ^^^^^ unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: mismatched closing delimiter: `}` [INFO] [stdout] --> src/ast.rs:47:1 [INFO] [stdout] | [INFO] [stdout] 43 | pub enum ValueStmt { [INFO] [stdout] | - closing delimiter possibly meant for this [INFO] [stdout] ... [INFO] [stdout] 46 | Union(Union [INFO] [stdout] | - unclosed delimiter [INFO] [stdout] 47 | } [INFO] [stdout] | ^ mismatched closing delimiter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `(`, `,`, `=`, `{`, or `}`, found `Init` [INFO] [stdout] --> src/ast.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 44 | UnInit [INFO] [stdout] | - [INFO] [stdout] | | [INFO] [stdout] | expected one of `(`, `,`, `=`, `{`, or `}` [INFO] [stdout] | help: missing `,` [INFO] [stdout] 45 | Init [INFO] [stdout] | ^^^^ unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `(`, `,`, `=`, `{`, or `}`, found `Union` [INFO] [stdout] --> src/ast.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 45 | Init [INFO] [stdout] | - [INFO] [stdout] | | [INFO] [stdout] | expected one of `(`, `,`, `=`, `{`, or `}` [INFO] [stdout] | help: missing `,` [INFO] [stdout] 46 | Union(Union [INFO] [stdout] | ^^^^^ unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: mismatched closing delimiter: `}` [INFO] [stdout] --> src/ast.rs:47:1 [INFO] [stdout] | [INFO] [stdout] 43 | pub enum ValueStmt { [INFO] [stdout] | - closing delimiter possibly meant for this [INFO] [stdout] ... [INFO] [stdout] 46 | Union(Union [INFO] [stdout] | - unclosed delimiter [INFO] [stdout] 47 | } [INFO] [stdout] | ^ mismatched closing delimiter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: maybe a missing crate `token`? [INFO] [stdout] --> src/lex.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use token::Direction::*; [INFO] [stdout] | ^^^^^ maybe a missing crate `token`? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: maybe a missing crate `token`? [INFO] [stdout] --> src/lex.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use token::Operator::*; [INFO] [stdout] | ^^^^^ maybe a missing crate `token`? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `token` [INFO] [stdout] --> src/lex.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use token::*; [INFO] [stdout] | ^^^^^ maybe a missing crate `token`? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:18:23 [INFO] [stdout] | [INFO] [stdout] 18 | if new_tok != Token::Whitespace { [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:73:24 [INFO] [stdout] | [INFO] [stdout] 73 | ' ' => sin_tok(Token::Whitespace), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:74:24 [INFO] [stdout] | [INFO] [stdout] 74 | '{' => sin_tok(Token::Brace(Left)), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:75:24 [INFO] [stdout] | [INFO] [stdout] 75 | '}' => sin_tok(Token::Brace(Right)), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:76:24 [INFO] [stdout] | [INFO] [stdout] 76 | '(' => sin_tok(Token::Parenthesis(Left)), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:77:24 [INFO] [stdout] | [INFO] [stdout] 77 | ')' => sin_tok(Token::Parenthesis(Right)), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:78:24 [INFO] [stdout] | [INFO] [stdout] 78 | ';' => sin_tok(Token::Semicolon), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:79:24 [INFO] [stdout] | [INFO] [stdout] 79 | '+' => sin_tok(Token::Operator(Add)), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:80:24 [INFO] [stdout] | [INFO] [stdout] 80 | '-' => sin_tok(Token::Operator(Sub)), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:81:24 [INFO] [stdout] | [INFO] [stdout] 81 | '*' => sin_tok(Token::Operator(Star)), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:93:30 [INFO] [stdout] | [INFO] [stdout] 93 | return Some((Token::Whitespace,local_pos+1)); [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:95:32 [INFO] [stdout] | [INFO] [stdout] 95 | return sin_tok(Token::Operator(Div)); [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:98:24 [INFO] [stdout] | [INFO] [stdout] 98 | '=' => sin_tok(Token::Operator(Equal)), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:99:24 [INFO] [stdout] | [INFO] [stdout] 99 | '>' => sin_tok(Token::Operator(Greater)), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:100:24 [INFO] [stdout] | [INFO] [stdout] 100 | '<' => sin_tok(Token::Operator(Less)), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:101:24 [INFO] [stdout] | [INFO] [stdout] 101 | ',' => sin_tok(Token::Comma), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:111:25 [INFO] [stdout] | [INFO] [stdout] 111 | '\t' => sin_tok(Token::Whitespace), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:112:25 [INFO] [stdout] | [INFO] [stdout] 112 | '\r' => sin_tok(Token::Whitespace), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:113:25 [INFO] [stdout] | [INFO] [stdout] 113 | '\n' => sin_tok(Token::Whitespace), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:135:20 [INFO] [stdout] | [INFO] [stdout] 135 | Some(0) => Token::Basetype( [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Basetype` [INFO] [stdout] --> src/lex.rs:137:29 [INFO] [stdout] | [INFO] [stdout] 137 | "I0" => Basetype::I0, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Basetype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Basetype` [INFO] [stdout] --> src/lex.rs:138:29 [INFO] [stdout] | [INFO] [stdout] 138 | "I8" => Basetype::I8, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Basetype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Basetype` [INFO] [stdout] --> src/lex.rs:139:30 [INFO] [stdout] | [INFO] [stdout] 139 | "I16" => Basetype::I16, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Basetype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Basetype` [INFO] [stdout] --> src/lex.rs:140:30 [INFO] [stdout] | [INFO] [stdout] 140 | "I32" => Basetype::I32, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Basetype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Basetype` [INFO] [stdout] --> src/lex.rs:141:30 [INFO] [stdout] | [INFO] [stdout] 141 | "I64" => Basetype::I64, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Basetype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Basetype` [INFO] [stdout] --> src/lex.rs:142:29 [INFO] [stdout] | [INFO] [stdout] 142 | "U0" => Basetype::U0, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Basetype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Basetype` [INFO] [stdout] --> src/lex.rs:143:29 [INFO] [stdout] | [INFO] [stdout] 143 | "U8" => Basetype::U8, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Basetype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Basetype` [INFO] [stdout] --> src/lex.rs:144:30 [INFO] [stdout] | [INFO] [stdout] 144 | "U16" => Basetype::U16, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Basetype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Basetype` [INFO] [stdout] --> src/lex.rs:145:30 [INFO] [stdout] | [INFO] [stdout] 145 | "U32" => Basetype::U32, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Basetype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Basetype` [INFO] [stdout] --> src/lex.rs:146:30 [INFO] [stdout] | [INFO] [stdout] 146 | "U64" => Basetype::U64, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Basetype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:150:20 [INFO] [stdout] | [INFO] [stdout] 150 | Some(1) => Token::Number(s.parse::().unwrap()), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:153:34 [INFO] [stdout] | [INFO] [stdout] 153 | "include" => Token::Keyword(Keyword::Include), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Keyword` [INFO] [stdout] --> src/lex.rs:153:49 [INFO] [stdout] | [INFO] [stdout] 153 | "include" => Token::Keyword(Keyword::Include), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:154:33 [INFO] [stdout] | [INFO] [stdout] 154 | "define" => Token::Keyword(Keyword::Define), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Keyword` [INFO] [stdout] --> src/lex.rs:154:48 [INFO] [stdout] | [INFO] [stdout] 154 | "define" => Token::Keyword(Keyword::Define), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:155:32 [INFO] [stdout] | [INFO] [stdout] 155 | "union" => Token::Keyword(Keyword::Union), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Keyword` [INFO] [stdout] --> src/lex.rs:155:47 [INFO] [stdout] | [INFO] [stdout] 155 | "union" => Token::Keyword(Keyword::Union), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:156:32 [INFO] [stdout] | [INFO] [stdout] 156 | "catch" => Token::Keyword(Keyword::Catch), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Keyword` [INFO] [stdout] --> src/lex.rs:156:47 [INFO] [stdout] | [INFO] [stdout] 156 | "catch" => Token::Keyword(Keyword::Catch), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:157:32 [INFO] [stdout] | [INFO] [stdout] 157 | "class" => Token::Keyword(Keyword::Class), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Keyword` [INFO] [stdout] --> src/lex.rs:157:47 [INFO] [stdout] | [INFO] [stdout] 157 | "class" => Token::Keyword(Keyword::Class), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:158:30 [INFO] [stdout] | [INFO] [stdout] 158 | "try" => Token::Keyword(Keyword::Try), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Keyword` [INFO] [stdout] --> src/lex.rs:158:45 [INFO] [stdout] | [INFO] [stdout] 158 | "try" => Token::Keyword(Keyword::Try), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:159:29 [INFO] [stdout] | [INFO] [stdout] 159 | "if" => Token::Keyword(Keyword::If), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Keyword` [INFO] [stdout] --> src/lex.rs:159:44 [INFO] [stdout] | [INFO] [stdout] 159 | "if" => Token::Keyword(Keyword::If), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:160:31 [INFO] [stdout] | [INFO] [stdout] 160 | "else" => Token::Keyword(Keyword::Else), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Keyword` [INFO] [stdout] --> src/lex.rs:160:46 [INFO] [stdout] | [INFO] [stdout] 160 | "else" => Token::Keyword(Keyword::Else), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:161:30 [INFO] [stdout] | [INFO] [stdout] 161 | "for" => Token::Keyword(Keyword::For), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Keyword` [INFO] [stdout] --> src/lex.rs:161:45 [INFO] [stdout] | [INFO] [stdout] 161 | "for" => Token::Keyword(Keyword::For), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:162:32 [INFO] [stdout] | [INFO] [stdout] 162 | "while" => Token::Keyword(Keyword::While), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Keyword` [INFO] [stdout] --> src/lex.rs:162:47 [INFO] [stdout] | [INFO] [stdout] 162 | "while" => Token::Keyword(Keyword::While), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:163:33 [INFO] [stdout] | [INFO] [stdout] 163 | "extern" => Token::Keyword(Keyword::Extern), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Keyword` [INFO] [stdout] --> src/lex.rs:163:48 [INFO] [stdout] | [INFO] [stdout] 163 | "extern" => Token::Keyword(Keyword::Extern), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:164:33 [INFO] [stdout] | [INFO] [stdout] 164 | "return" => Token::Keyword(Keyword::Return), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Keyword` [INFO] [stdout] --> src/lex.rs:164:48 [INFO] [stdout] | [INFO] [stdout] 164 | "return" => Token::Keyword(Keyword::Return), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:165:26 [INFO] [stdout] | [INFO] [stdout] 165 | _ => Token::Identifier(s), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:168:20 [INFO] [stdout] | [INFO] [stdout] 168 | Some(3) => Token::Unknown, [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:181:26 [INFO] [stdout] | [INFO] [stdout] 181 | return Some((Token::Str(str_buf),local_pos+1)); [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Token` in this scope [INFO] [stdout] --> src/lex.rs:8:36 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn lex(buf: &Vec) -> Vec { [INFO] [stdout] | - ^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Token` in this scope [INFO] [stdout] --> src/lex.rs:10:29 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn lex(buf: &Vec) -> Vec { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 9 | let pos: usize = 0; [INFO] [stdout] 10 | let mut token_list: Vec = Vec::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Token` in this scope [INFO] [stdout] --> src/lex.rs:28:59 [INFO] [stdout] | [INFO] [stdout] 28 | fn parse_token_at(buf: &Vec, pos: usize) -> Option<(Token, usize)> { [INFO] [stdout] | - ^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Token` in this scope [INFO] [stdout] --> src/lex.rs:68:62 [INFO] [stdout] | [INFO] [stdout] 68 | fn tokenize_single_char(buf: &[char], pos: usize) -> Option<(Token,usize)> { [INFO] [stdout] | - ^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Left` in this scope [INFO] [stdout] --> src/lex.rs:74:37 [INFO] [stdout] | [INFO] [stdout] 74 | '{' => sin_tok(Token::Brace(Left)), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::Alignment::Left; [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::rt::v1::Alignment::Left; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Right` in this scope [INFO] [stdout] --> src/lex.rs:75:37 [INFO] [stdout] | [INFO] [stdout] 75 | '}' => sin_tok(Token::Brace(Right)), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::Alignment::Right; [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::rt::v1::Alignment::Right; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Left` in this scope [INFO] [stdout] --> src/lex.rs:76:43 [INFO] [stdout] | [INFO] [stdout] 76 | '(' => sin_tok(Token::Parenthesis(Left)), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::Alignment::Left; [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::rt::v1::Alignment::Left; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Right` in this scope [INFO] [stdout] --> src/lex.rs:77:43 [INFO] [stdout] | [INFO] [stdout] 77 | ')' => sin_tok(Token::Parenthesis(Right)), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::Alignment::Right; [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::rt::v1::Alignment::Right; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Add` in this scope [INFO] [stdout] --> src/lex.rs:79:40 [INFO] [stdout] | [INFO] [stdout] 79 | '+' => sin_tok(Token::Operator(Add)), [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Sub` in this scope [INFO] [stdout] --> src/lex.rs:80:40 [INFO] [stdout] | [INFO] [stdout] 80 | '-' => sin_tok(Token::Operator(Sub)), [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Star` in this scope [INFO] [stdout] --> src/lex.rs:81:40 [INFO] [stdout] | [INFO] [stdout] 81 | '*' => sin_tok(Token::Operator(Star)), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Div` in this scope [INFO] [stdout] --> src/lex.rs:95:48 [INFO] [stdout] | [INFO] [stdout] 95 | return sin_tok(Token::Operator(Div)); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Equal` in this scope [INFO] [stdout] --> src/lex.rs:98:40 [INFO] [stdout] | [INFO] [stdout] 98 | '=' => sin_tok(Token::Operator(Equal)), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 3 | use std::cmp::Ordering::Equal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Greater` in this scope [INFO] [stdout] --> src/lex.rs:99:40 [INFO] [stdout] | [INFO] [stdout] 99 | '>' => sin_tok(Token::Operator(Greater)), [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 3 | use std::cmp::Ordering::Greater; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Less` in this scope [INFO] [stdout] --> src/lex.rs:100:40 [INFO] [stdout] | [INFO] [stdout] 100 | '<' => sin_tok(Token::Operator(Less)), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 3 | use std::cmp::Ordering::Less; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Token` in this scope [INFO] [stdout] --> src/lex.rs:119:41 [INFO] [stdout] | [INFO] [stdout] 119 | fn tokenize_multi_char(buf: &[char]) -> Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Token` in this scope [INFO] [stdout] --> src/lex.rs:173:54 [INFO] [stdout] | [INFO] [stdout] 173 | fn tokenize_str(buf: &[char], pos: usize) -> Option<(Token,usize)> { [INFO] [stdout] | - ^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DefDecl` in this scope [INFO] [stdout] --> src/ast.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | Def(DefDecl), [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ImportDecl` in this scope [INFO] [stdout] --> src/ast.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | Import(ImportDecl), [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NullDecl` in this scope [INFO] [stdout] --> src/ast.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | Null(NullDecl) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `AsmStmt` in this scope [INFO] [stdout] --> src/ast.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | Asm(AsmStmt), [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BreakStmt` in this scope [INFO] [stdout] --> src/ast.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | Break(BreakStmt), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CompoundStmt` in this scope [INFO] [stdout] --> src/ast.rs:18:14 [INFO] [stdout] | [INFO] [stdout] 18 | Compound(CompoundStmt), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ForStmt` in this scope [INFO] [stdout] --> src/ast.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | For(ForStmt), [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `FuncCall` in this scope [INFO] [stdout] --> src/ast.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 21 | FuncCall(FuncCall), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `ast::Stmt::FuncCall`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 21 | FuncCall(ast::Stmt), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IfStmt` in this scope [INFO] [stdout] --> src/ast.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | If(IfStmt), [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RetStmt` in this scope [INFO] [stdout] --> src/ast.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | Ret(RetStmt), [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SwitchCase` in this scope [INFO] [stdout] --> src/ast.rs:24:16 [INFO] [stdout] | [INFO] [stdout] 24 | SwitchCase(SwitchCase), [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `ast::Stmt::SwitchCase`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 24 | SwitchCase(ast::Stmt), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SwitchStmt` in this scope [INFO] [stdout] --> src/ast.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | Switch(SwitchStmt), [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WhileStmt` in this scope [INFO] [stdout] --> src/ast.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 26 | While(WhileStmt), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BinaryOperator` in this scope [INFO] [stdout] --> src/ast.rs:32:20 [INFO] [stdout] | [INFO] [stdout] 32 | BinaryOperator(BinaryOperator) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `ast::Expr::BinaryOperator`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 32 | BinaryOperator(ast::Expr) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Union` in this scope [INFO] [stdout] --> src/ast.rs:46:11 [INFO] [stdout] | [INFO] [stdout] 46 | Union(Union [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::btree_set::Union; [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::hash_set::Union; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0214]: parenthesized type parameters may only be used with a `Fn` trait [INFO] [stdout] --> src/ast.rs:39:15 [INFO] [stdout] | [INFO] [stdout] 39 | pub vars: Vec(ValueStmt), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | only `Fn` traits may use parentheses [INFO] [stdout] | help: use angle brackets instead: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude::*` [INFO] [stdout] --> src/io.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/lex.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | / lazy_static! { [INFO] [stdout] 121 | | static ref RE_SET: RegexSet = RegexSet::new(&[ [INFO] [stdout] 122 | | r"^[IU](0|8|16|32|64)$", // basetype [INFO] [stdout] 123 | | r"^\d+$", // number [INFO] [stdout] ... | [INFO] [stdout] 126 | | ]).unwrap(); [INFO] [stdout] 127 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: maybe a missing crate `token`? [INFO] [stdout] --> src/lex.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use token::Direction::*; [INFO] [stdout] | ^^^^^ maybe a missing crate `token`? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: maybe a missing crate `token`? [INFO] [stdout] --> src/lex.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use token::Operator::*; [INFO] [stdout] | ^^^^^ maybe a missing crate `token`? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `token` [INFO] [stdout] --> src/lex.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use token::*; [INFO] [stdout] | ^^^^^ maybe a missing crate `token`? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:18:23 [INFO] [stdout] | [INFO] [stdout] 18 | if new_tok != Token::Whitespace { [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:73:24 [INFO] [stdout] | [INFO] [stdout] 73 | ' ' => sin_tok(Token::Whitespace), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:74:24 [INFO] [stdout] | [INFO] [stdout] 74 | '{' => sin_tok(Token::Brace(Left)), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:75:24 [INFO] [stdout] | [INFO] [stdout] 75 | '}' => sin_tok(Token::Brace(Right)), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:76:24 [INFO] [stdout] | [INFO] [stdout] 76 | '(' => sin_tok(Token::Parenthesis(Left)), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:77:24 [INFO] [stdout] | [INFO] [stdout] 77 | ')' => sin_tok(Token::Parenthesis(Right)), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:78:24 [INFO] [stdout] | [INFO] [stdout] 78 | ';' => sin_tok(Token::Semicolon), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:79:24 [INFO] [stdout] | [INFO] [stdout] 79 | '+' => sin_tok(Token::Operator(Add)), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:80:24 [INFO] [stdout] | [INFO] [stdout] 80 | '-' => sin_tok(Token::Operator(Sub)), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:81:24 [INFO] [stdout] | [INFO] [stdout] 81 | '*' => sin_tok(Token::Operator(Star)), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:93:30 [INFO] [stdout] | [INFO] [stdout] 93 | return Some((Token::Whitespace,local_pos+1)); [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:95:32 [INFO] [stdout] | [INFO] [stdout] 95 | return sin_tok(Token::Operator(Div)); [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:98:24 [INFO] [stdout] | [INFO] [stdout] 98 | '=' => sin_tok(Token::Operator(Equal)), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:99:24 [INFO] [stdout] | [INFO] [stdout] 99 | '>' => sin_tok(Token::Operator(Greater)), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:100:24 [INFO] [stdout] | [INFO] [stdout] 100 | '<' => sin_tok(Token::Operator(Less)), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:101:24 [INFO] [stdout] | [INFO] [stdout] 101 | ',' => sin_tok(Token::Comma), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:111:25 [INFO] [stdout] | [INFO] [stdout] 111 | '\t' => sin_tok(Token::Whitespace), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:112:25 [INFO] [stdout] | [INFO] [stdout] 112 | '\r' => sin_tok(Token::Whitespace), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:113:25 [INFO] [stdout] | [INFO] [stdout] 113 | '\n' => sin_tok(Token::Whitespace), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:135:20 [INFO] [stdout] | [INFO] [stdout] 135 | Some(0) => Token::Basetype( [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Basetype` [INFO] [stdout] --> src/lex.rs:137:29 [INFO] [stdout] | [INFO] [stdout] 137 | "I0" => Basetype::I0, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Basetype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Basetype` [INFO] [stdout] --> src/lex.rs:138:29 [INFO] [stdout] | [INFO] [stdout] 138 | "I8" => Basetype::I8, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Basetype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Basetype` [INFO] [stdout] --> src/lex.rs:139:30 [INFO] [stdout] | [INFO] [stdout] 139 | "I16" => Basetype::I16, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Basetype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Basetype` [INFO] [stdout] --> src/lex.rs:140:30 [INFO] [stdout] | [INFO] [stdout] 140 | "I32" => Basetype::I32, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Basetype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Basetype` [INFO] [stdout] --> src/lex.rs:141:30 [INFO] [stdout] | [INFO] [stdout] 141 | "I64" => Basetype::I64, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Basetype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Basetype` [INFO] [stdout] --> src/lex.rs:142:29 [INFO] [stdout] | [INFO] [stdout] 142 | "U0" => Basetype::U0, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Basetype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Basetype` [INFO] [stdout] --> src/lex.rs:143:29 [INFO] [stdout] | [INFO] [stdout] 143 | "U8" => Basetype::U8, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Basetype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Basetype` [INFO] [stdout] --> src/lex.rs:144:30 [INFO] [stdout] | [INFO] [stdout] 144 | "U16" => Basetype::U16, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Basetype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Basetype` [INFO] [stdout] --> src/lex.rs:145:30 [INFO] [stdout] | [INFO] [stdout] 145 | "U32" => Basetype::U32, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Basetype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Basetype` [INFO] [stdout] --> src/lex.rs:146:30 [INFO] [stdout] | [INFO] [stdout] 146 | "U64" => Basetype::U64, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Basetype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:150:20 [INFO] [stdout] | [INFO] [stdout] 150 | Some(1) => Token::Number(s.parse::().unwrap()), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:153:34 [INFO] [stdout] | [INFO] [stdout] 153 | "include" => Token::Keyword(Keyword::Include), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Keyword` [INFO] [stdout] --> src/lex.rs:153:49 [INFO] [stdout] | [INFO] [stdout] 153 | "include" => Token::Keyword(Keyword::Include), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:154:33 [INFO] [stdout] | [INFO] [stdout] 154 | "define" => Token::Keyword(Keyword::Define), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Keyword` [INFO] [stdout] --> src/lex.rs:154:48 [INFO] [stdout] | [INFO] [stdout] 154 | "define" => Token::Keyword(Keyword::Define), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:155:32 [INFO] [stdout] | [INFO] [stdout] 155 | "union" => Token::Keyword(Keyword::Union), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Keyword` [INFO] [stdout] --> src/lex.rs:155:47 [INFO] [stdout] | [INFO] [stdout] 155 | "union" => Token::Keyword(Keyword::Union), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:156:32 [INFO] [stdout] | [INFO] [stdout] 156 | "catch" => Token::Keyword(Keyword::Catch), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Keyword` [INFO] [stdout] --> src/lex.rs:156:47 [INFO] [stdout] | [INFO] [stdout] 156 | "catch" => Token::Keyword(Keyword::Catch), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:157:32 [INFO] [stdout] | [INFO] [stdout] 157 | "class" => Token::Keyword(Keyword::Class), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Keyword` [INFO] [stdout] --> src/lex.rs:157:47 [INFO] [stdout] | [INFO] [stdout] 157 | "class" => Token::Keyword(Keyword::Class), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:158:30 [INFO] [stdout] | [INFO] [stdout] 158 | "try" => Token::Keyword(Keyword::Try), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Keyword` [INFO] [stdout] --> src/lex.rs:158:45 [INFO] [stdout] | [INFO] [stdout] 158 | "try" => Token::Keyword(Keyword::Try), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:159:29 [INFO] [stdout] | [INFO] [stdout] 159 | "if" => Token::Keyword(Keyword::If), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Keyword` [INFO] [stdout] --> src/lex.rs:159:44 [INFO] [stdout] | [INFO] [stdout] 159 | "if" => Token::Keyword(Keyword::If), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:160:31 [INFO] [stdout] | [INFO] [stdout] 160 | "else" => Token::Keyword(Keyword::Else), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Keyword` [INFO] [stdout] --> src/lex.rs:160:46 [INFO] [stdout] | [INFO] [stdout] 160 | "else" => Token::Keyword(Keyword::Else), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:161:30 [INFO] [stdout] | [INFO] [stdout] 161 | "for" => Token::Keyword(Keyword::For), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Keyword` [INFO] [stdout] --> src/lex.rs:161:45 [INFO] [stdout] | [INFO] [stdout] 161 | "for" => Token::Keyword(Keyword::For), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:162:32 [INFO] [stdout] | [INFO] [stdout] 162 | "while" => Token::Keyword(Keyword::While), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Keyword` [INFO] [stdout] --> src/lex.rs:162:47 [INFO] [stdout] | [INFO] [stdout] 162 | "while" => Token::Keyword(Keyword::While), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:163:33 [INFO] [stdout] | [INFO] [stdout] 163 | "extern" => Token::Keyword(Keyword::Extern), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Keyword` [INFO] [stdout] --> src/lex.rs:163:48 [INFO] [stdout] | [INFO] [stdout] 163 | "extern" => Token::Keyword(Keyword::Extern), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:164:33 [INFO] [stdout] | [INFO] [stdout] 164 | "return" => Token::Keyword(Keyword::Return), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Keyword` [INFO] [stdout] --> src/lex.rs:164:48 [INFO] [stdout] | [INFO] [stdout] 164 | "return" => Token::Keyword(Keyword::Return), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:165:26 [INFO] [stdout] | [INFO] [stdout] 165 | _ => Token::Identifier(s), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:168:20 [INFO] [stdout] | [INFO] [stdout] 168 | Some(3) => Token::Unknown, [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/lex.rs:181:26 [INFO] [stdout] | [INFO] [stdout] 181 | return Some((Token::Str(str_buf),local_pos+1)); [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Token` in this scope [INFO] [stdout] --> src/lex.rs:8:36 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn lex(buf: &Vec) -> Vec { [INFO] [stdout] | - ^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Token` in this scope [INFO] [stdout] --> src/lex.rs:10:29 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn lex(buf: &Vec) -> Vec { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 9 | let pos: usize = 0; [INFO] [stdout] 10 | let mut token_list: Vec = Vec::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Token` in this scope [INFO] [stdout] --> src/lex.rs:28:59 [INFO] [stdout] | [INFO] [stdout] 28 | fn parse_token_at(buf: &Vec, pos: usize) -> Option<(Token, usize)> { [INFO] [stdout] | - ^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Token` in this scope [INFO] [stdout] --> src/lex.rs:68:62 [INFO] [stdout] | [INFO] [stdout] 68 | fn tokenize_single_char(buf: &[char], pos: usize) -> Option<(Token,usize)> { [INFO] [stdout] | - ^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Left` in this scope [INFO] [stdout] --> src/lex.rs:74:37 [INFO] [stdout] | [INFO] [stdout] 74 | '{' => sin_tok(Token::Brace(Left)), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::Alignment::Left; [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::rt::v1::Alignment::Left; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Right` in this scope [INFO] [stdout] --> src/lex.rs:75:37 [INFO] [stdout] | [INFO] [stdout] 75 | '}' => sin_tok(Token::Brace(Right)), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::Alignment::Right; [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::rt::v1::Alignment::Right; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Left` in this scope [INFO] [stdout] --> src/lex.rs:76:43 [INFO] [stdout] | [INFO] [stdout] 76 | '(' => sin_tok(Token::Parenthesis(Left)), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::Alignment::Left; [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::rt::v1::Alignment::Left; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Right` in this scope [INFO] [stdout] --> src/lex.rs:77:43 [INFO] [stdout] | [INFO] [stdout] 77 | ')' => sin_tok(Token::Parenthesis(Right)), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::Alignment::Right; [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::rt::v1::Alignment::Right; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Add` in this scope [INFO] [stdout] --> src/lex.rs:79:40 [INFO] [stdout] | [INFO] [stdout] 79 | '+' => sin_tok(Token::Operator(Add)), [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Sub` in this scope [INFO] [stdout] --> src/lex.rs:80:40 [INFO] [stdout] | [INFO] [stdout] 80 | '-' => sin_tok(Token::Operator(Sub)), [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Star` in this scope [INFO] [stdout] --> src/lex.rs:81:40 [INFO] [stdout] | [INFO] [stdout] 81 | '*' => sin_tok(Token::Operator(Star)), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Div` in this scope [INFO] [stdout] --> src/lex.rs:95:48 [INFO] [stdout] | [INFO] [stdout] 95 | return sin_tok(Token::Operator(Div)); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Equal` in this scope [INFO] [stdout] --> src/lex.rs:98:40 [INFO] [stdout] | [INFO] [stdout] 98 | '=' => sin_tok(Token::Operator(Equal)), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 3 | use std::cmp::Ordering::Equal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Greater` in this scope [INFO] [stdout] --> src/lex.rs:99:40 [INFO] [stdout] | [INFO] [stdout] 99 | '>' => sin_tok(Token::Operator(Greater)), [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 3 | use std::cmp::Ordering::Greater; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Less` in this scope [INFO] [stdout] --> src/lex.rs:100:40 [INFO] [stdout] | [INFO] [stdout] 100 | '<' => sin_tok(Token::Operator(Less)), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 3 | use std::cmp::Ordering::Less; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Token` in this scope [INFO] [stdout] --> src/lex.rs:119:41 [INFO] [stdout] | [INFO] [stdout] 119 | fn tokenize_multi_char(buf: &[char]) -> Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Token` in this scope [INFO] [stdout] --> src/lex.rs:173:54 [INFO] [stdout] | [INFO] [stdout] 173 | fn tokenize_str(buf: &[char], pos: usize) -> Option<(Token,usize)> { [INFO] [stdout] | - ^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DefDecl` in this scope [INFO] [stdout] --> src/ast.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | Def(DefDecl), [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ImportDecl` in this scope [INFO] [stdout] --> src/ast.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | Import(ImportDecl), [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NullDecl` in this scope [INFO] [stdout] --> src/ast.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | Null(NullDecl) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `AsmStmt` in this scope [INFO] [stdout] --> src/ast.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | Asm(AsmStmt), [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BreakStmt` in this scope [INFO] [stdout] --> src/ast.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | Break(BreakStmt), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CompoundStmt` in this scope [INFO] [stdout] --> src/ast.rs:18:14 [INFO] [stdout] | [INFO] [stdout] 18 | Compound(CompoundStmt), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ForStmt` in this scope [INFO] [stdout] --> src/ast.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | For(ForStmt), [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `FuncCall` in this scope [INFO] [stdout] --> src/ast.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 21 | FuncCall(FuncCall), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `ast::Stmt::FuncCall`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 21 | FuncCall(ast::Stmt), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IfStmt` in this scope [INFO] [stdout] --> src/ast.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | If(IfStmt), [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RetStmt` in this scope [INFO] [stdout] --> src/ast.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | Ret(RetStmt), [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SwitchCase` in this scope [INFO] [stdout] --> src/ast.rs:24:16 [INFO] [stdout] | [INFO] [stdout] 24 | SwitchCase(SwitchCase), [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `ast::Stmt::SwitchCase`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 24 | SwitchCase(ast::Stmt), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SwitchStmt` in this scope [INFO] [stdout] --> src/ast.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | Switch(SwitchStmt), [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WhileStmt` in this scope [INFO] [stdout] --> src/ast.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 26 | While(WhileStmt), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BinaryOperator` in this scope [INFO] [stdout] --> src/ast.rs:32:20 [INFO] [stdout] | [INFO] [stdout] 32 | BinaryOperator(BinaryOperator) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `ast::Expr::BinaryOperator`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 32 | BinaryOperator(ast::Expr) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Union` in this scope [INFO] [stdout] --> src/ast.rs:46:11 [INFO] [stdout] | [INFO] [stdout] 46 | Union(Union [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::btree_set::Union; [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::hash_set::Union; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0214]: parenthesized type parameters may only be used with a `Fn` trait [INFO] [stdout] --> src/ast.rs:39:15 [INFO] [stdout] | [INFO] [stdout] 39 | pub vars: Vec(ValueStmt), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | only `Fn` traits may use parentheses [INFO] [stdout] | help: use angle brackets instead: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude::*` [INFO] [stdout] --> src/io.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/lex.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | / lazy_static! { [INFO] [stdout] 121 | | static ref RE_SET: RegexSet = RegexSet::new(&[ [INFO] [stdout] 122 | | r"^[IU](0|8|16|32|64)$", // basetype [INFO] [stdout] 123 | | r"^\d+$", // number [INFO] [stdout] ... | [INFO] [stdout] 126 | | ]).unwrap(); [INFO] [stdout] 127 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `chars` found for struct `File` in the current scope [INFO] [stdout] --> src/io.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 13 | for c in f.chars() { [INFO] [stdout] | ^^^^^ method not found in `File` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 99 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0214, E0412, E0425, E0432, E0433, E0583, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0214`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `chars` found for struct `File` in the current scope [INFO] [stdout] --> src/io.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 13 | for c in f.chars() { [INFO] [stdout] | ^^^^^ method not found in `File` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `hcc` [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] error: aborting due to 99 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0214, E0412, E0425, E0432, E0433, E0583, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0214`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "5d36c99908d39130599e521b12e3d39edf697dbd2835224e18c867771827b35f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d36c99908d39130599e521b12e3d39edf697dbd2835224e18c867771827b35f", kill_on_drop: false }` [INFO] [stdout] 5d36c99908d39130599e521b12e3d39edf697dbd2835224e18c867771827b35f