[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 against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fajprabhu09%2Fcompiler" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ajprabhu09/compiler on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "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-2-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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "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-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 63dfd9b1d14b9662e42f82ecc41403be6212229837ad4a99128e24ccfce1493b [INFO] running `Command { std: "docker" "start" "-a" "63dfd9b1d14b9662e42f82ecc41403be6212229837ad4a99128e24ccfce1493b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "63dfd9b1d14b9662e42f82ecc41403be6212229837ad4a99128e24ccfce1493b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "63dfd9b1d14b9662e42f82ecc41403be6212229837ad4a99128e24ccfce1493b", kill_on_drop: false }` [INFO] [stdout] 63dfd9b1d14b9662e42f82ecc41403be6212229837ad4a99128e24ccfce1493b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 14e864347f691a391c4d17efe6e8a103aa9a6458704ed73ed911355728c31b28 [INFO] running `Command { std: "docker" "start" "-a" "14e864347f691a391c4d17efe6e8a103aa9a6458704ed73ed911355728c31b28", 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 regex-syntax v0.6.29 [INFO] [stderr] Compiling cc v1.0.79 [INFO] [stderr] Compiling beef v0.5.2 [INFO] [stderr] Compiling frontend v0.1.0 (/opt/rustwide/workdir/frontend) [INFO] [stderr] Compiling libc v0.2.141 [INFO] [stderr] Checking glob v0.3.1 [INFO] [stderr] Checking compiler v0.1.0 (/opt/rustwide/workdir/compiler) [INFO] [stderr] Compiling psm v0.1.21 [INFO] [stderr] Compiling stacker v0.1.15 [INFO] [stderr] Compiling quote v1.0.33 [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`, `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`, `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`, `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`, `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`, `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`, `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`, `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`, `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: the item `Lexer` is imported redundantly [INFO] [stdout] --> frontend/src/parsing.rs:235:17 [INFO] [stdout] | [INFO] [stdout] 235 | use logos::{Lexer, Source}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 239 | parsing::*, [INFO] [stdout] | ---------- the item `Lexer` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Expr`, `SrcInfo`, `self`, `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: the item `Token` is imported redundantly [INFO] [stdout] --> frontend/src/parsing.rs:241:17 [INFO] [stdout] | [INFO] [stdout] 239 | parsing::*, [INFO] [stdout] | ---------- the item `Token` is already imported here [INFO] [stdout] 240 | srcfile::SrcFile, [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: 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: `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 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: `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: `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: `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: `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] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking middle v0.1.0 (/opt/rustwide/workdir/middle) [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] 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-03-29; consider upgrading it if it is out of date [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-03-29; 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] 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] 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" "14e864347f691a391c4d17efe6e8a103aa9a6458704ed73ed911355728c31b28", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "14e864347f691a391c4d17efe6e8a103aa9a6458704ed73ed911355728c31b28", kill_on_drop: false }` [INFO] [stdout] 14e864347f691a391c4d17efe6e8a103aa9a6458704ed73ed911355728c31b28 [INFO] checking ajprabhu09/compiler against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fajprabhu09%2Fcompiler" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ajprabhu09/compiler on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "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-2-tc2/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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8687c0d78a0fe58da5e504c4305f3ca6f325f91cfa4b1fdb8f33f00ef38f0b9e [INFO] running `Command { std: "docker" "start" "-a" "8687c0d78a0fe58da5e504c4305f3ca6f325f91cfa4b1fdb8f33f00ef38f0b9e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8687c0d78a0fe58da5e504c4305f3ca6f325f91cfa4b1fdb8f33f00ef38f0b9e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8687c0d78a0fe58da5e504c4305f3ca6f325f91cfa4b1fdb8f33f00ef38f0b9e", kill_on_drop: false }` [INFO] [stdout] 8687c0d78a0fe58da5e504c4305f3ca6f325f91cfa4b1fdb8f33f00ef38f0b9e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bb2580bf6d944efb8753ea488782922b0ccb4c9273f29d8fbad9176fe0553579 [INFO] running `Command { std: "docker" "start" "-a" "bb2580bf6d944efb8753ea488782922b0ccb4c9273f29d8fbad9176fe0553579", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] no edition found in manifest, probably 2015, skipping [INFO] running `Command { std: "docker" "inspect" "bb2580bf6d944efb8753ea488782922b0ccb4c9273f29d8fbad9176fe0553579", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb2580bf6d944efb8753ea488782922b0ccb4c9273f29d8fbad9176fe0553579", kill_on_drop: false }` [INFO] [stdout] bb2580bf6d944efb8753ea488782922b0ccb4c9273f29d8fbad9176fe0553579