[INFO] cloning repository https://github.com/Kokoro2336/pku-minic-kokoro2336 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Kokoro2336/pku-minic-kokoro2336" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKokoro2336%2Fpku-minic-kokoro2336", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKokoro2336%2Fpku-minic-kokoro2336'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 92faca6067ecd4653387dd0eca9ef7eeadd4d95a [INFO] checking Kokoro2336/pku-minic-kokoro2336 against try#0f31acebf540c89e4a4d5d114959fe91973419cb for pr-147017 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKokoro2336%2Fpku-minic-kokoro2336" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Kokoro2336/pku-minic-kokoro2336 [INFO] finished tweaking git repo https://github.com/Kokoro2336/pku-minic-kokoro2336 [INFO] tweaked toml for git repo https://github.com/Kokoro2336/pku-minic-kokoro2336 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Kokoro2336/pku-minic-kokoro2336 on toolchain 0f31acebf540c89e4a4d5d114959fe91973419cb [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0f31acebf540c89e4a4d5d114959fe91973419cb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Kokoro2336/pku-minic-kokoro2336 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" "+0f31acebf540c89e4a4d5d114959fe91973419cb" "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 [ERROR] error running command: no output for 300 seconds [INFO] checking Kokoro2336/pku-minic-kokoro2336 against try#0f31acebf540c89e4a4d5d114959fe91973419cb for pr-147017 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKokoro2336%2Fpku-minic-kokoro2336" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Kokoro2336/pku-minic-kokoro2336 [INFO] finished tweaking git repo https://github.com/Kokoro2336/pku-minic-kokoro2336 [INFO] tweaked toml for git repo https://github.com/Kokoro2336/pku-minic-kokoro2336 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Kokoro2336/pku-minic-kokoro2336 on toolchain 0f31acebf540c89e4a4d5d114959fe91973419cb [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0f31acebf540c89e4a4d5d114959fe91973419cb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Kokoro2336/pku-minic-kokoro2336 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" "+0f31acebf540c89e4a4d5d114959fe91973419cb" "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 lalrpop-util v0.19.12 [INFO] [stderr] Downloaded textwrap v0.15.2 [INFO] [stderr] Downloaded cc v1.2.36 [INFO] [stderr] Downloaded lalrpop v0.19.12 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+0f31acebf540c89e4a4d5d114959fe91973419cb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dfbd2fa7c5bc530f562cd906a919b5a1ebb29c0c96c0f191dbd186605ba245c7 [INFO] running `Command { std: "docker" "start" "-a" "dfbd2fa7c5bc530f562cd906a919b5a1ebb29c0c96c0f191dbd186605ba245c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dfbd2fa7c5bc530f562cd906a919b5a1ebb29c0c96c0f191dbd186605ba245c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dfbd2fa7c5bc530f562cd906a919b5a1ebb29c0c96c0f191dbd186605ba245c7", kill_on_drop: false }` [INFO] [stdout] dfbd2fa7c5bc530f562cd906a919b5a1ebb29c0c96c0f191dbd186605ba245c7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+0f31acebf540c89e4a4d5d114959fe91973419cb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c1a15d50a497eb12f611904bf132701dbade4081126185d3a019b42a7d3b8d95 [INFO] running `Command { std: "docker" "start" "-a" "c1a15d50a497eb12f611904bf132701dbade4081126185d3a019b42a7d3b8d95", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling cfg-if v1.0.3 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling new_debug_unreachable v1.0.6 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling ena v0.14.3 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling diff v0.1.13 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Checking clap_builder v4.4.18 [INFO] [stderr] Checking smawk v0.3.2 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking iana-time-zone v0.1.63 [INFO] [stderr] Checking textwrap v0.15.2 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling indexmap v2.11.0 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling term v0.7.0 [INFO] [stderr] Compiling ascii-canvas v3.0.0 [INFO] [stderr] Compiling string_cache v0.8.9 [INFO] [stderr] Checking regex-automata v0.4.10 [INFO] [stderr] Compiling clap_derive v4.4.7 [INFO] [stderr] Checking regex v1.11.2 [INFO] [stderr] Checking lalrpop-util v0.19.12 [INFO] [stderr] Compiling lalrpop v0.19.12 [INFO] [stderr] Checking clap v4.4.18 [INFO] [stderr] Compiling sysy_compiler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `util::*` [INFO] [stdout] --> src/util/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use util::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `util::*` [INFO] [stdout] --> src/util/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use util::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Asm` is never constructed [INFO] [stdout] --> src/asm/asm.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Asm { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `from` are never used [INFO] [stdout] --> src/asm/asm.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl Asm { [INFO] [stdout] | -------- associated functions in this implementation [INFO] [stdout] 39 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn from(program: &Program) -> Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AsmGlobalVal` is never constructed [INFO] [stdout] --> src/asm/asm.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct AsmGlobalVal { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/asm/asm.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 77 | impl AsmGlobalVal { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 78 | pub fn new(name: String, val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AsmBlock` is never constructed [INFO] [stdout] --> src/asm/asm.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 83 | pub struct AsmBlock { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `from` are never used [INFO] [stdout] --> src/asm/asm.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 98 | impl AsmBlock { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 99 | pub fn new(label: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn from(func: Ref<'_, Func>) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AsmInst` is never constructed [INFO] [stdout] --> src/asm/asm.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 124 | pub struct AsmInst { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from` is never used [INFO] [stdout] --> src/asm/asm.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 152 | impl AsmInst { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 153 | pub fn from(inst_data: &InstData) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RVOpCode` is never used [INFO] [stdout] --> src/asm/config.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum RVOpCode { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RVReg` is never used [INFO] [stdout] --> src/asm/config.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum RVReg { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CompUnit` is never constructed [INFO] [stdout] --> src/ast/ast.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct CompUnit { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FuncDef` is never constructed [INFO] [stdout] --> src/ast/ast.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct FuncDef { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Block` is never constructed [INFO] [stdout] --> src/ast/ast.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Block { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Stmt` is never constructed [INFO] [stdout] --> src/ast/ast.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Stmt { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Program` is never constructed [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Program { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push_global_val`, and `push_func` are never used [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Program { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 15 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn push_global_val(&mut self, global_val: KoopaGlobalVal) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn push_func(&mut self, func: Rc>) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DataFlowGraph` is never constructed [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct DataFlowGraph { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `insert_inst`, `get_inst`, and `get_next_inst_id` are never used [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 46 | impl DataFlowGraph { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 47 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn insert_inst(&mut self, inst: InstData) -> InstId { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn get_inst(&self, inst_id: &InstId) -> Option<&InstData> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | fn get_next_inst_id(&self) -> InstId { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KoopaGlobalVal` is never constructed [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub struct KoopaGlobalVal { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 77 | impl KoopaGlobalVal { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 78 | pub fn new(name: String, val_type: ValueType, val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Func` is never constructed [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 88 | pub struct Func { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push_basic_block`, and `get_params_str` are never used [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 112 | impl Func { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 113 | pub fn new(name: String, func_type: ValueType, params: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | pub fn push_basic_block(&mut self, block: BasicBlock) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn get_params_str(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Param` is never constructed [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 137 | pub struct Param { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BasicBlock` is never constructed [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:143:12 [INFO] [stdout] | [INFO] [stdout] 143 | pub struct BasicBlock { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Asm` is never constructed [INFO] [stdout] --> src/asm/asm.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Asm { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `from` are never used [INFO] [stdout] --> src/asm/asm.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl Asm { [INFO] [stdout] | -------- associated functions in this implementation [INFO] [stdout] 39 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn from(program: &Program) -> Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AsmGlobalVal` is never constructed [INFO] [stdout] --> src/asm/asm.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct AsmGlobalVal { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/asm/asm.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 77 | impl AsmGlobalVal { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 78 | pub fn new(name: String, val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AsmBlock` is never constructed [INFO] [stdout] --> src/asm/asm.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 83 | pub struct AsmBlock { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `from` are never used [INFO] [stdout] --> src/asm/asm.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 98 | impl AsmBlock { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 99 | pub fn new(label: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn from(func: Ref<'_, Func>) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AsmInst` is never constructed [INFO] [stdout] --> src/asm/asm.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 124 | pub struct AsmInst { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from` is never used [INFO] [stdout] --> src/asm/asm.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 152 | impl AsmInst { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 153 | pub fn from(inst_data: &InstData) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RVOpCode` is never used [INFO] [stdout] --> src/asm/config.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum RVOpCode { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RVReg` is never used [INFO] [stdout] --> src/asm/config.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum RVReg { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CompUnit` is never constructed [INFO] [stdout] --> src/ast/ast.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct CompUnit { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FuncDef` is never constructed [INFO] [stdout] --> src/ast/ast.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct FuncDef { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Block` is never constructed [INFO] [stdout] --> src/ast/ast.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Block { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Stmt` is never constructed [INFO] [stdout] --> src/ast/ast.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Stmt { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Program` is never constructed [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Program { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push_global_val`, and `push_func` are never used [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Program { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 15 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn push_global_val(&mut self, global_val: KoopaGlobalVal) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn push_func(&mut self, func: Rc>) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DataFlowGraph` is never constructed [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct DataFlowGraph { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `insert_inst`, `get_inst`, and `get_next_inst_id` are never used [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 46 | impl DataFlowGraph { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 47 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn insert_inst(&mut self, inst: InstData) -> InstId { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn get_inst(&self, inst_id: &InstId) -> Option<&InstData> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | fn get_next_inst_id(&self) -> InstId { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KoopaGlobalVal` is never constructed [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub struct KoopaGlobalVal { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 77 | impl KoopaGlobalVal { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 78 | pub fn new(name: String, val_type: ValueType, val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Func` is never constructed [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 88 | pub struct Func { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push_basic_block`, and `get_params_str` are never used [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 112 | impl Func { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 113 | pub fn new(name: String, func_type: ValueType, params: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | pub fn push_basic_block(&mut self, block: BasicBlock) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn get_params_str(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Param` is never constructed [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 137 | pub struct Param { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BasicBlock` is never constructed [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:143:12 [INFO] [stdout] | [INFO] [stdout] 143 | pub struct BasicBlock { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push_stmt`, and `get_inst` are never used [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:149:12 [INFO] [stdout] | [INFO] [stdout] 148 | impl BasicBlock { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 149 | pub fn new(func: &Rc>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub fn push_stmt(&mut self, stmt: Stmt) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | pub fn get_inst(&self, inst_id: &InstId) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `InstId` is never used [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:189:10 [INFO] [stdout] | [INFO] [stdout] 189 | pub type InstId = u32; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Operand` is never used [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:192:10 [INFO] [stdout] | [INFO] [stdout] 192 | pub enum Operand { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_string` is never used [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:198:12 [INFO] [stdout] | [INFO] [stdout] 197 | impl Operand { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 198 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InstData` is never constructed [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:207:12 [INFO] [stdout] | [INFO] [stdout] 207 | pub struct InstData { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:214:12 [INFO] [stdout] | [INFO] [stdout] 213 | impl InstData { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 214 | pub fn new(opcode: String, operands: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ast2koopa_ir` is never used [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:238:8 [INFO] [stdout] | [INFO] [stdout] 238 | pub fn ast2koopa_ir(ast: &CompUnit) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `KoopaOpCode` is never used [INFO] [stdout] --> src/koopa_ir/config.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum KoopaOpCode { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_opcode` is never used [INFO] [stdout] --> src/koopa_ir/config.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl KoopaOpCode { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 28 | pub fn get_opcode(s: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ValueType` is never used [INFO] [stdout] --> src/config/config.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum ValueType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_str` and `as_str` are never used [INFO] [stdout] --> src/config/config.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl ValueType { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 9 | pub fn from_str(s: &str) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn as_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `redirect_stderr` is never used [INFO] [stdout] --> src/util/util.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn redirect_stderr(path: &str) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_abs_path` is never used [INFO] [stdout] --> src/util/util.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn get_abs_path(rel: &str) -> PathBuf { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push_stmt`, and `get_inst` are never used [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:149:12 [INFO] [stdout] | [INFO] [stdout] 148 | impl BasicBlock { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 149 | pub fn new(func: &Rc>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub fn push_stmt(&mut self, stmt: Stmt) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | pub fn get_inst(&self, inst_id: &InstId) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `InstId` is never used [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:189:10 [INFO] [stdout] | [INFO] [stdout] 189 | pub type InstId = u32; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Operand` is never used [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:192:10 [INFO] [stdout] | [INFO] [stdout] 192 | pub enum Operand { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_string` is never used [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:198:12 [INFO] [stdout] | [INFO] [stdout] 197 | impl Operand { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 198 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InstData` is never constructed [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:207:12 [INFO] [stdout] | [INFO] [stdout] 207 | pub struct InstData { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:214:12 [INFO] [stdout] | [INFO] [stdout] 213 | impl InstData { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 214 | pub fn new(opcode: String, operands: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ast2koopa_ir` is never used [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:238:8 [INFO] [stdout] | [INFO] [stdout] 238 | pub fn ast2koopa_ir(ast: &CompUnit) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `KoopaOpCode` is never used [INFO] [stdout] --> src/koopa_ir/config.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum KoopaOpCode { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_opcode` is never used [INFO] [stdout] --> src/koopa_ir/config.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl KoopaOpCode { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 28 | pub fn get_opcode(s: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ValueType` is never used [INFO] [stdout] --> src/config/config.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum ValueType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_str` and `as_str` are never used [INFO] [stdout] --> src/config/config.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl ValueType { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 9 | pub fn from_str(s: &str) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn as_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `redirect_stderr` is never used [INFO] [stdout] --> src/util/util.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn redirect_stderr(path: &str) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_abs_path` is never used [INFO] [stdout] --> src/util/util.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn get_abs_path(rel: &str) -> PathBuf { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `util::*` [INFO] [stdout] --> src/util/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use util::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `util::*` [INFO] [stdout] --> src/util/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use util::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/asm/config.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum RVReg { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 16 | ZERO, // hardwired zero [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | RA, // return address [INFO] [stdout] | ^^ [INFO] [stdout] 18 | SP, // stack pointer [INFO] [stdout] | ^^ [INFO] [stdout] 19 | GP, // global pointer [INFO] [stdout] | ^^ [INFO] [stdout] 20 | TP, // thread pointer [INFO] [stdout] | ^^ [INFO] [stdout] 21 | T0, T1, T2, // temporaries [INFO] [stdout] | ^^ ^^ ^^ [INFO] [stdout] 22 | S0, S1, // saved registers / frame pointer [INFO] [stdout] | ^^ ^^ [INFO] [stdout] 23 | A0, A1, A2, A3, A4, A5, A6, A7, // function arguments / return values [INFO] [stdout] | ^^ ^^ ^^ ^^ ^^ ^^ ^^ [INFO] [stdout] 24 | S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, // saved registers [INFO] [stdout] | ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^ [INFO] [stdout] 25 | T3, T4, T5, T6, // temporaries [INFO] [stdout] | ^^ ^^ ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/config/config.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl ValueType { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn as_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `push_global_val` is never used [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Program { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn push_global_val(&mut self, global_val: KoopaGlobalVal) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_next_inst_id` is never used [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 46 | impl DataFlowGraph { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | fn get_next_inst_id(&self) -> InstId { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `val_type` is never read [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 71 | pub struct KoopaGlobalVal { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 72 | pub name: String, [INFO] [stdout] 73 | pub val_type: ValueType, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `KoopaGlobalVal` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 77 | impl KoopaGlobalVal { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 78 | pub fn new(name: String, val_type: ValueType, val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `InstId` is never constructed [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:193:5 [INFO] [stdout] | [INFO] [stdout] 192 | pub enum Operand { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 193 | InstId(InstId), // maybe the operand refers to another instruction's result [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Operand` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `users` is never read [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 207 | pub struct InstData { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 210 | pub users: Vec, // instructions that use this instruction's result [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InstData` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `redirect_stderr` is never used [INFO] [stdout] --> src/util/util.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn redirect_stderr(path: &str) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_abs_path` is never used [INFO] [stdout] --> src/util/util.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn get_abs_path(rel: &str) -> PathBuf { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/asm/config.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum RVReg { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 16 | ZERO, // hardwired zero [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | RA, // return address [INFO] [stdout] | ^^ [INFO] [stdout] 18 | SP, // stack pointer [INFO] [stdout] | ^^ [INFO] [stdout] 19 | GP, // global pointer [INFO] [stdout] | ^^ [INFO] [stdout] 20 | TP, // thread pointer [INFO] [stdout] | ^^ [INFO] [stdout] 21 | T0, T1, T2, // temporaries [INFO] [stdout] | ^^ ^^ ^^ [INFO] [stdout] 22 | S0, S1, // saved registers / frame pointer [INFO] [stdout] | ^^ ^^ [INFO] [stdout] 23 | A0, A1, A2, A3, A4, A5, A6, A7, // function arguments / return values [INFO] [stdout] | ^^ ^^ ^^ ^^ ^^ ^^ ^^ [INFO] [stdout] 24 | S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, // saved registers [INFO] [stdout] | ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^ [INFO] [stdout] 25 | T3, T4, T5, T6, // temporaries [INFO] [stdout] | ^^ ^^ ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/config/config.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl ValueType { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn as_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `push_global_val` is never used [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Program { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn push_global_val(&mut self, global_val: KoopaGlobalVal) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_next_inst_id` is never used [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 46 | impl DataFlowGraph { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | fn get_next_inst_id(&self) -> InstId { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `val_type` is never read [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 71 | pub struct KoopaGlobalVal { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 72 | pub name: String, [INFO] [stdout] 73 | pub val_type: ValueType, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `KoopaGlobalVal` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 77 | impl KoopaGlobalVal { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 78 | pub fn new(name: String, val_type: ValueType, val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `InstId` is never constructed [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:193:5 [INFO] [stdout] | [INFO] [stdout] 192 | pub enum Operand { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 193 | InstId(InstId), // maybe the operand refers to another instruction's result [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Operand` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `users` is never read [INFO] [stdout] --> src/koopa_ir/koopa_ir.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 207 | pub struct InstData { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 210 | pub users: Vec, // instructions that use this instruction's result [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InstData` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `redirect_stderr` is never used [INFO] [stdout] --> src/util/util.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn redirect_stderr(path: &str) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_abs_path` is never used [INFO] [stdout] --> src/util/util.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn get_abs_path(rel: &str) -> PathBuf { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.29s [INFO] running `Command { std: "docker" "inspect" "c1a15d50a497eb12f611904bf132701dbade4081126185d3a019b42a7d3b8d95", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c1a15d50a497eb12f611904bf132701dbade4081126185d3a019b42a7d3b8d95", kill_on_drop: false }` [INFO] [stdout] c1a15d50a497eb12f611904bf132701dbade4081126185d3a019b42a7d3b8d95