[INFO] cloning repository https://github.com/giluis/c_compiler [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/giluis/c_compiler" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgiluis%2Fc_compiler", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgiluis%2Fc_compiler'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ff0496104e4fb95faccb16b7d5ae5d3e107e39d3 [INFO] checking giluis/c_compiler against master#568f6a8641e391ffcdcdb03e79d0901731d8d399 for pr-117164 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgiluis%2Fc_compiler" "/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/giluis/c_compiler on toolchain 568f6a8641e391ffcdcdb03e79d0901731d8d399 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+568f6a8641e391ffcdcdb03e79d0901731d8d399" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/giluis/c_compiler [INFO] finished tweaking git repo https://github.com/giluis/c_compiler [INFO] tweaked toml for git repo https://github.com/giluis/c_compiler written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/giluis/c_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" "+568f6a8641e391ffcdcdb03e79d0901731d8d399" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking giluis/c_compiler against try#eb3956d47f58f1c7c0a5694b1d3401945bc41dce for pr-117164 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgiluis%2Fc_compiler" "/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/giluis/c_compiler on toolchain eb3956d47f58f1c7c0a5694b1d3401945bc41dce [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+eb3956d47f58f1c7c0a5694b1d3401945bc41dce" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/giluis/c_compiler [INFO] finished tweaking git repo https://github.com/giluis/c_compiler [INFO] tweaked toml for git repo https://github.com/giluis/c_compiler written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/giluis/c_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" "+eb3956d47f58f1c7c0a5694b1d3401945bc41dce" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded arr_macro_impl v0.2.1 [INFO] [stderr] Downloaded arr_macro v0.2.1 [INFO] [stderr] Downloaded nonempty v0.8.1 [INFO] [stderr] Downloaded hatch_result v0.1.8 [INFO] [stderr] Downloaded astray v0.1.11 [INFO] [stderr] Downloaded astray_macro v0.2.3 [INFO] [stderr] Downloaded astray_core v0.1.17 [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" "+eb3956d47f58f1c7c0a5694b1d3401945bc41dce" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a54a3c752f5ee7a084775097bc1db1ad3b49e91924401373cb1da2ff0172a089 [INFO] running `Command { std: "docker" "start" "-a" "a54a3c752f5ee7a084775097bc1db1ad3b49e91924401373cb1da2ff0172a089", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a54a3c752f5ee7a084775097bc1db1ad3b49e91924401373cb1da2ff0172a089", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a54a3c752f5ee7a084775097bc1db1ad3b49e91924401373cb1da2ff0172a089", kill_on_drop: false }` [INFO] [stdout] a54a3c752f5ee7a084775097bc1db1ad3b49e91924401373cb1da2ff0172a089 [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" "+eb3956d47f58f1c7c0a5694b1d3401945bc41dce" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1e79916cf2cc415bd55a53e7194bc484a2cca6a36d7763698749b2820672aa3c [INFO] running `Command { std: "docker" "start" "-a" "1e79916cf2cc415bd55a53e7194bc484a2cca6a36d7763698749b2820672aa3c", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.60 [INFO] [stderr] Compiling quote v1.0.28 [INFO] [stderr] Compiling unicode-ident v1.0.9 [INFO] [stderr] Compiling proc-macro-hack v0.5.20+deprecated [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Compiling beef v0.5.2 [INFO] [stderr] Compiling either v1.8.1 [INFO] [stderr] Compiling hatch_result v0.1.8 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling unicode-segmentation v1.10.1 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Checking nonempty v0.8.1 [INFO] [stderr] Compiling convert_case v0.6.0 [INFO] [stderr] Checking syn v2.0.18 [INFO] [stderr] Compiling logos-codegen v0.13.0 [INFO] [stderr] Compiling logos-derive v0.13.0 [INFO] [stderr] Compiling arr_macro_impl v0.2.1 [INFO] [stderr] Compiling arr_macro v0.2.1 [INFO] [stderr] Compiling astray_core v0.1.17 [INFO] [stderr] Checking logos v0.13.0 [INFO] [stderr] Compiling astray_macro v0.2.3 [INFO] [stderr] Checking astray v0.1.11 [INFO] [stderr] Checking c_grammar v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0412]: cannot find type `LocalVar` in this scope [INFO] [stdout] --> src/codegen/mod.rs:526:14 [INFO] [stdout] | [INFO] [stdout] 526 | LocalVar(LocalVar), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::codegen::Location::LocalVar`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 526 | LocalVar(crate::codegen::Location), [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `process::Command` [INFO] [stdout] --> src/main.rs:2:31 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{fs::read_to_string, process::Command}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `codegen::GenAsm` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use codegen::GenAsm; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Lexer` [INFO] [stdout] --> src/lexer/mod.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | use logos::{Logos, Lexer}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::Deref` [INFO] [stdout] --> src/codegen/immutable_map.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, ops::Deref}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nonempty::NonEmpty` [INFO] [stdout] --> src/codegen/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use nonempty::NonEmpty; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LocalVar` in this scope [INFO] [stdout] --> src/codegen/mod.rs:526:14 [INFO] [stdout] | [INFO] [stdout] 526 | LocalVar(LocalVar), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::codegen::Location::LocalVar`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 526 | LocalVar(crate::codegen::Location), [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `process::Command` [INFO] [stdout] --> src/main.rs:2:31 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{fs::read_to_string, process::Command}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `codegen::GenAsm` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use codegen::GenAsm; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Lexer` [INFO] [stdout] --> src/lexer/mod.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | use logos::{Logos, Lexer}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::Deref` [INFO] [stdout] --> src/codegen/immutable_map.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, ops::Deref}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nonempty::NonEmpty` [INFO] [stdout] --> src/codegen/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use nonempty::NonEmpty; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/codegen/mod.rs:399:88 [INFO] [stdout] | [INFO] [stdout] 399 | Token::Number(literal) => Asm::new() + mov(Operand::Literal(*literal), RAX), [INFO] [stdout] | --- ^^^ expected `Location`, found `Reg` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/codegen/mod.rs:531:5 [INFO] [stdout] | [INFO] [stdout] 531 | mov(Operand, Location), [INFO] [stdout] | ^^^ [INFO] [stdout] help: try wrapping the expression in a variant of `codegen::Location` [INFO] [stdout] | [INFO] [stdout] 399 | Token::Number(literal) => Asm::new() + mov(Operand::Literal(*literal), codegen::Location::Reg(RAX)), [INFO] [stdout] | +++++++++++++++++++++++ + [INFO] [stdout] 399 | Token::Number(literal) => Asm::new() + mov(Operand::Literal(*literal), codegen::Location::LocalVar(RAX)), [INFO] [stdout] | ++++++++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/codegen/mod.rs:414:74 [INFO] [stdout] | [INFO] [stdout] 414 | cmp(Operand::Literal(0), RAX) + mov(Operand::Literal(0), RAX) + sete(RAX.lower()) [INFO] [stdout] | --- ^^^ expected `Location`, found `Reg` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/codegen/mod.rs:531:5 [INFO] [stdout] | [INFO] [stdout] 531 | mov(Operand, Location), [INFO] [stdout] | ^^^ [INFO] [stdout] help: try wrapping the expression in a variant of `codegen::Location` [INFO] [stdout] | [INFO] [stdout] 414 | cmp(Operand::Literal(0), RAX) + mov(Operand::Literal(0), codegen::Location::Reg(RAX)) + sete(RAX.lower()) [INFO] [stdout] | +++++++++++++++++++++++ + [INFO] [stdout] 414 | cmp(Operand::Literal(0), RAX) + mov(Operand::Literal(0), codegen::Location::LocalVar(RAX)) + sete(RAX.lower()) [INFO] [stdout] | ++++++++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `codegen::Location` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/codegen/mod.rs:560:73 [INFO] [stdout] | [INFO] [stdout] 560 | Instruction::mov(operand, reg) => format!("mov {operand}, {reg}"), [INFO] [stdout] | ^^^^^ `codegen::Location` cannot be formatted with the default formatter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `codegen::Location` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::__export::format_args` which comes from the expansion of the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0412. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `c_grammar` (bin "rsc" test) due to 5 previous errors; 5 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/codegen/mod.rs:399:88 [INFO] [stdout] | [INFO] [stdout] 399 | Token::Number(literal) => Asm::new() + mov(Operand::Literal(*literal), RAX), [INFO] [stdout] | --- ^^^ expected `Location`, found `Reg` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/codegen/mod.rs:531:5 [INFO] [stdout] | [INFO] [stdout] 531 | mov(Operand, Location), [INFO] [stdout] | ^^^ [INFO] [stdout] help: try wrapping the expression in a variant of `codegen::Location` [INFO] [stdout] | [INFO] [stdout] 399 | Token::Number(literal) => Asm::new() + mov(Operand::Literal(*literal), codegen::Location::Reg(RAX)), [INFO] [stdout] | +++++++++++++++++++++++ + [INFO] [stdout] 399 | Token::Number(literal) => Asm::new() + mov(Operand::Literal(*literal), codegen::Location::LocalVar(RAX)), [INFO] [stdout] | ++++++++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/codegen/mod.rs:414:74 [INFO] [stdout] | [INFO] [stdout] 414 | cmp(Operand::Literal(0), RAX) + mov(Operand::Literal(0), RAX) + sete(RAX.lower()) [INFO] [stdout] | --- ^^^ expected `Location`, found `Reg` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/codegen/mod.rs:531:5 [INFO] [stdout] | [INFO] [stdout] 531 | mov(Operand, Location), [INFO] [stdout] | ^^^ [INFO] [stdout] help: try wrapping the expression in a variant of `codegen::Location` [INFO] [stdout] | [INFO] [stdout] 414 | cmp(Operand::Literal(0), RAX) + mov(Operand::Literal(0), codegen::Location::Reg(RAX)) + sete(RAX.lower()) [INFO] [stdout] | +++++++++++++++++++++++ + [INFO] [stdout] 414 | cmp(Operand::Literal(0), RAX) + mov(Operand::Literal(0), codegen::Location::LocalVar(RAX)) + sete(RAX.lower()) [INFO] [stdout] | ++++++++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `codegen::Location` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/codegen/mod.rs:560:73 [INFO] [stdout] | [INFO] [stdout] 560 | Instruction::mov(operand, reg) => format!("mov {operand}, {reg}"), [INFO] [stdout] | ^^^^^ `codegen::Location` cannot be formatted with the default formatter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `codegen::Location` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::__export::format_args` which comes from the expansion of the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0412. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `c_grammar` (bin "rsc") due to 5 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "1e79916cf2cc415bd55a53e7194bc484a2cca6a36d7763698749b2820672aa3c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e79916cf2cc415bd55a53e7194bc484a2cca6a36d7763698749b2820672aa3c", kill_on_drop: false }` [INFO] [stdout] 1e79916cf2cc415bd55a53e7194bc484a2cca6a36d7763698749b2820672aa3c