[INFO] cloning repository https://github.com/hzy-hits/sysY_compiler [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hzy-hits/sysY_compiler" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhzy-hits%2FsysY_compiler", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhzy-hits%2FsysY_compiler'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6ea9dc8b97643985bf7b323ffe32e59c6771cf18 [INFO] checking hzy-hits/sysY_compiler against master#e3e432d4d65a55e6db167598e96db2bcb163e316 for pr-140313 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhzy-hits%2FsysY_compiler" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hzy-hits/sysY_compiler on toolchain e3e432d4d65a55e6db167598e96db2bcb163e316 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e3e432d4d65a55e6db167598e96db2bcb163e316" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/hzy-hits/sysY_compiler [INFO] finished tweaking git repo https://github.com/hzy-hits/sysY_compiler [INFO] tweaked toml for git repo https://github.com/hzy-hits/sysY_compiler written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/hzy-hits/sysY_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" "+e3e432d4d65a55e6db167598e96db2bcb163e316" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded key-node-list v0.0.5 [INFO] [stderr] Downloaded koopa v0.0.8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+e3e432d4d65a55e6db167598e96db2bcb163e316" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cd1c865239af07afa4967a105a844bae0d4d76b37c0e406f710a83cb97c3b3e6 [INFO] running `Command { std: "docker" "start" "-a" "cd1c865239af07afa4967a105a844bae0d4d76b37c0e406f710a83cb97c3b3e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cd1c865239af07afa4967a105a844bae0d4d76b37c0e406f710a83cb97c3b3e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cd1c865239af07afa4967a105a844bae0d4d76b37c0e406f710a83cb97c3b3e6", kill_on_drop: false }` [INFO] [stdout] cd1c865239af07afa4967a105a844bae0d4d76b37c0e406f710a83cb97c3b3e6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+e3e432d4d65a55e6db167598e96db2bcb163e316" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 57d0ddb6b916ca2d35001e316168ecbf9df272114d661ecbf523325761133bd7 [INFO] running `Command { std: "docker" "start" "-a" "57d0ddb6b916ca2d35001e316168ecbf9df272114d661ecbf523325761133bd7", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling rustversion v1.0.19 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling home v0.5.11 [INFO] [stderr] Compiling keccak v0.1.5 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling term v1.0.1 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling bit-vec v0.8.0 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling log v0.4.25 [INFO] [stderr] Compiling new_debug_unreachable v1.0.6 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling indexmap v2.7.1 [INFO] [stderr] Compiling bit-set v0.8.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling pico-args v0.5.0 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Compiling ena v0.14.3 [INFO] [stderr] Compiling ascii-canvas v4.0.0 [INFO] [stderr] Compiling anyhow v1.0.95 [INFO] [stderr] Checking colored v2.2.0 [INFO] [stderr] Checking key-node-list v0.0.5 [INFO] [stderr] Checking koopa v0.0.8 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling sha3 v0.10.8 [INFO] [stderr] Compiling string_cache v0.8.7 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking lalrpop-util v0.22.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling lalrpop v0.22.0 [INFO] [stderr] Compiling sysY v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fmt::Write` [INFO] [stdout] --> src/asm_generator/gen_instruct.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BinaryOp` [INFO] [stdout] --> src/asm_generator/gen_instruct.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | BinaryOp, FunctionData, Value, ValueKind, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/asm_generator/register_manager.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BasicBlock`, `FunctionData`, `ValueKind`, and `layout::BasicBlockNode` [INFO] [stdout] --> src/asm_generator/register_manager.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use koopa::ir::{layout::BasicBlockNode, BasicBlock, FunctionData, Value, ValueKind}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ast::Block` [INFO] [stdout] --> src/ast/func_def.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::{ast::Block, ir_builder::IRBuilder, traits::ToIr}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/traits/instruct_generator.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Write` [INFO] [stdout] --> src/asm_generator/gen_instruct.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BinaryOp` [INFO] [stdout] --> src/asm_generator/gen_instruct.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | BinaryOp, FunctionData, Value, ValueKind, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/asm_generator/register_manager.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BasicBlock`, `FunctionData`, `ValueKind`, and `layout::BasicBlockNode` [INFO] [stdout] --> src/asm_generator/register_manager.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use koopa::ir::{layout::BasicBlockNode, BasicBlock, FunctionData, Value, ValueKind}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ast::Block` [INFO] [stdout] --> src/ast/func_def.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::{ast::Block, ir_builder::IRBuilder, traits::ToIr}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/traits/instruct_generator.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> src/asm_generator/gen_instruct.rs:54:37 [INFO] [stdout] | [INFO] [stdout] 54 | fn spill_and_get_reg(&mut self, func: &FunctionData, val: Value) -> Option { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_func` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/asm_generator/gen_instruct.rs:54:58 [INFO] [stdout] | [INFO] [stdout] 54 | fn spill_and_get_reg(&mut self, func: &FunctionData, val: Value) -> Option { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> src/asm_generator/gen_instruct.rs:54:37 [INFO] [stdout] | [INFO] [stdout] 54 | fn spill_and_get_reg(&mut self, func: &FunctionData, val: Value) -> Option { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_func` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/asm_generator/gen_instruct.rs:54:58 [INFO] [stdout] | [INFO] [stdout] 54 | fn spill_and_get_reg(&mut self, func: &FunctionData, val: Value) -> Option { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/asm_generator/register_manager.rs:236:13 [INFO] [stdout] | [INFO] [stdout] 236 | let mut aligned_size = self.current_stack_offset; [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: variable does not need to be mutable [INFO] [stdout] --> src/asm_generator/register_manager.rs:236:13 [INFO] [stdout] | [INFO] [stdout] 236 | let mut aligned_size = self.current_stack_offset; [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: methods `allocate_saved`, `get_calling_convention_reg`, `reserve_for_call`, `get_return_reg`, `mark_register_live`, and `should_allocate_register` are never used [INFO] [stdout] --> src/asm_generator/register_manager.rs:111:19 [INFO] [stdout] | [INFO] [stdout] 55 | impl RiscvRegisterManager { [INFO] [stdout] | ------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 111 | pub(crate) fn allocate_saved(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn get_calling_convention_reg(&self, index: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn reserve_for_call(&mut self, arg_count: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 166 | pub fn get_return_reg(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn mark_register_live(&mut self, reg: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | pub(crate) fn should_allocate_register(&self, val: Value) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_use_count`, `is_last_use`, and `decrease_use_count` are never used [INFO] [stdout] --> src/asm_generator/riscv_asm_generator.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl AsmGenerator { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 69 | fn get_use_count(&self, val: &Value) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | fn is_last_use(&self, val: &Value) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | fn decrease_use_count(&mut self, val: &Value) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `allocate_saved`, `get_calling_convention_reg`, `reserve_for_call`, `get_return_reg`, `mark_register_live`, and `should_allocate_register` are never used [INFO] [stdout] --> src/asm_generator/register_manager.rs:111:19 [INFO] [stdout] | [INFO] [stdout] 55 | impl RiscvRegisterManager { [INFO] [stdout] | ------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 111 | pub(crate) fn allocate_saved(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn get_calling_convention_reg(&self, index: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn reserve_for_call(&mut self, arg_count: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 166 | pub fn get_return_reg(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn mark_register_live(&mut self, reg: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | pub(crate) fn should_allocate_register(&self, val: Value) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_use_count`, `is_last_use`, and `decrease_use_count` are never used [INFO] [stdout] --> src/asm_generator/riscv_asm_generator.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl AsmGenerator { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 69 | fn get_use_count(&self, val: &Value) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | fn is_last_use(&self, val: &Value) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | fn decrease_use_count(&mut self, val: &Value) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `sysY` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `sys_y` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 33.71s [INFO] running `Command { std: "docker" "inspect" "57d0ddb6b916ca2d35001e316168ecbf9df272114d661ecbf523325761133bd7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "57d0ddb6b916ca2d35001e316168ecbf9df272114d661ecbf523325761133bd7", kill_on_drop: false }` [INFO] [stdout] 57d0ddb6b916ca2d35001e316168ecbf9df272114d661ecbf523325761133bd7