[INFO] cloning repository https://github.com/xoaop/C_compiler.rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/xoaop/C_compiler.rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxoaop%2FC_compiler.rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxoaop%2FC_compiler.rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6cf8f575bb486618000aa88127d12a1e26692b29 [INFO] checking xoaop/C_compiler.rs against master#8f08b3a32478b8d0507732800ecb548a76e0fd0c for pr-144157 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxoaop%2FC_compiler.rs" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/xoaop/C_compiler.rs [INFO] finished tweaking git repo https://github.com/xoaop/C_compiler.rs [INFO] tweaked toml for git repo https://github.com/xoaop/C_compiler.rs written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/xoaop/C_compiler.rs on toolchain 8f08b3a32478b8d0507732800ecb548a76e0fd0c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8f08b3a32478b8d0507732800ecb548a76e0fd0c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/xoaop/C_compiler.rs 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" "+8f08b3a32478b8d0507732800ecb548a76e0fd0c" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+8f08b3a32478b8d0507732800ecb548a76e0fd0c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3860158cb2ec1b46daef4118680a421bd69260201fa9652adc1cf35a32a8194e [INFO] running `Command { std: "docker" "start" "-a" "3860158cb2ec1b46daef4118680a421bd69260201fa9652adc1cf35a32a8194e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3860158cb2ec1b46daef4118680a421bd69260201fa9652adc1cf35a32a8194e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3860158cb2ec1b46daef4118680a421bd69260201fa9652adc1cf35a32a8194e", kill_on_drop: false }` [INFO] [stdout] 3860158cb2ec1b46daef4118680a421bd69260201fa9652adc1cf35a32a8194e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+8f08b3a32478b8d0507732800ecb548a76e0fd0c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8ca93c2ca7623e2e45a604a811b58064b539fbba1cbb32b3fc3d331ba63c99aa [INFO] running `Command { std: "docker" "start" "-a" "8ca93c2ca7623e2e45a604a811b58064b539fbba1cbb32b3fc3d331ba63c99aa", kill_on_drop: false }` [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking c_compiler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `fmt::write` [INFO] [stdout] --> src/asmgen.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{fmt::write, fs::File}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::clone` [INFO] [stdout] --> src/symbol.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::clone; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fmt::write` [INFO] [stdout] --> src/asmgen.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{fmt::write, fs::File}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::clone` [INFO] [stdout] --> src/symbol.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::clone; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/asmgen.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/asmgen.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 60 | Operator::Neg => write!(f, "negl"), [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] 61 | Operator::Not => write!(f, "notl"), [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] 62 | Operator::Add => write!(f, "addl"), [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] 63 | Operator::Sub => write!(f, "subl"), [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 66 | _ => { [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/asmgen.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 170 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/asmgen.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 164 | CondCode::E => write!(f, "e"), [INFO] [stdout] | ----------- matches some of the same values [INFO] [stdout] 165 | CondCode::NE => write!(f, "ne"), [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] 166 | CondCode::G => write!(f, "g"), [INFO] [stdout] | ----------- matches some of the same values [INFO] [stdout] 167 | CondCode::GE => write!(f, "ge"), [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 170 | _ => { [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/asmt.rs:522:17 [INFO] [stdout] | [INFO] [stdout] 522 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/asmt.rs:522:17 [INFO] [stdout] | [INFO] [stdout] 368 | tacky::Instruction::Return(operand) => { [INFO] [stdout] | ----------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 376 | tacky::Instruction::Unary(unray_operator, src, dst) => match unray_operator { [INFO] [stdout] | --------------------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 391 | tacky::Instruction::Binary(bin_op, src1, src2, dst) => match bin_op { [INFO] [stdout] | --------------------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 438 | tacky::Instruction::Jump(target) => { [INFO] [stdout] | -------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 522 | _ => { [INFO] [stdout] | ^ ...and 5 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `stack_padding` is never read [INFO] [stdout] --> src/asmt.rs:469:29 [INFO] [stdout] | [INFO] [stdout] 469 | let mut stack_padding = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/asmgen.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/asmgen.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 60 | Operator::Neg => write!(f, "negl"), [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] 61 | Operator::Not => write!(f, "notl"), [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] 62 | Operator::Add => write!(f, "addl"), [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] 63 | Operator::Sub => write!(f, "subl"), [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 66 | _ => { [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `storage_class` [INFO] [stdout] --> src/tacky.rs:196:63 [INFO] [stdout] | [INFO] [stdout] 196 | ast::AstNode::FunctionDecl { name, params, body , storage_class} => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: try ignoring the field: `storage_class: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/asmgen.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 170 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/asmgen.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 164 | CondCode::E => write!(f, "e"), [INFO] [stdout] | ----------- matches some of the same values [INFO] [stdout] 165 | CondCode::NE => write!(f, "ne"), [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] 166 | CondCode::G => write!(f, "g"), [INFO] [stdout] | ----------- matches some of the same values [INFO] [stdout] 167 | CondCode::GE => write!(f, "ge"), [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 170 | _ => { [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `storage_class` [INFO] [stdout] --> src/tacky.rs:330:54 [INFO] [stdout] | [INFO] [stdout] 330 | ast::AstNode::Declaration { name, init , storage_class} => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: try ignoring the field: `storage_class: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `global` is never read [INFO] [stdout] --> src/asmt.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Function { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | pub global: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Function` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Break` and `Continue` are never constructed [INFO] [stdout] --> src/tacky.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 77 | pub enum LabelPrefix { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 82 | Break, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 83 | Continue, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `convert_loop_label` is never used [INFO] [stdout] --> src/tacky.rs:112:4 [INFO] [stdout] | [INFO] [stdout] 112 | fn convert_loop_label(statement: &ast::AstNode) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/asmt.rs:522:17 [INFO] [stdout] | [INFO] [stdout] 522 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/asmt.rs:522:17 [INFO] [stdout] | [INFO] [stdout] 368 | tacky::Instruction::Return(operand) => { [INFO] [stdout] | ----------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 376 | tacky::Instruction::Unary(unray_operator, src, dst) => match unray_operator { [INFO] [stdout] | --------------------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 391 | tacky::Instruction::Binary(bin_op, src1, src2, dst) => match bin_op { [INFO] [stdout] | --------------------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 438 | tacky::Instruction::Jump(target) => { [INFO] [stdout] | -------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 522 | _ => { [INFO] [stdout] | ^ ...and 5 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `stack_padding` is never read [INFO] [stdout] --> src/asmt.rs:469:29 [INFO] [stdout] | [INFO] [stdout] 469 | let mut stack_padding = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `storage_class` [INFO] [stdout] --> src/tacky.rs:196:63 [INFO] [stdout] | [INFO] [stdout] 196 | ast::AstNode::FunctionDecl { name, params, body , storage_class} => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: try ignoring the field: `storage_class: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `storage_class` [INFO] [stdout] --> src/tacky.rs:330:54 [INFO] [stdout] | [INFO] [stdout] 330 | ast::AstNode::Declaration { name, init , storage_class} => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: try ignoring the field: `storage_class: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `global` is never read [INFO] [stdout] --> src/asmt.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Function { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | pub global: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Function` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Break` and `Continue` are never constructed [INFO] [stdout] --> src/tacky.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 77 | pub enum LabelPrefix { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 82 | Break, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 83 | Continue, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `convert_loop_label` is never used [INFO] [stdout] --> src/tacky.rs:112:4 [INFO] [stdout] | [INFO] [stdout] 112 | fn convert_loop_label(statement: &ast::AstNode) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.65s [INFO] running `Command { std: "docker" "inspect" "8ca93c2ca7623e2e45a604a811b58064b539fbba1cbb32b3fc3d331ba63c99aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ca93c2ca7623e2e45a604a811b58064b539fbba1cbb32b3fc3d331ba63c99aa", kill_on_drop: false }` [INFO] [stdout] 8ca93c2ca7623e2e45a604a811b58064b539fbba1cbb32b3fc3d331ba63c99aa