[INFO] cloning repository https://github.com/WinThant16/CS152-CompilerDesignProject [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/WinThant16/CS152-CompilerDesignProject" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWinThant16%2FCS152-CompilerDesignProject", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWinThant16%2FCS152-CompilerDesignProject'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 09844b626588ca3ff3bab5344424f9269fbe1d93 [INFO] building WinThant16/CS152-CompilerDesignProject against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWinThant16%2FCS152-CompilerDesignProject" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/WinThant16/CS152-CompilerDesignProject on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/WinThant16/CS152-CompilerDesignProject [INFO] finished tweaking git repo https://github.com/WinThant16/CS152-CompilerDesignProject [INFO] tweaked toml for git repo https://github.com/WinThant16/CS152-CompilerDesignProject written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/WinThant16/CS152-CompilerDesignProject 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f793e3591d45fca135ea645854c4bb6b72907028aa70d689e69008d186f051ad [INFO] running `Command { std: "docker" "start" "-a" "f793e3591d45fca135ea645854c4bb6b72907028aa70d689e69008d186f051ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f793e3591d45fca135ea645854c4bb6b72907028aa70d689e69008d186f051ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f793e3591d45fca135ea645854c4bb6b72907028aa70d689e69008d186f051ad", kill_on_drop: false }` [INFO] [stdout] f793e3591d45fca135ea645854c4bb6b72907028aa70d689e69008d186f051ad [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d48e99ff3d1c36f285afd71b7d0ebae5ffe9702d0479a236dd2b4768a7f204af [INFO] running `Command { std: "docker" "start" "-a" "d48e99ff3d1c36f285afd71b7d0ebae5ffe9702d0479a236dd2b4768a7f204af", kill_on_drop: false }` [INFO] [stderr] Compiling rustcompiler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | if(symbol_table.contains_key(&key_name)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 115 - if(symbol_table.contains_key(&key_name)){ [INFO] [stdout] 115 + if symbol_table.contains_key(&key_name) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:126:11 [INFO] [stdout] | [INFO] [stdout] 126 | if(param == "%int"){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 126 - if(param == "%int"){ [INFO] [stdout] 126 + if param == "%int" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:131:11 [INFO] [stdout] | [INFO] [stdout] 131 | if(symbol_table.contains_key(&key_name)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 131 - if(symbol_table.contains_key(&key_name)){ [INFO] [stdout] 131 + if symbol_table.contains_key(&key_name) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 143 | if(array_size.parse::().unwrap() <= 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 143 - if(array_size.parse::().unwrap() <= 0){ [INFO] [stdout] 143 + if array_size.parse::().unwrap() <= 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:149:9 [INFO] [stdout] | [INFO] [stdout] 149 | if(symbol_table.contains_key(&key_name)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 149 - if(symbol_table.contains_key(&key_name)){ [INFO] [stdout] 149 + if symbol_table.contains_key(&key_name) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 160 | if(symbol_table.contains_key(&key_name)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 160 - if(symbol_table.contains_key(&key_name)){ [INFO] [stdout] 160 + if symbol_table.contains_key(&key_name) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:183:13 [INFO] [stdout] | [INFO] [stdout] 183 | if(param.ends_with("(")){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 183 - if(param.ends_with("(")){ [INFO] [stdout] 183 + if param.ends_with("(") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 194 | if(!matches!(data_type, &DataType::Array)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 194 - if(!matches!(data_type, &DataType::Array)){ [INFO] [stdout] 194 + if !matches!(data_type, &DataType::Array) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:203:11 [INFO] [stdout] | [INFO] [stdout] 203 | if(seen_array_type){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 203 - if(seen_array_type){ [INFO] [stdout] 203 + if seen_array_type { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:212:13 [INFO] [stdout] | [INFO] [stdout] 212 | if(matches!(data_type, &DataType::Array)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 212 - if(matches!(data_type, &DataType::Array)){ [INFO] [stdout] 212 + if matches!(data_type, &DataType::Array) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:220:5 [INFO] [stdout] | [INFO] [stdout] 220 | if(main_function_seen == false){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 220 - if(main_function_seen == false){ [INFO] [stdout] 220 + if main_function_seen == false { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:290:12 [INFO] [stdout] | [INFO] [stdout] 290 | if (semantics_check(generated_code.clone())){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 290 - if (semantics_check(generated_code.clone())){ [INFO] [stdout] 290 + if semantics_check(generated_code.clone()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:818:5 [INFO] [stdout] | [INFO] [stdout] 818 | if(params.len() > 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 818 - if(params.len() > 0){ [INFO] [stdout] 818 + if params.len() > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:991:21 [INFO] [stdout] | [INFO] [stdout] 991 | if(matches!(peek_result(tokens, *index)?, Token::LeftBracket)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 991 - if(matches!(peek_result(tokens, *index)?, Token::LeftBracket)){ [INFO] [stdout] 991 + if matches!(peek_result(tokens, *index)?, Token::LeftBracket) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1110:21 [INFO] [stdout] | [INFO] [stdout] 1110 | if(WHILE_LABEL_STACK.len() == 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1110 - if(WHILE_LABEL_STACK.len() == 0){ [INFO] [stdout] 1110 + if WHILE_LABEL_STACK.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1122:21 [INFO] [stdout] | [INFO] [stdout] 1122 | if(WHILE_LABEL_STACK.len() == 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1122 - if(WHILE_LABEL_STACK.len() == 0){ [INFO] [stdout] 1122 + if WHILE_LABEL_STACK.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1158:5 [INFO] [stdout] | [INFO] [stdout] 1158 | if(matches!(peek_result(tokens, *index)?, Token::LeftBracket)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1158 - if(matches!(peek_result(tokens, *index)?, Token::LeftBracket)){ [INFO] [stdout] 1158 + if matches!(peek_result(tokens, *index)?, Token::LeftBracket) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1211:5 [INFO] [stdout] | [INFO] [stdout] 1211 | if(matches!(peek_result(tokens, *index)?,Token::LeftBracket)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1211 - if(matches!(peek_result(tokens, *index)?,Token::LeftBracket)){ [INFO] [stdout] 1211 + if matches!(peek_result(tokens, *index)?,Token::LeftBracket) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1233:5 [INFO] [stdout] | [INFO] [stdout] 1233 | if(matches!(peek_result(tokens, *index)?,Token::LeftBracket)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1233 - if(matches!(peek_result(tokens, *index)?,Token::LeftBracket)){ [INFO] [stdout] 1233 + if matches!(peek_result(tokens, *index)?,Token::LeftBracket) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:121:11 [INFO] [stdout] | [INFO] [stdout] 121 | let mut params = line2.split_whitespace().skip(2); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `codenode` is never read [INFO] [stdout] --> src/main.rs:963:29 [INFO] [stdout] | [INFO] [stdout] 963 | ... codenode = None; [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: value assigned to `codenode` is never read [INFO] [stdout] --> src/main.rs:970:25 [INFO] [stdout] | [INFO] [stdout] 970 | codenode = None; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `codenode` is never read [INFO] [stdout] --> src/main.rs:1133:17 [INFO] [stdout] | [INFO] [stdout] 1133 | codenode = None; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1174:9 [INFO] [stdout] | [INFO] [stdout] 1174 | let mut right_expr = parse_multiply_expression(tokens, index)?; // Parse the next higher precedence expression [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1197:11 [INFO] [stdout] | [INFO] [stdout] 1197 | let mut right_expr = parse_term(tokens, index)?; // Parse the next term [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instr` [INFO] [stdout] --> src/main.rs:1230:11 [INFO] [stdout] | [INFO] [stdout] 1230 | let mut instr = ""; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_instr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1230:7 [INFO] [stdout] | [INFO] [stdout] 1230 | let mut instr = ""; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `else_num` is never used [INFO] [stdout] --> src/main.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | static mut else_num: i64 = 0; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_else_label` is never used [INFO] [stdout] --> src/main.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn create_else_label() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/interpreter.rs:1498:11 [INFO] [stdout] | [INFO] [stdout] 1498 | Label(usize), [INFO] [stdout] | ----- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Bytecode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 1498 | Label(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:25:26 [INFO] [stdout] | [INFO] [stdout] 25 | format!("_temp{}", VAR_NUM) [INFO] [stdout] | ^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `whileloopbegin_num` should have an upper case name [INFO] [stdout] --> src/main.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | static mut whileloopbegin_num: i64 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `WHILELOOPBEGIN_NUM` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:33:30 [INFO] [stdout] | [INFO] [stdout] 33 | format!("loopbegin{}", whileloopbegin_num) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `whileloopend_num` should have an upper case name [INFO] [stdout] --> src/main.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | static mut whileloopend_num: i64 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `WHILELOOPEND_NUM` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:41:29 [INFO] [stdout] | [INFO] [stdout] 41 | format!("endloop_{}", whileloopend_num) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `iftrue_num` should have an upper case name [INFO] [stdout] --> src/main.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | static mut iftrue_num: i64 = 0; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `IFTRUE_NUM` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:49:27 [INFO] [stdout] | [INFO] [stdout] 49 | format!("iftrue{}", iftrue_num) [INFO] [stdout] | ^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `endif_num` should have an upper case name [INFO] [stdout] --> src/main.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | static mut endif_num: i64 = 0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `ENDIF_NUM` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:57:26 [INFO] [stdout] | [INFO] [stdout] 57 | format!("endif{}", endif_num) [INFO] [stdout] | ^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `else_num` should have an upper case name [INFO] [stdout] --> src/main.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | static mut else_num: i64 = 0; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `ELSE_NUM` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:65:25 [INFO] [stdout] | [INFO] [stdout] 65 | format!("else{}", else_num) [INFO] [stdout] | ^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:1023:19 [INFO] [stdout] | [INFO] [stdout] 1023 | WHILE_LABEL_STACK.push(while_label.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:1024:19 [INFO] [stdout] | [INFO] [stdout] 1024 | WHILE_LABEL_STACK.push(endwhile_label.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `statementCode` should have a snake case name [INFO] [stdout] --> src/main.rs:1026:25 [INFO] [stdout] | [INFO] [stdout] 1026 | let mut statementCode: String = String::from(""); [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `statement_code` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:1052:19 [INFO] [stdout] | [INFO] [stdout] 1052 | WHILE_LABEL_STACK.pop(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:1053:19 [INFO] [stdout] | [INFO] [stdout] 1053 | WHILE_LABEL_STACK.pop(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `statementCode` should have a snake case name [INFO] [stdout] --> src/main.rs:1069:25 [INFO] [stdout] | [INFO] [stdout] 1069 | let mut statementCode: String = String::from(""); [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `statement_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:1110:22 [INFO] [stdout] | [INFO] [stdout] 1110 | if(WHILE_LABEL_STACK.len() == 0){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:1113:67 [INFO] [stdout] | [INFO] [stdout] 1113 | code = format!("%jmp :{}\n", WHILE_LABEL_STACK[WHILE_LABEL_STACK.len() - 2]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:1122:22 [INFO] [stdout] | [INFO] [stdout] 1122 | if(WHILE_LABEL_STACK.len() == 0){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:1125:66 [INFO] [stdout] | [INFO] [stdout] 1125 | code = format!("%jmp :{}\n", WHILE_LABEL_STACK[WHILE_LABEL_STACK.len() - 1]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.41s [INFO] running `Command { std: "docker" "inspect" "d48e99ff3d1c36f285afd71b7d0ebae5ffe9702d0479a236dd2b4768a7f204af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d48e99ff3d1c36f285afd71b7d0ebae5ffe9702d0479a236dd2b4768a7f204af", kill_on_drop: false }` [INFO] [stdout] d48e99ff3d1c36f285afd71b7d0ebae5ffe9702d0479a236dd2b4768a7f204af [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5e5326c9a7d972cfcbaff9bacd971249c7c78cbdcb52205884bc25bad8a044ae [INFO] running `Command { std: "docker" "start" "-a" "5e5326c9a7d972cfcbaff9bacd971249c7c78cbdcb52205884bc25bad8a044ae", kill_on_drop: false }` [INFO] [stderr] Compiling rustcompiler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | if(symbol_table.contains_key(&key_name)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 115 - if(symbol_table.contains_key(&key_name)){ [INFO] [stdout] 115 + if symbol_table.contains_key(&key_name) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:126:11 [INFO] [stdout] | [INFO] [stdout] 126 | if(param == "%int"){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 126 - if(param == "%int"){ [INFO] [stdout] 126 + if param == "%int" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:131:11 [INFO] [stdout] | [INFO] [stdout] 131 | if(symbol_table.contains_key(&key_name)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 131 - if(symbol_table.contains_key(&key_name)){ [INFO] [stdout] 131 + if symbol_table.contains_key(&key_name) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 143 | if(array_size.parse::().unwrap() <= 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 143 - if(array_size.parse::().unwrap() <= 0){ [INFO] [stdout] 143 + if array_size.parse::().unwrap() <= 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:149:9 [INFO] [stdout] | [INFO] [stdout] 149 | if(symbol_table.contains_key(&key_name)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 149 - if(symbol_table.contains_key(&key_name)){ [INFO] [stdout] 149 + if symbol_table.contains_key(&key_name) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 160 | if(symbol_table.contains_key(&key_name)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 160 - if(symbol_table.contains_key(&key_name)){ [INFO] [stdout] 160 + if symbol_table.contains_key(&key_name) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:183:13 [INFO] [stdout] | [INFO] [stdout] 183 | if(param.ends_with("(")){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 183 - if(param.ends_with("(")){ [INFO] [stdout] 183 + if param.ends_with("(") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 194 | if(!matches!(data_type, &DataType::Array)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 194 - if(!matches!(data_type, &DataType::Array)){ [INFO] [stdout] 194 + if !matches!(data_type, &DataType::Array) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:203:11 [INFO] [stdout] | [INFO] [stdout] 203 | if(seen_array_type){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 203 - if(seen_array_type){ [INFO] [stdout] 203 + if seen_array_type { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:212:13 [INFO] [stdout] | [INFO] [stdout] 212 | if(matches!(data_type, &DataType::Array)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 212 - if(matches!(data_type, &DataType::Array)){ [INFO] [stdout] 212 + if matches!(data_type, &DataType::Array) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:220:5 [INFO] [stdout] | [INFO] [stdout] 220 | if(main_function_seen == false){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 220 - if(main_function_seen == false){ [INFO] [stdout] 220 + if main_function_seen == false { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:290:12 [INFO] [stdout] | [INFO] [stdout] 290 | if (semantics_check(generated_code.clone())){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 290 - if (semantics_check(generated_code.clone())){ [INFO] [stdout] 290 + if semantics_check(generated_code.clone()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:818:5 [INFO] [stdout] | [INFO] [stdout] 818 | if(params.len() > 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 818 - if(params.len() > 0){ [INFO] [stdout] 818 + if params.len() > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:991:21 [INFO] [stdout] | [INFO] [stdout] 991 | if(matches!(peek_result(tokens, *index)?, Token::LeftBracket)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 991 - if(matches!(peek_result(tokens, *index)?, Token::LeftBracket)){ [INFO] [stdout] 991 + if matches!(peek_result(tokens, *index)?, Token::LeftBracket) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1110:21 [INFO] [stdout] | [INFO] [stdout] 1110 | if(WHILE_LABEL_STACK.len() == 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1110 - if(WHILE_LABEL_STACK.len() == 0){ [INFO] [stdout] 1110 + if WHILE_LABEL_STACK.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1122:21 [INFO] [stdout] | [INFO] [stdout] 1122 | if(WHILE_LABEL_STACK.len() == 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1122 - if(WHILE_LABEL_STACK.len() == 0){ [INFO] [stdout] 1122 + if WHILE_LABEL_STACK.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1158:5 [INFO] [stdout] | [INFO] [stdout] 1158 | if(matches!(peek_result(tokens, *index)?, Token::LeftBracket)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1158 - if(matches!(peek_result(tokens, *index)?, Token::LeftBracket)){ [INFO] [stdout] 1158 + if matches!(peek_result(tokens, *index)?, Token::LeftBracket) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1211:5 [INFO] [stdout] | [INFO] [stdout] 1211 | if(matches!(peek_result(tokens, *index)?,Token::LeftBracket)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1211 - if(matches!(peek_result(tokens, *index)?,Token::LeftBracket)){ [INFO] [stdout] 1211 + if matches!(peek_result(tokens, *index)?,Token::LeftBracket) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1233:5 [INFO] [stdout] | [INFO] [stdout] 1233 | if(matches!(peek_result(tokens, *index)?,Token::LeftBracket)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1233 - if(matches!(peek_result(tokens, *index)?,Token::LeftBracket)){ [INFO] [stdout] 1233 + if matches!(peek_result(tokens, *index)?,Token::LeftBracket) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Token` [INFO] [stdout] --> src/main.rs:1554:39 [INFO] [stdout] | [INFO] [stdout] 1554 | use crate::{lex, parse_statement, Token}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:121:11 [INFO] [stdout] | [INFO] [stdout] 121 | let mut params = line2.split_whitespace().skip(2); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `codenode` is never read [INFO] [stdout] --> src/main.rs:963:29 [INFO] [stdout] | [INFO] [stdout] 963 | ... codenode = None; [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: value assigned to `codenode` is never read [INFO] [stdout] --> src/main.rs:970:25 [INFO] [stdout] | [INFO] [stdout] 970 | codenode = None; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `codenode` is never read [INFO] [stdout] --> src/main.rs:1133:17 [INFO] [stdout] | [INFO] [stdout] 1133 | codenode = None; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1174:9 [INFO] [stdout] | [INFO] [stdout] 1174 | let mut right_expr = parse_multiply_expression(tokens, index)?; // Parse the next higher precedence expression [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1197:11 [INFO] [stdout] | [INFO] [stdout] 1197 | let mut right_expr = parse_term(tokens, index)?; // Parse the next term [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instr` [INFO] [stdout] --> src/main.rs:1230:11 [INFO] [stdout] | [INFO] [stdout] 1230 | let mut instr = ""; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_instr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1230:7 [INFO] [stdout] | [INFO] [stdout] 1230 | let mut instr = ""; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `else_num` is never used [INFO] [stdout] --> src/main.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | static mut else_num: i64 = 0; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_else_label` is never used [INFO] [stdout] --> src/main.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn create_else_label() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/interpreter.rs:1498:11 [INFO] [stdout] | [INFO] [stdout] 1498 | Label(usize), [INFO] [stdout] | ----- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Bytecode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 1498 | Label(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:25:26 [INFO] [stdout] | [INFO] [stdout] 25 | format!("_temp{}", VAR_NUM) [INFO] [stdout] | ^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `whileloopbegin_num` should have an upper case name [INFO] [stdout] --> src/main.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | static mut whileloopbegin_num: i64 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `WHILELOOPBEGIN_NUM` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:33:30 [INFO] [stdout] | [INFO] [stdout] 33 | format!("loopbegin{}", whileloopbegin_num) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `whileloopend_num` should have an upper case name [INFO] [stdout] --> src/main.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | static mut whileloopend_num: i64 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `WHILELOOPEND_NUM` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:41:29 [INFO] [stdout] | [INFO] [stdout] 41 | format!("endloop_{}", whileloopend_num) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `iftrue_num` should have an upper case name [INFO] [stdout] --> src/main.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | static mut iftrue_num: i64 = 0; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `IFTRUE_NUM` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:49:27 [INFO] [stdout] | [INFO] [stdout] 49 | format!("iftrue{}", iftrue_num) [INFO] [stdout] | ^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `endif_num` should have an upper case name [INFO] [stdout] --> src/main.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | static mut endif_num: i64 = 0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `ENDIF_NUM` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:57:26 [INFO] [stdout] | [INFO] [stdout] 57 | format!("endif{}", endif_num) [INFO] [stdout] | ^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `else_num` should have an upper case name [INFO] [stdout] --> src/main.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | static mut else_num: i64 = 0; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `ELSE_NUM` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:65:25 [INFO] [stdout] | [INFO] [stdout] 65 | format!("else{}", else_num) [INFO] [stdout] | ^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:1023:19 [INFO] [stdout] | [INFO] [stdout] 1023 | WHILE_LABEL_STACK.push(while_label.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:1024:19 [INFO] [stdout] | [INFO] [stdout] 1024 | WHILE_LABEL_STACK.push(endwhile_label.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `statementCode` should have a snake case name [INFO] [stdout] --> src/main.rs:1026:25 [INFO] [stdout] | [INFO] [stdout] 1026 | let mut statementCode: String = String::from(""); [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `statement_code` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:1052:19 [INFO] [stdout] | [INFO] [stdout] 1052 | WHILE_LABEL_STACK.pop(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:1053:19 [INFO] [stdout] | [INFO] [stdout] 1053 | WHILE_LABEL_STACK.pop(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `statementCode` should have a snake case name [INFO] [stdout] --> src/main.rs:1069:25 [INFO] [stdout] | [INFO] [stdout] 1069 | let mut statementCode: String = String::from(""); [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `statement_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:1110:22 [INFO] [stdout] | [INFO] [stdout] 1110 | if(WHILE_LABEL_STACK.len() == 0){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:1113:67 [INFO] [stdout] | [INFO] [stdout] 1113 | code = format!("%jmp :{}\n", WHILE_LABEL_STACK[WHILE_LABEL_STACK.len() - 2]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:1122:22 [INFO] [stdout] | [INFO] [stdout] 1122 | if(WHILE_LABEL_STACK.len() == 0){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:1125:66 [INFO] [stdout] | [INFO] [stdout] 1125 | code = format!("%jmp :{}\n", WHILE_LABEL_STACK[WHILE_LABEL_STACK.len() - 1]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.39s [INFO] running `Command { std: "docker" "inspect" "5e5326c9a7d972cfcbaff9bacd971249c7c78cbdcb52205884bc25bad8a044ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5e5326c9a7d972cfcbaff9bacd971249c7c78cbdcb52205884bc25bad8a044ae", kill_on_drop: false }` [INFO] [stdout] 5e5326c9a7d972cfcbaff9bacd971249c7c78cbdcb52205884bc25bad8a044ae