[INFO] cloning repository https://github.com/mahanfarzaneh2000/Astamboly [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mahanfarzaneh2000/Astamboly" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmahanfarzaneh2000%2FAstamboly", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmahanfarzaneh2000%2FAstamboly'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 908a16768a77a6a73e85a45c453bfb749f2076bb [INFO] testing mahanfarzaneh2000/Astamboly against master#61223975d46f794466efa832bc7562b9707ecc46+rustflags=-Copt-level=3 for pr-121282 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmahanfarzaneh2000%2FAstamboly" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mahanfarzaneh2000/Astamboly on toolchain 61223975d46f794466efa832bc7562b9707ecc46 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+61223975d46f794466efa832bc7562b9707ecc46" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mahanfarzaneh2000/Astamboly [INFO] finished tweaking git repo https://github.com/mahanfarzaneh2000/Astamboly [INFO] tweaked toml for git repo https://github.com/mahanfarzaneh2000/Astamboly written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/mahanfarzaneh2000/Astamboly 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" "+61223975d46f794466efa832bc7562b9707ecc46" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] testing mahanfarzaneh2000/Astamboly against try#d073071d77ce0f93b4fd8cc567a1e2b9e1b22126+rustflags=-Copt-level=3 for pr-121282 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmahanfarzaneh2000%2FAstamboly" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mahanfarzaneh2000/Astamboly on toolchain d073071d77ce0f93b4fd8cc567a1e2b9e1b22126 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d073071d77ce0f93b4fd8cc567a1e2b9e1b22126" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mahanfarzaneh2000/Astamboly [INFO] finished tweaking git repo https://github.com/mahanfarzaneh2000/Astamboly [INFO] tweaked toml for git repo https://github.com/mahanfarzaneh2000/Astamboly written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/mahanfarzaneh2000/Astamboly 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" "+d073071d77ce0f93b4fd8cc567a1e2b9e1b22126" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] testing mahanfarzaneh2000/Astamboly against try#d073071d77ce0f93b4fd8cc567a1e2b9e1b22126+rustflags=-Copt-level=3 for pr-121282 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmahanfarzaneh2000%2FAstamboly" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mahanfarzaneh2000/Astamboly on toolchain d073071d77ce0f93b4fd8cc567a1e2b9e1b22126 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d073071d77ce0f93b4fd8cc567a1e2b9e1b22126" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mahanfarzaneh2000/Astamboly [INFO] finished tweaking git repo https://github.com/mahanfarzaneh2000/Astamboly [INFO] tweaked toml for git repo https://github.com/mahanfarzaneh2000/Astamboly written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/mahanfarzaneh2000/Astamboly 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" "+d073071d77ce0f93b4fd8cc567a1e2b9e1b22126" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+d073071d77ce0f93b4fd8cc567a1e2b9e1b22126" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fa32d7df5ae0490762f034fe637fb944a07122a9199e3e4a39513360b32f6973 [INFO] running `Command { std: "docker" "start" "-a" "fa32d7df5ae0490762f034fe637fb944a07122a9199e3e4a39513360b32f6973", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fa32d7df5ae0490762f034fe637fb944a07122a9199e3e4a39513360b32f6973", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fa32d7df5ae0490762f034fe637fb944a07122a9199e3e4a39513360b32f6973", kill_on_drop: false }` [INFO] [stdout] fa32d7df5ae0490762f034fe637fb944a07122a9199e3e4a39513360b32f6973 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Copt-level=3" "-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" "+d073071d77ce0f93b4fd8cc567a1e2b9e1b22126" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0a74b3e80811a9b333d1547c4e7af8ae0851efd5971c2661dc7e39fd670c1658 [INFO] running `Command { std: "docker" "start" "-a" "0a74b3e80811a9b333d1547c4e7af8ae0851efd5971c2661dc7e39fd670c1658", kill_on_drop: false }` [INFO] [stderr] Compiling astambly v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `literal` [INFO] [stdout] --> src/lexer.rs:234:17 [INFO] [stdout] | [INFO] [stdout] 234 | let literal = String::from_iter(self.source[index..self.cur].to_vec()); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_literal` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instr_list` [INFO] [stdout] --> src/relocate.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn relocate(instr_list: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instr_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bc` [INFO] [stdout] --> src/relocate.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let mut bc = 0; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_bc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/relocate.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | for item in instr_list.iter() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/relocate.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let mut bytes = Vec::new(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/relocate.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let mut bc = 0; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/lexer.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum TokenType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 11 | /// Identifies a variable or functuin e.g: a, main, print [INFO] [stdout] 12 | Identifier, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 13 | /// Numeric value e.g: 12 ,0xf3, 0b110 [INFO] [stdout] 14 | Int(i32), [INFO] [stdout] | ^^^ [INFO] [stdout] 15 | /// Floating value e.g: 0.5 [INFO] [stdout] 16 | Float(f64), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 17 | /// Character Literal e.g: 'A', '9', '\n' [INFO] [stdout] 18 | Char(char), [INFO] [stdout] | ^^^^ [INFO] [stdout] 19 | /// String Literal e.g: "Hello world", "hi\nhello" [INFO] [stdout] 20 | String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 21 | /// Inline Asm [INFO] [stdout] 22 | Plus, [INFO] [stdout] | ^^^^ [INFO] [stdout] 23 | /// "-" Sub and Neg [INFO] [stdout] 24 | Minus, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 25 | /// "*" Multiply [INFO] [stdout] 26 | Multi, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 27 | /// ":" NOT DEFINED YET [INFO] [stdout] 28 | Colon, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 29 | /// "," Seperating Arguments [INFO] [stdout] 30 | Comma, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 31 | /// "[" [INFO] [stdout] 32 | OBracket, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 33 | /// "]" [INFO] [stdout] 34 | CBracket, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 35 | /// END OF FILE [INFO] [stdout] 36 | Eof, [INFO] [stdout] | ^^^ [INFO] [stdout] 37 | /// START OF FILE [INFO] [stdout] 38 | Sof, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Token` is never constructed [INFO] [stdout] --> src/lexer.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct Token { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_empty`, and `empty` are never used [INFO] [stdout] --> src/lexer.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 68 | impl Token { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn new(t_type: TokenType, literal: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn empty() -> Token { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Lexer` is never constructed [INFO] [stdout] --> src/lexer.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 108 | pub struct Lexer { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Lexer` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/lexer.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 117 | impl Lexer { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn new(file_path: String, source: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | fn drop_line(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | fn drop(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | fn trim_left(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub fn get_token_type(&self) -> TokenType { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | pub fn match_token(&mut self, t_type: TokenType) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 199 | pub fn get_token(&self) -> Token { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | pub fn next_token(&mut self) -> Token { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 266 | fn tokenize_char_literal(&mut self) -> Token { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 321 | fn tokenize_string_literal(&mut self) -> Token { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 384 | fn is_single_char_token(char: char) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 403 | fn parse_numeric_literal(&self, literal: &String) -> TokenType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 442 | fn expect_char(&self, copt: &Option, chars: Vec) -> char { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_asm` is never used [INFO] [stdout] --> src/parser.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn parse_asm(source: String) -> Instr { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_mnemonic` is never used [INFO] [stdout] --> src/parser.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn parse_mnemonic(lexer: &mut Lexer) -> Mnemonic { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_op` is never used [INFO] [stdout] --> src/parser.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn parse_op(lexer: &mut Lexer) -> Opr { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_mem` is never used [INFO] [stdout] --> src/parser.rs:77:4 [INFO] [stdout] | [INFO] [stdout] 77 | fn parse_mem(lexer: &mut Lexer, size: u8) -> Opr { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `relocate` is never used [INFO] [stdout] --> src/relocate.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn relocate(instr_list: &mut Vec) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `text_section_bytes` is never used [INFO] [stdout] --> src/relocate.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn text_section_bytes(instr_list: &mut Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `instr2` is never used [INFO] [stdout] --> src/relocate.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn instr2(mnemonic: Mnemonic, opr1: impl Into, opr2: impl Into) -> Instr { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `instr1` is never used [INFO] [stdout] --> src/relocate.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn instr1(mnemonic: Mnemonic, opr1: impl Into) -> Instr{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `instr0` is never used [INFO] [stdout] --> src/relocate.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn instr0(mnemonic: Mnemonic) -> Instr{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.04s [INFO] running `Command { std: "docker" "inspect" "0a74b3e80811a9b333d1547c4e7af8ae0851efd5971c2661dc7e39fd670c1658", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0a74b3e80811a9b333d1547c4e7af8ae0851efd5971c2661dc7e39fd670c1658", kill_on_drop: false }` [INFO] [stdout] 0a74b3e80811a9b333d1547c4e7af8ae0851efd5971c2661dc7e39fd670c1658 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Copt-level=3" "-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" "+d073071d77ce0f93b4fd8cc567a1e2b9e1b22126" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2e39637e9bf43c72bd84da2f21815704aa55b678a5d7808a3ca3fed471041d54 [INFO] running `Command { std: "docker" "start" "-a" "2e39637e9bf43c72bd84da2f21815704aa55b678a5d7808a3ca3fed471041d54", kill_on_drop: false }` [INFO] [stdout] warning: unused variable: `literal` [INFO] [stdout] --> src/lexer.rs:234:17 [INFO] [stdout] | [INFO] [stdout] 234 | let literal = String::from_iter(self.source[index..self.cur].to_vec()); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_literal` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instr_list` [INFO] [stdout] --> src/relocate.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn relocate(instr_list: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instr_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bc` [INFO] [stdout] --> src/relocate.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let mut bc = 0; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_bc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/relocate.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | for item in instr_list.iter() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/relocate.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let mut bytes = Vec::new(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/relocate.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let mut bc = 0; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling astambly v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/lexer.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum TokenType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 11 | /// Identifies a variable or functuin e.g: a, main, print [INFO] [stdout] 12 | Identifier, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 13 | /// Numeric value e.g: 12 ,0xf3, 0b110 [INFO] [stdout] 14 | Int(i32), [INFO] [stdout] | ^^^ [INFO] [stdout] 15 | /// Floating value e.g: 0.5 [INFO] [stdout] 16 | Float(f64), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 17 | /// Character Literal e.g: 'A', '9', '\n' [INFO] [stdout] 18 | Char(char), [INFO] [stdout] | ^^^^ [INFO] [stdout] 19 | /// String Literal e.g: "Hello world", "hi\nhello" [INFO] [stdout] 20 | String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 21 | /// Inline Asm [INFO] [stdout] 22 | Plus, [INFO] [stdout] | ^^^^ [INFO] [stdout] 23 | /// "-" Sub and Neg [INFO] [stdout] 24 | Minus, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 25 | /// "*" Multiply [INFO] [stdout] 26 | Multi, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 27 | /// ":" NOT DEFINED YET [INFO] [stdout] 28 | Colon, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 29 | /// "," Seperating Arguments [INFO] [stdout] 30 | Comma, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 31 | /// "[" [INFO] [stdout] 32 | OBracket, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 33 | /// "]" [INFO] [stdout] 34 | CBracket, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 35 | /// END OF FILE [INFO] [stdout] 36 | Eof, [INFO] [stdout] | ^^^ [INFO] [stdout] 37 | /// START OF FILE [INFO] [stdout] 38 | Sof, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Token` is never constructed [INFO] [stdout] --> src/lexer.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct Token { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_empty`, and `empty` are never used [INFO] [stdout] --> src/lexer.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 68 | impl Token { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn new(t_type: TokenType, literal: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn empty() -> Token { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Lexer` is never constructed [INFO] [stdout] --> src/lexer.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 108 | pub struct Lexer { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Lexer` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/lexer.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 117 | impl Lexer { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn new(file_path: String, source: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | fn drop_line(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | fn drop(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | fn trim_left(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub fn get_token_type(&self) -> TokenType { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | pub fn match_token(&mut self, t_type: TokenType) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 199 | pub fn get_token(&self) -> Token { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | pub fn next_token(&mut self) -> Token { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 266 | fn tokenize_char_literal(&mut self) -> Token { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 321 | fn tokenize_string_literal(&mut self) -> Token { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 384 | fn is_single_char_token(char: char) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 403 | fn parse_numeric_literal(&self, literal: &String) -> TokenType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 442 | fn expect_char(&self, copt: &Option, chars: Vec) -> char { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_asm` is never used [INFO] [stdout] --> src/parser.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn parse_asm(source: String) -> Instr { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_mnemonic` is never used [INFO] [stdout] --> src/parser.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn parse_mnemonic(lexer: &mut Lexer) -> Mnemonic { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_op` is never used [INFO] [stdout] --> src/parser.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn parse_op(lexer: &mut Lexer) -> Opr { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_mem` is never used [INFO] [stdout] --> src/parser.rs:77:4 [INFO] [stdout] | [INFO] [stdout] 77 | fn parse_mem(lexer: &mut Lexer, size: u8) -> Opr { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `relocate` is never used [INFO] [stdout] --> src/relocate.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn relocate(instr_list: &mut Vec) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `text_section_bytes` is never used [INFO] [stdout] --> src/relocate.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn text_section_bytes(instr_list: &mut Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `instr2` is never used [INFO] [stdout] --> src/relocate.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn instr2(mnemonic: Mnemonic, opr1: impl Into, opr2: impl Into) -> Instr { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `instr1` is never used [INFO] [stdout] --> src/relocate.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn instr1(mnemonic: Mnemonic, opr1: impl Into) -> Instr{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `instr0` is never used [INFO] [stdout] --> src/relocate.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn instr0(mnemonic: Mnemonic) -> Instr{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `literal` [INFO] [stdout] --> src/lexer.rs:234:17 [INFO] [stdout] | [INFO] [stdout] 234 | let literal = String::from_iter(self.source[index..self.cur].to_vec()); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_literal` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instr_list` [INFO] [stdout] --> src/relocate.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn relocate(instr_list: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instr_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bc` [INFO] [stdout] --> src/relocate.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let mut bc = 0; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_bc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/relocate.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | for item in instr_list.iter() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/relocate.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let mut bytes = Vec::new(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/relocate.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let mut bc = 0; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `relocate` is never used [INFO] [stdout] --> src/relocate.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn relocate(instr_list: &mut Vec) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `text_section_bytes` is never used [INFO] [stdout] --> src/relocate.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn text_section_bytes(instr_list: &mut Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `instr2` is never used [INFO] [stdout] --> src/relocate.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn instr2(mnemonic: Mnemonic, opr1: impl Into, opr2: impl Into) -> Instr { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `instr1` is never used [INFO] [stdout] --> src/relocate.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn instr1(mnemonic: Mnemonic, opr1: impl Into) -> Instr{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `instr0` is never used [INFO] [stdout] --> src/relocate.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn instr0(mnemonic: Mnemonic) -> Instr{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.65s [INFO] running `Command { std: "docker" "inspect" "2e39637e9bf43c72bd84da2f21815704aa55b678a5d7808a3ca3fed471041d54", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2e39637e9bf43c72bd84da2f21815704aa55b678a5d7808a3ca3fed471041d54", kill_on_drop: false }` [INFO] [stdout] 2e39637e9bf43c72bd84da2f21815704aa55b678a5d7808a3ca3fed471041d54 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Copt-level=3" "-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" "+d073071d77ce0f93b4fd8cc567a1e2b9e1b22126" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] fc6c13771b122c1276f39b36cd067cb9b01e58161ef14bec840dc4fcf94c03f2 [INFO] running `Command { std: "docker" "start" "-a" "fc6c13771b122c1276f39b36cd067cb9b01e58161ef14bec840dc4fcf94c03f2", kill_on_drop: false }` [INFO] [stderr] warning: unused variable: `literal` [INFO] [stderr] --> src/lexer.rs:234:17 [INFO] [stderr] | [INFO] [stderr] 234 | let literal = String::from_iter(self.source[index..self.cur].to_vec()); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_literal` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `instr_list` [INFO] [stderr] --> src/relocate.rs:3:17 [INFO] [stderr] | [INFO] [stderr] 3 | pub fn relocate(instr_list: &mut Vec) { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instr_list` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `bc` [INFO] [stderr] --> src/relocate.rs:52:13 [INFO] [stderr] | [INFO] [stderr] 52 | let mut bc = 0; [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_bc` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `item` [INFO] [stderr] --> src/relocate.rs:53:9 [INFO] [stderr] | [INFO] [stderr] 53 | for item in instr_list.iter() { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/relocate.rs:51:9 [INFO] [stderr] | [INFO] [stderr] 51 | let mut bytes = Vec::new(); [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/relocate.rs:52:9 [INFO] [stderr] | [INFO] [stderr] 52 | let mut bc = 0; [INFO] [stderr] | ----^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: multiple variants are never constructed [INFO] [stderr] --> src/lexer.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 10 | pub enum TokenType { [INFO] [stderr] | --------- variants in this enum [INFO] [stderr] 11 | /// Identifies a variable or functuin e.g: a, main, print [INFO] [stderr] 12 | Identifier, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 13 | /// Numeric value e.g: 12 ,0xf3, 0b110 [INFO] [stderr] 14 | Int(i32), [INFO] [stderr] | ^^^ [INFO] [stderr] 15 | /// Floating value e.g: 0.5 [INFO] [stderr] 16 | Float(f64), [INFO] [stderr] | ^^^^^ [INFO] [stderr] 17 | /// Character Literal e.g: 'A', '9', '\n' [INFO] [stderr] 18 | Char(char), [INFO] [stderr] | ^^^^ [INFO] [stderr] 19 | /// String Literal e.g: "Hello world", "hi\nhello" [INFO] [stderr] 20 | String, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 21 | /// Inline Asm [INFO] [stderr] 22 | Plus, [INFO] [stderr] | ^^^^ [INFO] [stderr] 23 | /// "-" Sub and Neg [INFO] [stderr] 24 | Minus, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 25 | /// "*" Multiply [INFO] [stderr] 26 | Multi, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 27 | /// ":" NOT DEFINED YET [INFO] [stderr] 28 | Colon, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 29 | /// "," Seperating Arguments [INFO] [stderr] 30 | Comma, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 31 | /// "[" [INFO] [stderr] 32 | OBracket, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 33 | /// "]" [INFO] [stderr] 34 | CBracket, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 35 | /// END OF FILE [INFO] [stderr] 36 | Eof, [INFO] [stderr] | ^^^ [INFO] [stderr] 37 | /// START OF FILE [INFO] [stderr] 38 | Sof, [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `TokenType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: struct `Token` is never constructed [INFO] [stderr] --> src/lexer.rs:63:12 [INFO] [stderr] | [INFO] [stderr] 63 | pub struct Token { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Token` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `is_empty`, and `empty` are never used [INFO] [stderr] --> src/lexer.rs:85:12 [INFO] [stderr] | [INFO] [stderr] 68 | impl Token { [INFO] [stderr] | ---------- associated items in this implementation [INFO] [stderr] ... [INFO] [stderr] 85 | pub fn new(t_type: TokenType, literal: String) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 94 | pub fn is_empty(&self) -> bool { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 99 | pub fn empty() -> Token { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Lexer` is never constructed [INFO] [stderr] --> src/lexer.rs:108:12 [INFO] [stderr] | [INFO] [stderr] 108 | pub struct Lexer { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Lexer` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: multiple associated items are never used [INFO] [stderr] --> src/lexer.rs:124:12 [INFO] [stderr] | [INFO] [stderr] 117 | impl Lexer { [INFO] [stderr] | ---------- associated items in this implementation [INFO] [stderr] ... [INFO] [stderr] 124 | pub fn new(file_path: String, source: String) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 136 | fn is_empty(&self) -> bool { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 141 | fn drop_line(&mut self) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 153 | fn drop(&mut self) { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 165 | fn trim_left(&mut self) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 173 | pub fn get_token_type(&self) -> TokenType { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 187 | pub fn match_token(&mut self, t_type: TokenType) { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 199 | pub fn get_token(&self) -> Token { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 205 | pub fn next_token(&mut self) -> Token { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 266 | fn tokenize_char_literal(&mut self) -> Token { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 321 | fn tokenize_string_literal(&mut self) -> Token { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 384 | fn is_single_char_token(char: char) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 403 | fn parse_numeric_literal(&self, literal: &String) -> TokenType { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 442 | fn expect_char(&self, copt: &Option, chars: Vec) -> char { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `parse_asm` is never used [INFO] [stderr] --> src/parser.rs:13:8 [INFO] [stderr] | [INFO] [stderr] 13 | pub fn parse_asm(source: String) -> Instr { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `parse_mnemonic` is never used [INFO] [stderr] --> src/parser.rs:38:4 [INFO] [stderr] | [INFO] [stderr] 38 | fn parse_mnemonic(lexer: &mut Lexer) -> Mnemonic { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `parse_op` is never used [INFO] [stderr] --> src/parser.rs:44:4 [INFO] [stderr] | [INFO] [stderr] 44 | fn parse_op(lexer: &mut Lexer) -> Opr { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `parse_mem` is never used [INFO] [stderr] --> src/parser.rs:77:4 [INFO] [stderr] | [INFO] [stderr] 77 | fn parse_mem(lexer: &mut Lexer, size: u8) -> Opr { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `relocate` is never used [INFO] [stderr] --> src/relocate.rs:3:8 [INFO] [stderr] | [INFO] [stderr] 3 | pub fn relocate(instr_list: &mut Vec) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `text_section_bytes` is never used [INFO] [stderr] --> src/relocate.rs:49:8 [INFO] [stderr] | [INFO] [stderr] 49 | pub fn text_section_bytes(instr_list: &mut Vec) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `instr2` is never used [INFO] [stderr] --> src/relocate.rs:65:8 [INFO] [stderr] | [INFO] [stderr] 65 | pub fn instr2(mnemonic: Mnemonic, opr1: impl Into, opr2: impl Into) -> Instr { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `instr1` is never used [INFO] [stderr] --> src/relocate.rs:69:8 [INFO] [stderr] | [INFO] [stderr] 69 | pub fn instr1(mnemonic: Mnemonic, opr1: impl Into) -> Instr{ [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `instr0` is never used [INFO] [stderr] --> src/relocate.rs:73:8 [INFO] [stderr] | [INFO] [stderr] 73 | pub fn instr0(mnemonic: Mnemonic) -> Instr{ [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `astambly` (lib) generated 20 warnings (run `cargo fix --lib -p astambly` to apply 2 suggestions) [INFO] [stderr] warning: function `relocate` is never used [INFO] [stderr] --> src/relocate.rs:3:8 [INFO] [stderr] | [INFO] [stderr] 3 | pub fn relocate(instr_list: &mut Vec) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `astambly` (lib test) generated 11 warnings (10 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/astambly-d42fe756b3ffdacd) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test instructions::test_new_instr ... ok [INFO] [stdout] test instructions::test_enum_varients ... ok [INFO] [stdout] test parser::test_mnemonic_parsing ... FAILED [INFO] [stderr] error: test failed, to rerun pass `--lib` [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- parser::test_mnemonic_parsing stdout ---- [INFO] [stdout] thread 'parser::test_mnemonic_parsing' panicked at src/lexer.rs:261:9: [INFO] [stdout] Unexpected Character [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x559f64816f56 - std::backtrace_rs::backtrace::libunwind::trace::hbf3981e6c8a62f19 [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5 [INFO] [stdout] 1: 0x559f64816f56 - std::backtrace_rs::backtrace::trace_unsynchronized::h5d13053d67c404cc [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x559f64816f56 - std::sys_common::backtrace::_print_fmt::hd24dc5b701eaf8ad [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/std/src/sys_common/backtrace.rs:68:5 [INFO] [stdout] 3: 0x559f64816f56 - ::fmt::h1d0155c7c5a7d116 [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/std/src/sys_common/backtrace.rs:44:22 [INFO] [stdout] 4: 0x559f6484037c - core::fmt::rt::Argument::fmt::h462c7a4781d69908 [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/core/src/fmt/rt.rs:142:9 [INFO] [stdout] 5: 0x559f6484037c - core::fmt::write::h3cadc3d0c35667c3 [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/core/src/fmt/mod.rs:1120:17 [INFO] [stdout] 6: 0x559f6481477f - std::io::Write::write_fmt::h7b46babfe8aff3fc [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/std/src/io/mod.rs:1846:15 [INFO] [stdout] 7: 0x559f64816d04 - std::sys_common::backtrace::_print::h21e0ad4a03aa55df [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/std/src/sys_common/backtrace.rs:47:5 [INFO] [stdout] 8: 0x559f64816d04 - std::sys_common::backtrace::print::hb7cfd89cda9bdca7 [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/std/src/sys_common/backtrace.rs:34:9 [INFO] [stdout] 9: 0x559f648189fb - std::panicking::default_hook::{{closure}}::hceb0cad555a61bc8 [INFO] [stdout] 10: 0x559f648186cd - std::panicking::default_hook::h00eb745c4c12778b [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/std/src/panicking.rs:289:9 [INFO] [stdout] 11: 0x559f647e8607 - as core::ops::function::Fn>::call::h6a7083dbc9bd7b5f [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/alloc/src/boxed.rs:2030:9 [INFO] [stdout] 12: 0x559f647e8607 - test::test_main::{{closure}}::h4db87ac2515c25e3 [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/test/src/lib.rs:137:21 [INFO] [stdout] 13: 0x559f64819030 - as core::ops::function::Fn>::call::hf3b7bc2e2257730b [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/alloc/src/boxed.rs:2030:9 [INFO] [stdout] 14: 0x559f64819030 - std::panicking::rust_panic_with_hook::hccddb3269d601551 [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/std/src/panicking.rs:786:13 [INFO] [stdout] 15: 0x559f64818d39 - std::panicking::begin_panic_handler::{{closure}}::h1759cdf989495c64 [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/std/src/panicking.rs:652:13 [INFO] [stdout] 16: 0x559f64817436 - std::sys_common::backtrace::__rust_end_short_backtrace::h209794238b4d13a4 [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/std/src/sys_common/backtrace.rs:171:18 [INFO] [stdout] 17: 0x559f64818aa4 - rust_begin_unwind [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/std/src/panicking.rs:648:5 [INFO] [stdout] 18: 0x559f647aba45 - core::panicking::panic_fmt::ha17ebef8fbaa0a3e [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/core/src/panicking.rs:72:14 [INFO] [stdout] 19: 0x559f647ad8c6 - astambly::lexer::Lexer::_next_token::hbf13a1d56f879d83 [INFO] [stdout] at /opt/rustwide/workdir/src/lexer.rs:261:9 [INFO] [stdout] 20: 0x559f647ad8c6 - astambly::lexer::Lexer::next_token::hb20a0bcba9735cfb [INFO] [stdout] at /opt/rustwide/workdir/src/lexer.rs:206:21 [INFO] [stdout] 21: 0x559f647af416 - astambly::parser::parse_mnemonic::h92c244a85d3b40a2 [INFO] [stdout] at /opt/rustwide/workdir/src/parser.rs:39:17 [INFO] [stdout] 22: 0x559f647af416 - astambly::parser::parse_asm::h138e88c8ba29a540 [INFO] [stdout] at /opt/rustwide/workdir/src/parser.rs:15:21 [INFO] [stdout] 23: 0x559f647b0a80 - astambly::parser::test_mnemonic_parsing::hbdc5da0af7633dd2 [INFO] [stdout] at /opt/rustwide/workdir/src/parser.rs:126:9 [INFO] [stdout] 24: 0x559f647b2739 - astambly::parser::test_mnemonic_parsing::{{closure}}::hfa80c2b576e7d65b [INFO] [stdout] at /opt/rustwide/workdir/src/parser.rs:123:27 [INFO] [stdout] 25: 0x559f647b2739 - core::ops::function::FnOnce::call_once::h44a2b0b6d680661f [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x559f647ede0f - core::ops::function::FnOnce::call_once::hb293dddd1a0c8d0c [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 27: 0x559f647ede0f - test::__rust_begin_short_backtrace::hcc33cf50a0d42744 [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/test/src/lib.rs:620:18 [INFO] [stdout] 28: 0x559f647ec980 - test::run_test_in_process::{{closure}}::h1a67b8b225cf5559 [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/test/src/lib.rs:643:60 [INFO] [stdout] 29: 0x559f647ec980 - as core::ops::function::FnOnce<()>>::call_once::h6c8366f6b1a529d0 [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 30: 0x559f647ec980 - std::panicking::try::do_call::h3ac771f4eea356d5 [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/std/src/panicking.rs:555:40 [INFO] [stdout] 31: 0x559f647ec980 - std::panicking::try::h2b1799e4f57e5bcf [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/std/src/panicking.rs:519:19 [INFO] [stdout] 32: 0x559f647ec980 - std::panic::catch_unwind::h0a3cc3fea72ac271 [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/std/src/panic.rs:142:14 [INFO] [stdout] 33: 0x559f647ec980 - test::run_test_in_process::h47356101e0c4cc43 [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/test/src/lib.rs:643:27 [INFO] [stdout] 34: 0x559f647ec980 - test::run_test::{{closure}}::hfc86d13e98ee1936 [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/test/src/lib.rs:566:43 [INFO] [stdout] 35: 0x559f647b4cc3 - test::run_test::{{closure}}::h077c30ad86447616 [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/test/src/lib.rs:594:41 [INFO] [stdout] 36: 0x559f647b4cc3 - std::sys_common::backtrace::__rust_begin_short_backtrace::h7a0647371687c548 [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/std/src/sys_common/backtrace.rs:155:18 [INFO] [stdout] 37: 0x559f647b995f - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h0ade0df8a561803e [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/std/src/thread/mod.rs:528:17 [INFO] [stdout] 38: 0x559f647b995f - as core::ops::function::FnOnce<()>>::call_once::h94e6781319385c1d [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 39: 0x559f647b995f - std::panicking::try::do_call::h2d8e7d2812ed142e [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/std/src/panicking.rs:555:40 [INFO] [stdout] 40: 0x559f647b995f - std::panicking::try::hfec8a6adb9bfcaea [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/std/src/panicking.rs:519:19 [INFO] [stdout] 41: 0x559f647b995f - std::panic::catch_unwind::hf488fb91a41eb5b5 [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/std/src/panic.rs:142:14 [INFO] [stdout] 42: 0x559f647b995f - std::thread::Builder::spawn_unchecked_::{{closure}}::h306975a3cadd5153 [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/std/src/thread/mod.rs:527:30 [INFO] [stdout] 43: 0x559f647b995f - core::ops::function::FnOnce::call_once{{vtable.shim}}::h4f4ed26f27d558ae [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 44: 0x559f6481d2b5 - as core::ops::function::FnOnce>::call_once::h17d6fdbdde1f730c [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/alloc/src/boxed.rs:2016:9 [INFO] [stdout] 45: 0x559f6481d2b5 - as core::ops::function::FnOnce>::call_once::h298d88b0d0cf4d06 [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/alloc/src/boxed.rs:2016:9 [INFO] [stdout] 46: 0x559f6481d2b5 - std::sys::pal::unix::thread::Thread::new::thread_start::h1ecd97591626fa72 [INFO] [stdout] at /rustc/d073071d77ce0f93b4fd8cc567a1e2b9e1b22126/library/std/src/sys/pal/unix/thread.rs:108:17 [INFO] [stdout] 47: 0x7fbedd3ccac3 - [INFO] [stdout] 48: 0x7fbedd45dbf4 - __clone [INFO] [stdout] 49: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] parser::test_mnemonic_parsing [INFO] [stdout] [INFO] [stdout] test result: FAILED. 2 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "fc6c13771b122c1276f39b36cd067cb9b01e58161ef14bec840dc4fcf94c03f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc6c13771b122c1276f39b36cd067cb9b01e58161ef14bec840dc4fcf94c03f2", kill_on_drop: false }` [INFO] [stdout] fc6c13771b122c1276f39b36cd067cb9b01e58161ef14bec840dc4fcf94c03f2