[INFO] cloning repository https://github.com/amelia-online/zasm [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/amelia-online/zasm" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Famelia-online%2Fzasm", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Famelia-online%2Fzasm'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6a33ddf7f8941eac6f9d2c9aee32c0a8ae084092 [INFO] checking amelia-online/zasm against try#099e089ab723e6ee96175f3496051098c60a4cd4 for pr-140208 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Famelia-online%2Fzasm" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/amelia-online/zasm on toolchain 099e089ab723e6ee96175f3496051098c60a4cd4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+099e089ab723e6ee96175f3496051098c60a4cd4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/amelia-online/zasm [INFO] finished tweaking git repo https://github.com/amelia-online/zasm [INFO] tweaked toml for git repo https://github.com/amelia-online/zasm written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/amelia-online/zasm 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" "+099e089ab723e6ee96175f3496051098c60a4cd4" "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-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+099e089ab723e6ee96175f3496051098c60a4cd4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 09f82301e90b2ff9e3ceb5f384d432d45da83067388c9051309b02db86606934 [INFO] running `Command { std: "docker" "start" "-a" "09f82301e90b2ff9e3ceb5f384d432d45da83067388c9051309b02db86606934", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "09f82301e90b2ff9e3ceb5f384d432d45da83067388c9051309b02db86606934", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "09f82301e90b2ff9e3ceb5f384d432d45da83067388c9051309b02db86606934", kill_on_drop: false }` [INFO] [stdout] 09f82301e90b2ff9e3ceb5f384d432d45da83067388c9051309b02db86606934 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+099e089ab723e6ee96175f3496051098c60a4cd4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6f909ae50e4ec832093593f28c10e76b67588b93f617513ebad06ddbcc5f6285 [INFO] running `Command { std: "docker" "start" "-a" "6f909ae50e4ec832093593f28c10e76b67588b93f617513ebad06ddbcc5f6285", kill_on_drop: false }` [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking zasm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `caps` [INFO] [stdout] --> src/zasmenv.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | let caps = pat.captures(field.as_str()).unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_caps` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/zasmenv.rs:42:24 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn parse_entry(s: String) -> Result, ()> { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/zasmenv.rs:50:25 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn parse_string(s: String) -> Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `field_pat` [INFO] [stdout] --> src/main.rs:355:9 [INFO] [stdout] | [INFO] [stdout] 355 | let field_pat = Regex::new(r"^(?\w+): (?)").unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_field_pat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:363:9 [INFO] [stdout] | [INFO] [stdout] 363 | let mut output_name = String::from("a.out.zm"); [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: associated functions `new` and `from` are never used [INFO] [stdout] --> src/main.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Instruction { [INFO] [stdout] | ---------------- associated functions in this implementation [INFO] [stdout] 23 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn from(opcode: u8, r1: u8, r2: u8, imm: u16) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Binding` is never constructed [INFO] [stdout] --> src/zasmenv.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Binding { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/zasmenv.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 11 | impl Binding { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 12 | pub fn new(ident: String, addr: u16, bytes: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_data` is never used [INFO] [stdout] --> src/zasmenv.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn parse_data(section: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_field` is never used [INFO] [stdout] --> src/zasmenv.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn parse_field(field: String, pat: &Regex) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_entry` is never used [INFO] [stdout] --> src/zasmenv.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn parse_entry(s: String) -> Result, ()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_string` is never used [INFO] [stdout] --> src/zasmenv.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn is_string() -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_string` is never used [INFO] [stdout] --> src/zasmenv.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn parse_string(s: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 4 arguments but 3 arguments were supplied [INFO] [stdout] --> src/main.rs:486:17 [INFO] [stdout] | [INFO] [stdout] 486 | let instr = parse("cmp @rg0, 0x21".to_string(), &instr_pattern, [INFO] [stdout] | _________________^^^^^- [INFO] [stdout] 487 | | &sngl_pat); [INFO] [stdout] | |________________________- argument #4 of type `&HashMap` is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:332:4 [INFO] [stdout] | [INFO] [stdout] 332 | fn parse(line: String, dblpat: &Regex, snglpat: &Regex, labels: &HashMap) -> Option { [INFO] [stdout] | ^^^^^ ----------------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 486 - let instr = parse("cmp @rg0, 0x21".to_string(), &instr_pattern, [INFO] [stdout] 487 - &sngl_pat); [INFO] [stdout] 486 + let instr = parse("cmp @rg0, 0x21".to_string(), &instr_pattern, &sngl_pat, /* &HashMap */); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> src/main.rs:496:15 [INFO] [stdout] | [INFO] [stdout] 496 | let res = parse_sngl("pop8 @rg0".to_string(), &single_arg_pattern); [INFO] [stdout] | ^^^^^^^^^^---------------------------------------------- argument #3 of type `&HashMap` is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:310:4 [INFO] [stdout] | [INFO] [stdout] 310 | fn parse_sngl(syntax: String, sap: &Regex, labels: &HashMap) -> Option { [INFO] [stdout] | ^^^^^^^^^^ ----------------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 496 | let res = parse_sngl("pop8 @rg0".to_string(), &single_arg_pattern, /* &HashMap */); [INFO] [stdout] | +++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `caps` [INFO] [stdout] --> src/zasmenv.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | let caps = pat.captures(field.as_str()).unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_caps` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/zasmenv.rs:42:24 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn parse_entry(s: String) -> Result, ()> { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/zasmenv.rs:50:25 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn parse_string(s: String) -> Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `field_pat` [INFO] [stdout] --> src/main.rs:355:9 [INFO] [stdout] | [INFO] [stdout] 355 | let field_pat = Regex::new(r"^(?\w+): (?)").unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_field_pat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:363:9 [INFO] [stdout] | [INFO] [stdout] 363 | let mut output_name = String::from("a.out.zm"); [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] For more information about this error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `zasm` (bin "zasm" test) due to 2 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "6f909ae50e4ec832093593f28c10e76b67588b93f617513ebad06ddbcc5f6285", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f909ae50e4ec832093593f28c10e76b67588b93f617513ebad06ddbcc5f6285", kill_on_drop: false }` [INFO] [stdout] 6f909ae50e4ec832093593f28c10e76b67588b93f617513ebad06ddbcc5f6285