[INFO] cloning repository https://github.com/ajprabhu09/compiler [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ajprabhu09/compiler" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fajprabhu09%2Fcompiler", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fajprabhu09%2Fcompiler'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ab00ec976d5dac3c26dfe4c58250d2a0a7bdf44d [INFO] checking ajprabhu09/compiler/ab00ec976d5dac3c26dfe4c58250d2a0a7bdf44d against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fajprabhu09%2Fcompiler" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ajprabhu09/compiler on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ajprabhu09/compiler [INFO] finished tweaking git repo https://github.com/ajprabhu09/compiler [INFO] tweaked toml for git repo https://github.com/ajprabhu09/compiler written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ajprabhu09/compiler already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Updating git repository `https://github.com/maciejhirsz/logos/` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b598c626f582d7290a7696368b7b3b00606c4746fe0bd8535b5d294d80927033 [INFO] running `Command { std: "docker" "start" "-a" "b598c626f582d7290a7696368b7b3b00606c4746fe0bd8535b5d294d80927033", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b598c626f582d7290a7696368b7b3b00606c4746fe0bd8535b5d294d80927033", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b598c626f582d7290a7696368b7b3b00606c4746fe0bd8535b5d294d80927033", kill_on_drop: false }` [INFO] [stdout] b598c626f582d7290a7696368b7b3b00606c4746fe0bd8535b5d294d80927033 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 281b5ab950c634e117a0b0d628ea363145bebd75253fcbb3daaddea8592cd86f [INFO] running `Command { std: "docker" "start" "-a" "281b5ab950c634e117a0b0d628ea363145bebd75253fcbb3daaddea8592cd86f", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling beef v0.5.2 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling cc v1.0.79 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling frontend v0.1.0 (/opt/rustwide/workdir/frontend) [INFO] [stderr] Compiling libc v0.2.141 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking glob v0.3.1 [INFO] [stderr] Checking compiler v0.1.0 (/opt/rustwide/workdir/compiler) [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling psm v0.1.21 [INFO] [stderr] Compiling stacker v0.1.15 [INFO] [stderr] Compiling syn v2.0.38 [INFO] [stderr] Compiling logos-codegen v0.13.0 (https://github.com/maciejhirsz/logos/#291a6249) [INFO] [stderr] Compiling logos-derive v0.13.0 (https://github.com/maciejhirsz/logos/#291a6249) [INFO] [stderr] Checking logos v0.13.0 (https://github.com/maciejhirsz/logos/#291a6249) [INFO] [stdout] warning: unused import: `core::fmt` [INFO] [stdout] --> frontend/src/ast.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::fmt; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `assert_matches::assert_matches`, `boxed`, `io::Empty`, `process::id`, and `vec` [INFO] [stdout] --> frontend/src/ast.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{boxed, fmt::Debug, io::Empty, ops::Range, rc::Rc, vec, assert_matches::assert_matches, collections::LinkedList, process::id}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `empty_expr` and `self` [INFO] [stdout] --> frontend/src/ast.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | token::{self, Token}, parsing::{PResult, ParsingErr, Match, Parseable, Consume, self, ZeroOrMore, MatchSeq, empty_expr, empty_combine... [INFO] [stdout] | ^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Token::*` [INFO] [stdout] --> frontend/src/ast.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use Token::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `clone` and `fs` [INFO] [stdout] --> frontend/src/token.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{clone, fs}; [INFO] [stdout] | ^^^^^ ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Lexer` [INFO] [stdout] --> frontend/src/token.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use logos::{Lexer, Logos}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `format`, `ops`, and `rc::Rc` [INFO] [stdout] --> frontend/src/parsing.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{ops, rc::Rc, fmt::{format, Debug}}; [INFO] [stdout] | ^^^ ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::fmt` [INFO] [stdout] --> frontend/src/ast.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::fmt; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `assert_matches::assert_matches`, `boxed`, `io::Empty`, `process::id`, and `vec` [INFO] [stdout] --> frontend/src/ast.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{boxed, fmt::Debug, io::Empty, ops::Range, rc::Rc, vec, assert_matches::assert_matches, collections::LinkedList, process::id}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `empty_expr` and `self` [INFO] [stdout] --> frontend/src/ast.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | token::{self, Token}, parsing::{PResult, ParsingErr, Match, Parseable, Consume, self, ZeroOrMore, MatchSeq, empty_expr, empty_combine... [INFO] [stdout] | ^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Token::*` [INFO] [stdout] --> frontend/src/ast.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use Token::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `clone` and `fs` [INFO] [stdout] --> frontend/src/token.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{clone, fs}; [INFO] [stdout] | ^^^^^ ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Lexer` [INFO] [stdout] --> frontend/src/token.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use logos::{Lexer, Logos}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `format`, `ops`, and `rc::Rc` [INFO] [stdout] --> frontend/src/parsing.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{ops, rc::Rc, fmt::{format, Debug}}; [INFO] [stdout] | ^^^ ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::assert_matches::assert_matches` [INFO] [stdout] --> frontend/src/parsing.rs:233:9 [INFO] [stdout] | [INFO] [stdout] 233 | use std::assert_matches::assert_matches; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Source` [INFO] [stdout] --> frontend/src/parsing.rs:235:24 [INFO] [stdout] | [INFO] [stdout] 235 | use logos::{Lexer, Source}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Expr`, `SrcInfo`, `self`, and `self` [INFO] [stdout] --> frontend/src/parsing.rs:238:15 [INFO] [stdout] | [INFO] [stdout] 238 | ast::{Expr, SrcInfo, self}, [INFO] [stdout] | ^^^^ ^^^^^^^ ^^^^ [INFO] [stdout] ... [INFO] [stdout] 241 | token::{Token, self}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fmt::format` [INFO] [stdout] --> frontend/src/lib.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 11 | use std::{fmt::format, time::Instant}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `token::Token` [INFO] [stdout] --> frontend/src/lib.rs:13:45 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::{ast::Ast, srcfile::SrcFile, token::Token}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> frontend/src/ast.rs:260:17 [INFO] [stdout] | [INFO] [stdout] 260 | |a, b|{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> frontend/src/ast.rs:260:17 [INFO] [stdout] | [INFO] [stdout] 260 | |a, b|{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> frontend/src/ast.rs:344:30 [INFO] [stdout] | [INFO] [stdout] 344 | ... |a,b| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> frontend/src/ast.rs:344:30 [INFO] [stdout] | [INFO] [stdout] 344 | ... |a,b| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> frontend/src/ast.rs:361:29 [INFO] [stdout] | [INFO] [stdout] 361 | let mut list; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name_` [INFO] [stdout] --> frontend/src/ast.rs:380:50 [INFO] [stdout] | [INFO] [stdout] 380 | if let Expr::FuncDef { name: name_, args, block, return_type } = func_def { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_name_` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> frontend/src/ast.rs:405:56 [INFO] [stdout] | [INFO] [stdout] 405 | if let Expr::FuncDef { name, args, block, return_type } = a { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> frontend/src/ast.rs:361:29 [INFO] [stdout] | [INFO] [stdout] 361 | let mut list; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name_` [INFO] [stdout] --> frontend/src/ast.rs:380:50 [INFO] [stdout] | [INFO] [stdout] 380 | if let Expr::FuncDef { name: name_, args, block, return_type } = func_def { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_name_` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> frontend/src/ast.rs:405:56 [INFO] [stdout] | [INFO] [stdout] 405 | if let Expr::FuncDef { name, args, block, return_type } = a { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `parsing` [INFO] [stdout] --> frontend/src/parsing.rs:239:9 [INFO] [stdout] | [INFO] [stdout] 239 | parsing::*, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lexr` [INFO] [stdout] --> frontend/src/parsing.rs:143:26 [INFO] [stdout] | [INFO] [stdout] 143 | fn peek_match(&self, lexr: &mut Lexer<'a, Token>) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_lexr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lex` [INFO] [stdout] --> frontend/src/parsing.rs:187:6 [INFO] [stdout] | [INFO] [stdout] 187 | |lex: &mut Lexer<'_, Token>| { Ok(Expr::Empty)} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> frontend/src/parsing.rs:191:6 [INFO] [stdout] | [INFO] [stdout] 191 | |a, b| Ok(Expr::Empty) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> frontend/src/parsing.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | |a, b| Ok(Expr::Empty) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> frontend/src/parsing.rs:194:9 [INFO] [stdout] | [INFO] [stdout] 194 | |a, b| Ok(a) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> frontend/src/parsing.rs:198:6 [INFO] [stdout] | [INFO] [stdout] 198 | |a, b| Ok(b) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lexr` [INFO] [stdout] --> frontend/src/parsing.rs:217:26 [INFO] [stdout] | [INFO] [stdout] 217 | fn peek_match(&self, lexr: &mut Lexer<'a, Token>) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_lexr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lexr` [INFO] [stdout] --> frontend/src/parsing.rs:143:26 [INFO] [stdout] | [INFO] [stdout] 143 | fn peek_match(&self, lexr: &mut Lexer<'a, Token>) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_lexr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lex` [INFO] [stdout] --> frontend/src/parsing.rs:187:6 [INFO] [stdout] | [INFO] [stdout] 187 | |lex: &mut Lexer<'_, Token>| { Ok(Expr::Empty)} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> frontend/src/parsing.rs:191:6 [INFO] [stdout] | [INFO] [stdout] 191 | |a, b| Ok(Expr::Empty) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> frontend/src/parsing.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | |a, b| Ok(Expr::Empty) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> frontend/src/parsing.rs:194:9 [INFO] [stdout] | [INFO] [stdout] 194 | |a, b| Ok(a) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> frontend/src/parsing.rs:198:6 [INFO] [stdout] | [INFO] [stdout] 198 | |a, b| Ok(b) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lexr` [INFO] [stdout] --> frontend/src/parsing.rs:217:26 [INFO] [stdout] | [INFO] [stdout] 217 | fn peek_match(&self, lexr: &mut Lexer<'a, Token>) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_lexr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `files` [INFO] [stdout] --> frontend/src/lib.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let files = glob("./test_files/*.snake").expect("invalid path"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_files` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `testsrc` is never used [INFO] [stdout] --> frontend/src/parsing.rs:244:12 [INFO] [stdout] | [INFO] [stdout] 244 | pub fn testsrc(src: &str) -> SrcFile { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_lexr` is never used [INFO] [stdout] --> frontend/src/parsing.rs:251:12 [INFO] [stdout] | [INFO] [stdout] 251 | pub fn print_lexr<'a>(lexr: &mut Lexer<'a, Token>) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking middle v0.1.0 (/opt/rustwide/workdir/middle) [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::panicking::panic` [INFO] [stdout] --> middle/src/typechecking.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::panicking::panic; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> middle/src/typechecking.rs:2:25 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{collections::{HashMap, BTreeMap}, rc::Rc}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> middle/src/typechecking.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::panicking::panic` [INFO] [stdout] --> middle/src/typechecking.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::panicking::panic; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> middle/src/typechecking.rs:2:25 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{collections::{HashMap, BTreeMap}, rc::Rc}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'panic_internals': internal details of the implementation of the `panic!` and related macros [INFO] [stdout] --> middle/src/typechecking.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::panicking::panic; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: add `#![feature(panic_internals)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> middle/src/typechecking.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'panic_internals': internal details of the implementation of the `panic!` and related macros [INFO] [stdout] --> middle/src/typechecking.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::panicking::panic; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: add `#![feature(panic_internals)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> middle/src/typechecking.rs:74:24 [INFO] [stdout] | [INFO] [stdout] 36 | fn check(&mut self) -> Type<'a> { [INFO] [stdout] | -------- expected `frontend::ast::Type<'_>` because of return type [INFO] [stdout] ... [INFO] [stdout] 74 | return ty; [INFO] [stdout] | ^^ expected `Type<'_>`, found `Option>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `frontend::ast::Type<'_>` [INFO] [stdout] found enum `Option>` [INFO] [stdout] help: consider using `Option::expect` to unwrap the `Option>` value, panicking if the value is an `Option::None` [INFO] [stdout] | [INFO] [stdout] 74 | return ty.expect("REASON"); [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> middle/src/typechecking.rs:74:24 [INFO] [stdout] | [INFO] [stdout] 36 | fn check(&mut self) -> Type<'a> { [INFO] [stdout] | -------- expected `frontend::ast::Type<'_>` because of return type [INFO] [stdout] ... [INFO] [stdout] 74 | return ty; [INFO] [stdout] | ^^ expected `Type<'_>`, found `Option>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `frontend::ast::Type<'_>` [INFO] [stdout] found enum `Option>` [INFO] [stdout] help: consider using `Option::expect` to unwrap the `Option>` value, panicking if the value is an `Option::None` [INFO] [stdout] | [INFO] [stdout] 74 | return ty.expect("REASON"); [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `middle` (lib) due to 3 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `middle` (lib test) due to 3 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "281b5ab950c634e117a0b0d628ea363145bebd75253fcbb3daaddea8592cd86f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "281b5ab950c634e117a0b0d628ea363145bebd75253fcbb3daaddea8592cd86f", kill_on_drop: false }` [INFO] [stdout] 281b5ab950c634e117a0b0d628ea363145bebd75253fcbb3daaddea8592cd86f