[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] checking mahanfarzaneh2000/Astamboly against master#0f353363965ebf05e0757f7679c800b39c51a07e for pr-144896 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmahanfarzaneh2000%2FAstamboly" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [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-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mahanfarzaneh2000/Astamboly on toolchain 0f353363965ebf05e0757f7679c800b39c51a07e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0f353363965ebf05e0757f7679c800b39c51a07e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+0f353363965ebf05e0757f7679c800b39c51a07e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:ae6f63d130afcfff7f91f5ba9fdb2a74d52830289c6a2ea2d23a94dcfb480a0d" "/opt/rustwide/cargo-home/bin/cargo" "+0f353363965ebf05e0757f7679c800b39c51a07e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1b61e7e914f60b5205008ef218d3c46117fb217fc9a7823eabc71104ba9dc54f [INFO] running `Command { std: "docker" "start" "-a" "1b61e7e914f60b5205008ef218d3c46117fb217fc9a7823eabc71104ba9dc54f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1b61e7e914f60b5205008ef218d3c46117fb217fc9a7823eabc71104ba9dc54f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1b61e7e914f60b5205008ef218d3c46117fb217fc9a7823eabc71104ba9dc54f", kill_on_drop: false }` [INFO] [stdout] 1b61e7e914f60b5205008ef218d3c46117fb217fc9a7823eabc71104ba9dc54f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ae6f63d130afcfff7f91f5ba9fdb2a74d52830289c6a2ea2d23a94dcfb480a0d" "/opt/rustwide/cargo-home/bin/cargo" "+0f353363965ebf05e0757f7679c800b39c51a07e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f115feca5dcd2115ebb916ded57e43ab1feaeac761234406cea3464afaaa6fd2 [INFO] running `Command { std: "docker" "start" "-a" "f115feca5dcd2115ebb916ded57e43ab1feaeac761234406cea3464afaaa6fd2", kill_on_drop: false }` [INFO] [stderr] Checking 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: enum `TokenType` is never used [INFO] [stdout] --> src/lexer.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum TokenType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [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] [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] [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: 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: field `file_path` is never read [INFO] [stdout] --> src/lexer.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 108 | pub struct Lexer { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 109 | pub file_path: String, [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] = note: `#[warn(dead_code)]` on by default [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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.21s [INFO] running `Command { std: "docker" "inspect" "f115feca5dcd2115ebb916ded57e43ab1feaeac761234406cea3464afaaa6fd2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f115feca5dcd2115ebb916ded57e43ab1feaeac761234406cea3464afaaa6fd2", kill_on_drop: false }` [INFO] [stdout] f115feca5dcd2115ebb916ded57e43ab1feaeac761234406cea3464afaaa6fd2