[INFO] cloning repository https://github.com/julianolorenzato/venus [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/julianolorenzato/venus" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjulianolorenzato%2Fvenus", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjulianolorenzato%2Fvenus'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9405680338791cdc73af20f66e23cb147e8bf2c4 [INFO] checking julianolorenzato/venus against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjulianolorenzato%2Fvenus" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/julianolorenzato/venus [INFO] finished tweaking git repo https://github.com/julianolorenzato/venus [INFO] tweaked toml for git repo https://github.com/julianolorenzato/venus written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/julianolorenzato/venus on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/julianolorenzato/venus 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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded clap v4.5.17 [INFO] [stderr] Downloaded predicates v3.1.2 [INFO] [stderr] Downloaded assert_cmd v2.0.16 [INFO] [stderr] Downloaded clap_derive v4.5.13 [INFO] [stderr] Downloaded clap_builder v4.5.17 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8331e0036efedda3a1ec3ec72933bda4c2df4f4837915e253ca3a4a6765f5fe6 [INFO] running `Command { std: "docker" "start" "-a" "8331e0036efedda3a1ec3ec72933bda4c2df4f4837915e253ca3a4a6765f5fe6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8331e0036efedda3a1ec3ec72933bda4c2df4f4837915e253ca3a4a6765f5fe6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8331e0036efedda3a1ec3ec72933bda4c2df4f4837915e253ca3a4a6765f5fe6", kill_on_drop: false }` [INFO] [stdout] 8331e0036efedda3a1ec3ec72933bda4c2df4f4837915e253ca3a4a6765f5fe6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 806374b8e8e61fae194ff09c707e1b972fd533df1263ebf43dbf911edb01adbd [INFO] running `Command { std: "docker" "start" "-a" "806374b8e8e61fae194ff09c707e1b972fd533df1263ebf43dbf911edb01adbd", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Checking anstyle v1.0.8 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Checking colorchoice v1.0.2 [INFO] [stderr] Checking anstyle-query v1.1.1 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking clap_lex v0.7.2 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Compiling once_cell v1.20.3 [INFO] [stderr] Checking common v0.1.0 (/opt/rustwide/workdir/common) [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Checking either v1.15.0 [INFO] [stdout] warning: unused import: `Word` [INFO] [stdout] --> common/src/instructions.rs:1:34 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{NOperands, Sizeable, Word}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking anstyle-parse v0.2.5 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stdout] warning: method `opcode` is never used [INFO] [stdout] --> common/src/instructions.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 39 | impl Instruction { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 40 | fn opcode(&self) -> u8 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking predicates-core v1.0.8 [INFO] [stderr] Checking itertools v0.14.0 [INFO] [stderr] Checking difflib v0.4.0 [INFO] [stderr] Checking termtree v0.4.1 [INFO] [stderr] Compiling assert_cmd v2.0.16 [INFO] [stderr] Checking anstream v0.6.15 [INFO] [stderr] Checking loader v0.1.0 (/opt/rustwide/workdir/loader) [INFO] [stderr] Checking linker v0.1.0 (/opt/rustwide/workdir/linker) [INFO] [stdout] warning: unused import: `Word` [INFO] [stdout] --> common/src/instructions.rs:1:34 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{NOperands, Sizeable, Word}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `opcode` is never used [INFO] [stdout] --> common/src/instructions.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 39 | impl Instruction { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 40 | fn opcode(&self) -> u8 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking runtime v0.1.0 (/opt/rustwide/workdir/runtime) [INFO] [stderr] Checking predicates v3.1.2 [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> loader/src/main.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | fn cute(a: impl Primate) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> loader/src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 20 | struct Gorilla { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 21 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `tail_size` are never read [INFO] [stdout] --> loader/src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 30 | struct SpiderMonkey { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 31 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 32 | tail_size: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Feline` is never used [INFO] [stdout] --> loader/src/main.rs:37:7 [INFO] [stdout] | [INFO] [stdout] 37 | trait Feline {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `a` is never used [INFO] [stdout] --> loader/src/main.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 39 | impl dyn Primate { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 40 | fn a() -> String { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cute` is never used [INFO] [stdout] --> loader/src/main.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn cute(a: impl Primate) {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking predicates-tree v1.0.11 [INFO] [stderr] Checking clap_builder v4.5.17 [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> loader/src/main.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | fn cute(a: impl Primate) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> loader/src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 20 | struct Gorilla { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 21 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `tail_size` are never read [INFO] [stdout] --> loader/src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 30 | struct SpiderMonkey { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 31 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 32 | tail_size: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Feline` is never used [INFO] [stdout] --> loader/src/main.rs:37:7 [INFO] [stdout] | [INFO] [stdout] 37 | trait Feline {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `a` is never used [INFO] [stdout] --> loader/src/main.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 39 | impl dyn Primate { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 40 | fn a() -> String { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cute` is never used [INFO] [stdout] --> loader/src/main.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn cute(a: impl Primate) {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.99 [INFO] [stderr] Checking wait-timeout v0.2.0 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling clap_derive v4.5.13 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking bstr v1.10.0 [INFO] [stderr] Compiling pest v2.7.15 [INFO] [stderr] Checking clap v4.5.17 [INFO] [stderr] Checking vm v0.1.0 (/opt/rustwide/workdir/vm) [INFO] [stderr] Checking codegen v0.1.0 (/opt/rustwide/workdir/codegen) [INFO] [stdout] warning: unused imports: `instructions::token_to_instr` and `pseudo_instructions::token_to_pseudo_instr` [INFO] [stdout] --> codegen/src/assembler.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use common::{instructions::token_to_instr, pseudo_instructions::token_to_pseudo_instr}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NOperands` and `Sizeable` [INFO] [stdout] --> codegen/src/assembler.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use common::{NOperands, Sizeable, Word}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> codegen/src/assembler.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::Iter` [INFO] [stdout] --> codegen/src/assembler.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::slice::Iter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader`, `Seek`, and `fs::File` [INFO] [stdout] --> codegen/src/assembler.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | fs::File, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 10 | io::{BufRead, BufReader, Seek}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error::ParserError` [INFO] [stdout] --> codegen/src/macro_processor.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | error::ParserError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `thread` and `time::Duration` [INFO] [stdout] --> codegen/src/macro_processor.rs:5:47 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{collections::{HashMap, LinkedList}, thread, time::Duration}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::Iter` [INFO] [stdout] --> codegen/src/parser.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::slice::Iter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cursor`, `OpenOptions`, and `Read` [INFO] [stdout] --> codegen/src/main.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | fs::{File, OpenOptions}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 11 | io::{BufRead, BufReader, Cursor, Read, Write}, [INFO] [stdout] | ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `IMMEDIATE`, `DIRECT`, and `INDIRECT` are never constructed [INFO] [stdout] --> vm/src/lib.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | enum AddressMode { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 10 | IMMEDIATE, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 11 | DIRECT, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | INDIRECT, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: environment variable `CARGO_BIN_EXE_assembler` not defined at compile time [INFO] [stdout] --> codegen/tests/macro_processor.rs:12:20 [INFO] [stdout] | [INFO] [stdout] 12 | println!("{}", env!("CARGO_BIN_EXE_assembler")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: Cargo sets build script variables at run time. Use `std::env::var("CARGO_BIN_EXE_assembler")` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `assembler` [INFO] [stdout] --> codegen/tests/macro_processor.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | use assembler::*; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `assembler` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `assembler`, use `cargo add assembler` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `operation` [INFO] [stdout] --> codegen/src/assembler.rs:78:41 [INFO] [stdout] | [INFO] [stdout] 78 | if let Line::Regular(label, operation, operand1, operand2) = line { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_operation` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `operand2` [INFO] [stdout] --> codegen/src/assembler.rs:78:62 [INFO] [stdout] | [INFO] [stdout] 78 | if let Line::Regular(label, operation, operand1, operand2) = line { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_operand2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `self` and `temp_dir` [INFO] [stdout] --> codegen/tests/macro_processor.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use std::env::{self, temp_dir}; [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `literal` [INFO] [stdout] --> codegen/src/assembler.rs:89:33 [INFO] [stdout] | [INFO] [stdout] 89 | if let Some(literal) = extract_literal(&operand1) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_literal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `assert_cmd::cargo::CommandCargoExt` [INFO] [stdout] --> codegen/tests/macro_processor.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use assert_cmd::cargo::CommandCargoExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> codegen/src/macro_processor.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 43 | fn check_params(token: &mut String, params: Vec) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> codegen/src/macro_processor.rs:43:37 [INFO] [stdout] | [INFO] [stdout] 43 | fn check_params(token: &mut String, params: Vec) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> codegen/src/macro_processor.rs:132:39 [INFO] [stdout] | [INFO] [stdout] 132 | Line::MacroCall(name, args, _) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> codegen/tests/macro_processor.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | std::process::Command::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^-- argument #1 is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/process.rs:655:12 [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 9 | std::process::Command::new(/* program */); [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Assembler` is never constructed [INFO] [stdout] --> codegen/src/assembler.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Assembler { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AllocationMode` is never used [INFO] [stdout] --> codegen/src/assembler.rs:25:6 [INFO] [stdout] | [INFO] [stdout] 25 | enum AllocationMode { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Info` is never constructed [INFO] [stdout] --> codegen/src/assembler.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | struct Info { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `first_pass` is never used [INFO] [stdout] --> codegen/src/assembler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 35 | impl Assembler { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 76 | fn first_pass(&mut self, p: Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extract_literal` is never used [INFO] [stdout] --> codegen/src/assembler.rs:118:4 [INFO] [stdout] | [INFO] [stdout] 118 | fn extract_literal(operand: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `InvalidLabel` is never constructed [INFO] [stdout] --> codegen/src/error.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum ParserErrorKind { [INFO] [stdout] | --------------- variant in this enum [INFO] [stdout] 11 | InvalidLabel, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParserErrorKind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `params` is never read [INFO] [stdout] --> codegen/src/macro_processor.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 13 | struct Macro { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 14 | // name: String, [INFO] [stdout] 15 | params: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Macro` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `apply` are never used [INFO] [stdout] --> codegen/src/macro_processor.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 19 | impl Macro { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 20 | fn new(params: Vec, body: Vec) -> Macro { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | fn apply(&self) -> Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_params` is never used [INFO] [stdout] --> codegen/src/macro_processor.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn check_params(token: &mut String, params: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_name` is never used [INFO] [stdout] --> codegen/src/parser.rs:155:4 [INFO] [stdout] | [INFO] [stdout] 155 | fn check_name(token: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `codegen` (test "macro_processor") due to 3 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused imports: `instructions::token_to_instr` and `pseudo_instructions::token_to_pseudo_instr` [INFO] [stdout] --> codegen/src/assembler.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use common::{instructions::token_to_instr, pseudo_instructions::token_to_pseudo_instr}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NOperands` and `Sizeable` [INFO] [stdout] --> codegen/src/assembler.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use common::{NOperands, Sizeable, Word}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> codegen/src/assembler.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::Iter` [INFO] [stdout] --> codegen/src/assembler.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::slice::Iter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader`, `Seek`, and `fs::File` [INFO] [stdout] --> codegen/src/assembler.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | fs::File, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 10 | io::{BufRead, BufReader, Seek}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error::ParserError` [INFO] [stdout] --> codegen/src/macro_processor.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | error::ParserError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `thread` and `time::Duration` [INFO] [stdout] --> codegen/src/macro_processor.rs:5:47 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{collections::{HashMap, LinkedList}, thread, time::Duration}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::Iter` [INFO] [stdout] --> codegen/src/parser.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::slice::Iter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OpenOptions` and `Read` [INFO] [stdout] --> codegen/src/main.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | fs::{File, OpenOptions}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 11 | io::{BufRead, BufReader, Cursor, Read, Write}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `operation` [INFO] [stdout] --> codegen/src/assembler.rs:78:41 [INFO] [stdout] | [INFO] [stdout] 78 | if let Line::Regular(label, operation, operand1, operand2) = line { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_operation` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `operand2` [INFO] [stdout] --> codegen/src/assembler.rs:78:62 [INFO] [stdout] | [INFO] [stdout] 78 | if let Line::Regular(label, operation, operand1, operand2) = line { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_operand2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `literal` [INFO] [stdout] --> codegen/src/assembler.rs:89:33 [INFO] [stdout] | [INFO] [stdout] 89 | if let Some(literal) = extract_literal(&operand1) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_literal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> codegen/src/macro_processor.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 43 | fn check_params(token: &mut String, params: Vec) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> codegen/src/macro_processor.rs:43:37 [INFO] [stdout] | [INFO] [stdout] 43 | fn check_params(token: &mut String, params: Vec) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> codegen/src/macro_processor.rs:132:39 [INFO] [stdout] | [INFO] [stdout] 132 | Line::MacroCall(name, args, _) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Assembler` is never constructed [INFO] [stdout] --> codegen/src/assembler.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Assembler { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AllocationMode` is never used [INFO] [stdout] --> codegen/src/assembler.rs:25:6 [INFO] [stdout] | [INFO] [stdout] 25 | enum AllocationMode { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Info` is never constructed [INFO] [stdout] --> codegen/src/assembler.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | struct Info { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `first_pass` is never used [INFO] [stdout] --> codegen/src/assembler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 35 | impl Assembler { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 76 | fn first_pass(&mut self, p: Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extract_literal` is never used [INFO] [stdout] --> codegen/src/assembler.rs:118:4 [INFO] [stdout] | [INFO] [stdout] 118 | fn extract_literal(operand: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `InvalidLabel` is never constructed [INFO] [stdout] --> codegen/src/error.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum ParserErrorKind { [INFO] [stdout] | --------------- variant in this enum [INFO] [stdout] 11 | InvalidLabel, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParserErrorKind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `params` is never read [INFO] [stdout] --> codegen/src/macro_processor.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 13 | struct Macro { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 14 | // name: String, [INFO] [stdout] 15 | params: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Macro` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `apply` are never used [INFO] [stdout] --> codegen/src/macro_processor.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 19 | impl Macro { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 20 | fn new(params: Vec, body: Vec) -> Macro { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | fn apply(&self) -> Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_params` is never used [INFO] [stdout] --> codegen/src/macro_processor.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn check_params(token: &mut String, params: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_name` is never used [INFO] [stdout] --> codegen/src/parser.rs:155:4 [INFO] [stdout] | [INFO] [stdout] 155 | fn check_name(token: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "806374b8e8e61fae194ff09c707e1b972fd533df1263ebf43dbf911edb01adbd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "806374b8e8e61fae194ff09c707e1b972fd533df1263ebf43dbf911edb01adbd", kill_on_drop: false }` [INFO] [stdout] 806374b8e8e61fae194ff09c707e1b972fd533df1263ebf43dbf911edb01adbd