[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] testing ajprabhu09/compiler against try#0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6 for pr-137122-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fajprabhu09%2Fcompiler" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] error: unable to write file frontend/build.rs [INFO] [stderr] fatal: cannot create directory at 'frontend/src': No space left on device [INFO] [stderr] warning: Clone succeeded, but checkout failed. [INFO] [stderr] You can inspect what was checked out with 'git status' [INFO] [stderr] and retry with 'git restore --source=HEAD :/' [INFO] [stderr] [INFO] testing ajprabhu09/compiler against try#0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6 for pr-137122-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fajprabhu09%2Fcompiler" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [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-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ajprabhu09/compiler on toolchain 0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "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] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e9c6a7b8c53cc796e795a7c0c6b9877d6fa666f7579a431339f8dff91b9025e7 [INFO] running `Command { std: "docker" "start" "-a" "e9c6a7b8c53cc796e795a7c0c6b9877d6fa666f7579a431339f8dff91b9025e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e9c6a7b8c53cc796e795a7c0c6b9877d6fa666f7579a431339f8dff91b9025e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9c6a7b8c53cc796e795a7c0c6b9877d6fa666f7579a431339f8dff91b9025e7", kill_on_drop: false }` [INFO] [stdout] e9c6a7b8c53cc796e795a7c0c6b9877d6fa666f7579a431339f8dff91b9025e7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4d407664197cf9be850a5b912d298d4267007dbe597a4cd568876b334497638c [INFO] running `Command { std: "docker" "start" "-a" "4d407664197cf9be850a5b912d298d4267007dbe597a4cd568876b334497638c", 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 regex-syntax v0.6.29 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling frontend v0.1.0 (/opt/rustwide/workdir/frontend) [INFO] [stderr] Compiling compiler v0.1.0 (/opt/rustwide/workdir/compiler) [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] Compiling 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 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: 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 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: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> frontend/src/srcfile.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn lexer(&self) -> Lexer { [INFO] [stdout] | ^^^^^ ------------ the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 13 | pub fn lexer(&self) -> Lexer<'_, Token> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling 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] 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 2025-06-26; 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] 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 2 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "4d407664197cf9be850a5b912d298d4267007dbe597a4cd568876b334497638c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4d407664197cf9be850a5b912d298d4267007dbe597a4cd568876b334497638c", kill_on_drop: false }` [INFO] [stdout] 4d407664197cf9be850a5b912d298d4267007dbe597a4cd568876b334497638c