[INFO] cloning repository https://github.com/NailLegProcessorDivide/sampleCompiler [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/NailLegProcessorDivide/sampleCompiler" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNailLegProcessorDivide%2FsampleCompiler", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNailLegProcessorDivide%2FsampleCompiler'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 72ab76c32bf8d3399a84573a1446d1f893094d9b [INFO] checking NailLegProcessorDivide/sampleCompiler against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNailLegProcessorDivide%2FsampleCompiler" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/NailLegProcessorDivide/sampleCompiler on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/NailLegProcessorDivide/sampleCompiler [INFO] finished tweaking git repo https://github.com/NailLegProcessorDivide/sampleCompiler [INFO] tweaked toml for git repo https://github.com/NailLegProcessorDivide/sampleCompiler written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/NailLegProcessorDivide/sampleCompiler 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 23f313d8c5b05e79b3c1e78cca756ea22d79978660946de799482ee95fcef801 [INFO] running `Command { std: "docker" "start" "-a" "23f313d8c5b05e79b3c1e78cca756ea22d79978660946de799482ee95fcef801", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "23f313d8c5b05e79b3c1e78cca756ea22d79978660946de799482ee95fcef801", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "23f313d8c5b05e79b3c1e78cca756ea22d79978660946de799482ee95fcef801", kill_on_drop: false }` [INFO] [stdout] 23f313d8c5b05e79b3c1e78cca756ea22d79978660946de799482ee95fcef801 [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 680f09d8fa7ada0da3f574e991068a46e7f70f2803aee98000a13577fffb3a8b [INFO] running `Command { std: "docker" "start" "-a" "680f09d8fa7ada0da3f574e991068a46e7f70f2803aee98000a13577fffb3a8b", kill_on_drop: false }` [INFO] [stderr] Checking regex-syntax v0.6.28 [INFO] [stderr] Checking either v1.8.1 [INFO] [stderr] Checking aho-corasick v0.7.20 [INFO] [stderr] Checking itertools v0.8.2 [INFO] [stderr] Checking regex v1.7.1 [INFO] [stderr] Checking sample_compiler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `x64::Instruction_x64` [INFO] [stdout] --> src/compile.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | x64::Instruction_x64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::shrink_imm::shrink_imm` [INFO] [stdout] --> src/compile_function.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::shrink_imm::shrink_imm; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::x64::Instruction_x64` [INFO] [stdout] --> src/compile_function.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::x64::Instruction_x64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `print_token_list` [INFO] [stdout] --> src/source_ast.rs:3:27 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokens::{self, print_token_list}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/type_check.rs:77:29 [INFO] [stdout] | [INFO] [stdout] 77 | (Typ::Bool, (OP::And | OP::Or | OP::Eq), Typ::Bool) => Typ::Bool, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 77 - (Typ::Bool, (OP::And | OP::Or | OP::Eq), Typ::Bool) => Typ::Bool, [INFO] [stdout] 77 + (Typ::Bool, OP::And | OP::Or | OP::Eq, Typ::Bool) => Typ::Bool, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/type_check.rs:80:21 [INFO] [stdout] | [INFO] [stdout] 80 | (OP::Plus [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 86 | | OP::BitAnd), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 80 ~ OP::Plus [INFO] [stdout] 81 | | OP::Minus [INFO] [stdout] ... [INFO] [stdout] 85 | | OP::BitOr [INFO] [stdout] 86 ~ | OP::BitAnd, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/type_check.rs:89:28 [INFO] [stdout] | [INFO] [stdout] 89 | (Typ::Int, (OP::Lt | OP::Eq | OP::Gt), Typ::Int) => Typ::Bool, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 89 - (Typ::Int, (OP::Lt | OP::Eq | OP::Gt), Typ::Int) => Typ::Bool, [INFO] [stdout] 89 + (Typ::Int, OP::Lt | OP::Eq | OP::Gt, Typ::Int) => Typ::Bool, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::internal::Inst` [INFO] [stdout] --> src/x64.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use regex::internal::Inst; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Instruction_x64` should have an upper camel case name [INFO] [stdout] --> src/x64.rs:312:10 [INFO] [stdout] | [INFO] [stdout] 312 | pub enum Instruction_x64<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `InstructionX64` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `x64::Instruction_x64` [INFO] [stdout] --> src/compile.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | x64::Instruction_x64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::shrink_imm::shrink_imm` [INFO] [stdout] --> src/compile_function.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::shrink_imm::shrink_imm; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::x64::Instruction_x64` [INFO] [stdout] --> src/compile_function.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::x64::Instruction_x64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `print_token_list` [INFO] [stdout] --> src/source_ast.rs:3:27 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokens::{self, print_token_list}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/type_check.rs:77:29 [INFO] [stdout] | [INFO] [stdout] 77 | (Typ::Bool, (OP::And | OP::Or | OP::Eq), Typ::Bool) => Typ::Bool, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 77 - (Typ::Bool, (OP::And | OP::Or | OP::Eq), Typ::Bool) => Typ::Bool, [INFO] [stdout] 77 + (Typ::Bool, OP::And | OP::Or | OP::Eq, Typ::Bool) => Typ::Bool, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/type_check.rs:80:21 [INFO] [stdout] | [INFO] [stdout] 80 | (OP::Plus [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 86 | | OP::BitAnd), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 80 ~ OP::Plus [INFO] [stdout] 81 | | OP::Minus [INFO] [stdout] ... [INFO] [stdout] 85 | | OP::BitOr [INFO] [stdout] 86 ~ | OP::BitAnd, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/type_check.rs:89:28 [INFO] [stdout] | [INFO] [stdout] 89 | (Typ::Int, (OP::Lt | OP::Eq | OP::Gt), Typ::Int) => Typ::Bool, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 89 - (Typ::Int, (OP::Lt | OP::Eq | OP::Gt), Typ::Int) => Typ::Bool, [INFO] [stdout] 89 + (Typ::Int, OP::Lt | OP::Eq | OP::Gt, Typ::Int) => Typ::Bool, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::internal::Inst` [INFO] [stdout] --> src/x64.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use regex::internal::Inst; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Instruction_x64` should have an upper camel case name [INFO] [stdout] --> src/x64.rs:312:10 [INFO] [stdout] | [INFO] [stdout] 312 | pub enum Instruction_x64<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `InstructionX64` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a method with this name may be added to the standard library in the future [INFO] [stdout] --> src/tokens.rs:208:10 [INFO] [stdout] | [INFO] [stdout] 208 | .intersperse(r"|".to_string()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: once this associated item is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stdout] = note: for more information, see issue #48919 [INFO] [stdout] = help: call with fully qualified syntax `itertools::Itertools::intersperse(...)` to keep using the current method [INFO] [stdout] = note: `#[warn(unstable_name_collisions)]` on by default [INFO] [stdout] help: add `#![feature(iter_intersperse)]` to the crate attributes to enable `std::iter::Iterator::intersperse` [INFO] [stdout] --> src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(iter_intersperse)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a method with this name may be added to the standard library in the future [INFO] [stdout] --> src/tokens.rs:208:10 [INFO] [stdout] | [INFO] [stdout] 208 | .intersperse(r"|".to_string()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: once this associated item is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stdout] = note: for more information, see issue #48919 [INFO] [stdout] = help: call with fully qualified syntax `itertools::Itertools::intersperse(...)` to keep using the current method [INFO] [stdout] = note: `#[warn(unstable_name_collisions)]` on by default [INFO] [stdout] help: add `#![feature(iter_intersperse)]` to the crate attributes to enable `std::iter::Iterator::intersperse` [INFO] [stdout] --> src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(iter_intersperse)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/block_structure.rs:286:26 [INFO] [stdout] | [INFO] [stdout] 286 | Stmt::Assign(id, es, e) => panic!("multi dimensional array"), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `es` [INFO] [stdout] --> src/block_structure.rs:286:30 [INFO] [stdout] | [INFO] [stdout] 286 | Stmt::Assign(id, es, e) => panic!("multi dimensional array"), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_es` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/block_structure.rs:286:34 [INFO] [stdout] | [INFO] [stdout] 286 | Stmt::Assign(id, es, e) => panic!("multi dimensional array"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/block_structure.rs:286:26 [INFO] [stdout] | [INFO] [stdout] 286 | Stmt::Assign(id, es, e) => panic!("multi dimensional array"), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `es` [INFO] [stdout] --> src/block_structure.rs:286:30 [INFO] [stdout] | [INFO] [stdout] 286 | Stmt::Assign(id, es, e) => panic!("multi dimensional array"), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_es` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/block_structure.rs:286:34 [INFO] [stdout] | [INFO] [stdout] 286 | Stmt::Assign(id, es, e) => panic!("multi dimensional array"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `var_map` [INFO] [stdout] --> src/compile_function.rs:92:27 [INFO] [stdout] | [INFO] [stdout] 92 | let (lva_cfg, stacks, var_map) = alloc_regs(globals, func); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_var_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/const_prop.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | _ => panic!("unimplemented"), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/const_prop.rs:65:22 [INFO] [stdout] | [INFO] [stdout] 65 | Stmt::Assign(x, inds, e) if inds.len() == 0 => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `o1` [INFO] [stdout] --> src/const_prop.rs:66:17 [INFO] [stdout] | [INFO] [stdout] 66 | let o1 = fold_exp(env, e); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_o1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/const_prop.rs:69:22 [INFO] [stdout] | [INFO] [stdout] 69 | Stmt::Assign(x, inds, e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inds` [INFO] [stdout] --> src/const_prop.rs:69:25 [INFO] [stdout] | [INFO] [stdout] 69 | Stmt::Assign(x, inds, e) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_inds` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/const_prop.rs:69:31 [INFO] [stdout] | [INFO] [stdout] 69 | Stmt::Assign(x, inds, e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/interp.rs:218:9 [INFO] [stdout] | [INFO] [stdout] 218 | _ => todo!("impl"), [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `var_map` [INFO] [stdout] --> src/compile_function.rs:92:27 [INFO] [stdout] | [INFO] [stdout] 92 | let (lva_cfg, stacks, var_map) = alloc_regs(globals, func); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_var_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/const_prop.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | _ => panic!("unimplemented"), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/const_prop.rs:65:22 [INFO] [stdout] | [INFO] [stdout] 65 | Stmt::Assign(x, inds, e) if inds.len() == 0 => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `o1` [INFO] [stdout] --> src/const_prop.rs:66:17 [INFO] [stdout] | [INFO] [stdout] 66 | let o1 = fold_exp(env, e); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_o1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/const_prop.rs:69:22 [INFO] [stdout] | [INFO] [stdout] 69 | Stmt::Assign(x, inds, e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inds` [INFO] [stdout] --> src/const_prop.rs:69:25 [INFO] [stdout] | [INFO] [stdout] 69 | Stmt::Assign(x, inds, e) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_inds` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/const_prop.rs:69:31 [INFO] [stdout] | [INFO] [stdout] 69 | Stmt::Assign(x, inds, e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/live_var_analysis.rs:152:22 [INFO] [stdout] | [INFO] [stdout] 152 | .filter(|(e, a)| match e.next { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/live_var_analysis.rs:167:19 [INFO] [stdout] | [INFO] [stdout] 167 | .map(|(e, a)| (*e).bnum) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/interp.rs:218:9 [INFO] [stdout] | [INFO] [stdout] 218 | _ => todo!("impl"), [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/register_alloc.rs:110:37 [INFO] [stdout] | [INFO] [stdout] 110 | BlockElem::AssignOp(v, ae1, op, ae2) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/register_alloc.rs:152:40 [INFO] [stdout] | [INFO] [stdout] 152 | NextBlock::Branch(Test { exp1, op, exp2 }, _, _) => { [INFO] [stdout] | ^^ help: try ignoring the field: `op: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `alocatable_regs` [INFO] [stdout] --> src/register_alloc.rs:163:5 [INFO] [stdout] | [INFO] [stdout] 163 | alocatable_regs: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_alocatable_regs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/live_var_analysis.rs:152:22 [INFO] [stdout] | [INFO] [stdout] 152 | .filter(|(e, a)| match e.next { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/live_var_analysis.rs:167:19 [INFO] [stdout] | [INFO] [stdout] 167 | .map(|(e, a)| (*e).bnum) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/register_alloc.rs:110:37 [INFO] [stdout] | [INFO] [stdout] 110 | BlockElem::AssignOp(v, ae1, op, ae2) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/register_alloc.rs:152:40 [INFO] [stdout] | [INFO] [stdout] 152 | NextBlock::Branch(Test { exp1, op, exp2 }, _, _) => { [INFO] [stdout] | ^^ help: try ignoring the field: `op: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `alocatable_regs` [INFO] [stdout] --> src/register_alloc.rs:163:5 [INFO] [stdout] | [INFO] [stdout] 163 | alocatable_regs: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_alocatable_regs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ln` [INFO] [stdout] --> src/source_ast.rs:556:18 [INFO] [stdout] | [INFO] [stdout] 556 | loc: ln, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ln` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ln` [INFO] [stdout] --> src/source_ast.rs:563:26 [INFO] [stdout] | [INFO] [stdout] 563 | loc: ln, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ln` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ln` [INFO] [stdout] --> src/source_ast.rs:556:18 [INFO] [stdout] | [INFO] [stdout] 556 | loc: ln, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ln` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ln` [INFO] [stdout] --> src/source_ast.rs:563:26 [INFO] [stdout] | [INFO] [stdout] 563 | loc: ln, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ln` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/type_check.rs:18:18 [INFO] [stdout] | [INFO] [stdout] 18 | ID::Temp(name, _) => {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/type_check.rs:18:18 [INFO] [stdout] | [INFO] [stdout] 18 | ID::Temp(name, _) => {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/type_check.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 148 | _ => None, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sc` [INFO] [stdout] --> src/type_check.rs:131:17 [INFO] [stdout] | [INFO] [stdout] 131 | fn type_var_dec(sc: &Scope, env: &Env, dec: &mut VarDec) -> Option { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_sc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/type_check.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 148 | _ => None, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sc` [INFO] [stdout] --> src/type_check.rs:131:17 [INFO] [stdout] | [INFO] [stdout] 131 | fn type_var_dec(sc: &Scope, env: &Env, dec: &mut VarDec) -> Option { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_sc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/unnest_exp.rs:166:9 [INFO] [stdout] | [INFO] [stdout] 166 | Exp::Op(e1, OP::And, e2) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/unnest_exp.rs:166:9 [INFO] [stdout] | [INFO] [stdout] 166 | Exp::Op(e1, OP::And, e2) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/x64.rs:492:9 [INFO] [stdout] | [INFO] [stdout] 492 | _ => panic!("untransformed variable layout"), [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/x64.rs:492:9 [INFO] [stdout] | [INFO] [stdout] 492 | _ => panic!("untransformed variable layout"), [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src2` [INFO] [stdout] --> src/x64.rs:1105:21 [INFO] [stdout] | [INFO] [stdout] 1105 | let src2 = match v3 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_src2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/x64.rs:1149:34 [INFO] [stdout] | [INFO] [stdout] 1149 | RegAddr::Reg(r) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src2` [INFO] [stdout] --> src/x64.rs:1105:21 [INFO] [stdout] | [INFO] [stdout] 1105 | let src2 = match v3 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_src2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/x64.rs:1149:34 [INFO] [stdout] | [INFO] [stdout] 1149 | RegAddr::Reg(r) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `might_have_effect` is never used [INFO] [stdout] --> src/const_prop.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn might_have_effect(e: &Exp) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `might_have_effect` is never used [INFO] [stdout] --> src/const_prop.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn might_have_effect(e: &Exp) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fold_exp` is never used [INFO] [stdout] --> src/const_prop.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn fold_exp(env: &mut HashMap, e: &TypedExp) -> TypedExp { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `prop_stmt` is never used [INFO] [stdout] --> src/const_prop.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn prop_stmt(env: &mut HashMap, stmt: &Stmt) -> Stmt { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_preds` is never used [INFO] [stdout] --> src/live_var_analysis.rs:106:4 [INFO] [stdout] | [INFO] [stdout] 106 | fn find_preds<'a, 'b>( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_global` is never used [INFO] [stdout] --> src/register_alloc.rs:84:4 [INFO] [stdout] | [INFO] [stdout] 84 | fn is_global(v: &Var) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_param` is never used [INFO] [stdout] --> src/register_alloc.rs:91:4 [INFO] [stdout] | [INFO] [stdout] 91 | fn is_param(v: &Var) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Monop` and `BoundCheck` are never constructed [INFO] [stdout] --> src/x64.rs:337:5 [INFO] [stdout] | [INFO] [stdout] 333 | enum X64BlockElem<'a> { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 337 | Monop(UOP, RegAddr<'a>), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 338 | Mov(RegAddr<'a>, RegAddrImm64<'a>), [INFO] [stdout] 339 | BoundCheck(RegAddrImm64<'a>, RegAddr<'a>), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Cont` and `JCCont` are never constructed [INFO] [stdout] --> src/x64.rs:376:5 [INFO] [stdout] | [INFO] [stdout] 375 | enum AsmTransitionX64<'a> { [INFO] [stdout] | ---------------- variants in this enum [INFO] [stdout] 376 | Cont, [INFO] [stdout] | ^^^^ [INFO] [stdout] 377 | J(usize), [INFO] [stdout] 378 | JCCont(Condition, CmpArgs<'a>), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fold_exp` is never used [INFO] [stdout] --> src/const_prop.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn fold_exp(env: &mut HashMap, e: &TypedExp) -> TypedExp { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `prop_stmt` is never used [INFO] [stdout] --> src/const_prop.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn prop_stmt(env: &mut HashMap, stmt: &Stmt) -> Stmt { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_preds` is never used [INFO] [stdout] --> src/live_var_analysis.rs:106:4 [INFO] [stdout] | [INFO] [stdout] 106 | fn find_preds<'a, 'b>( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_global` is never used [INFO] [stdout] --> src/register_alloc.rs:84:4 [INFO] [stdout] | [INFO] [stdout] 84 | fn is_global(v: &Var) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_param` is never used [INFO] [stdout] --> src/register_alloc.rs:91:4 [INFO] [stdout] | [INFO] [stdout] 91 | fn is_param(v: &Var) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Monop` and `BoundCheck` are never constructed [INFO] [stdout] --> src/x64.rs:337:5 [INFO] [stdout] | [INFO] [stdout] 333 | enum X64BlockElem<'a> { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 337 | Monop(UOP, RegAddr<'a>), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 338 | Mov(RegAddr<'a>, RegAddrImm64<'a>), [INFO] [stdout] 339 | BoundCheck(RegAddrImm64<'a>, RegAddr<'a>), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Cont` and `JCCont` are never constructed [INFO] [stdout] --> src/x64.rs:376:5 [INFO] [stdout] | [INFO] [stdout] 375 | enum AsmTransitionX64<'a> { [INFO] [stdout] | ---------------- variants in this enum [INFO] [stdout] 376 | Cont, [INFO] [stdout] | ^^^^ [INFO] [stdout] 377 | J(usize), [INFO] [stdout] 378 | JCCont(Condition, CmpArgs<'a>), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `reg_order` should have an upper case name [INFO] [stdout] --> src/x64.rs:58:7 [INFO] [stdout] | [INFO] [stdout] 58 | const reg_order: [Reg; 15] = [ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `REG_ORDER` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `temp0` should have an upper case name [INFO] [stdout] --> src/x64.rs:75:7 [INFO] [stdout] | [INFO] [stdout] 75 | const temp0: Reg = Reg::R10; [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `TEMP0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `temp1` should have an upper case name [INFO] [stdout] --> src/x64.rs:76:7 [INFO] [stdout] | [INFO] [stdout] 76 | const temp1: Reg = Reg::R11; [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `TEMP1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `temp2` should have an upper case name [INFO] [stdout] --> src/x64.rs:77:7 [INFO] [stdout] | [INFO] [stdout] 77 | const temp2: Reg = Reg::RAX; [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `TEMP2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `reg_order` should have an upper case name [INFO] [stdout] --> src/x64.rs:58:7 [INFO] [stdout] | [INFO] [stdout] 58 | const reg_order: [Reg; 15] = [ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `REG_ORDER` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `temp0` should have an upper case name [INFO] [stdout] --> src/x64.rs:75:7 [INFO] [stdout] | [INFO] [stdout] 75 | const temp0: Reg = Reg::R10; [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `TEMP0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `temp1` should have an upper case name [INFO] [stdout] --> src/x64.rs:76:7 [INFO] [stdout] | [INFO] [stdout] 76 | const temp1: Reg = Reg::R11; [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `TEMP1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `temp2` should have an upper case name [INFO] [stdout] --> src/x64.rs:77:7 [INFO] [stdout] | [INFO] [stdout] 77 | const temp2: Reg = Reg::RAX; [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `TEMP2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_usage` is never used [INFO] [stdout] --> src/main.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn print_usage() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_usage` is never used [INFO] [stdout] --> src/main.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn print_usage() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.61s [INFO] running `Command { std: "docker" "inspect" "680f09d8fa7ada0da3f574e991068a46e7f70f2803aee98000a13577fffb3a8b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "680f09d8fa7ada0da3f574e991068a46e7f70f2803aee98000a13577fffb3a8b", kill_on_drop: false }` [INFO] [stdout] 680f09d8fa7ada0da3f574e991068a46e7f70f2803aee98000a13577fffb3a8b