[INFO] cloning repository https://github.com/kowat69/punas [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kowat69/punas" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkowat69%2Fpunas", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkowat69%2Fpunas'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b8209bf13df43c0f3fce89d2f60e36bb5f1c7c49 [INFO] building kowat69/punas against try#8b8eff55bd72abbb57167bc42222a7f91d41cb0d for pr-142134-abi-ast-error [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkowat69%2Fpunas" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kowat69/punas on toolchain 8b8eff55bd72abbb57167bc42222a7f91d41cb0d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kowat69/punas [INFO] finished tweaking git repo https://github.com/kowat69/punas [INFO] tweaked toml for git repo https://github.com/kowat69/punas written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/kowat69/punas 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" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1fc42c142835415de4eb1f6b281604601934b0df0f0a68c400848301d9fcf8af [INFO] running `Command { std: "docker" "start" "-a" "1fc42c142835415de4eb1f6b281604601934b0df0f0a68c400848301d9fcf8af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1fc42c142835415de4eb1f6b281604601934b0df0f0a68c400848301d9fcf8af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1fc42c142835415de4eb1f6b281604601934b0df0f0a68c400848301d9fcf8af", kill_on_drop: false }` [INFO] [stdout] 1fc42c142835415de4eb1f6b281604601934b0df0f0a68c400848301d9fcf8af [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 995819923c70293ea0f888f0d351d9a58b2f25dfc67511053c6b622c68c1928d [INFO] running `Command { std: "docker" "start" "-a" "995819923c70293ea0f888f0d351d9a58b2f25dfc67511053c6b622c68c1928d", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Compiling iana-time-zone v0.1.60 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling chrono v0.4.34 [INFO] [stderr] Compiling punas v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `is_newline` and `is_space` [INFO] [stdout] --> src/asm.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | is_newline, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 18 | is_space, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufReader` and `self` [INFO] [stdout] --> src/asm.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | self, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | BufReader, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude` [INFO] [stdout] --> src/asm.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/asm.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | Read, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data_sumsize` [INFO] [stdout] --> src/asm.rs:136:13 [INFO] [stdout] | [INFO] [stdout] 136 | let data_sumsize = |x: &Vec
| -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_data_sumsize` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/asm.rs:144:13 [INFO] [stdout] | [INFO] [stdout] 144 | let mut p_section: usize = mem::size_of::(); [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: unused variable: `c` [INFO] [stdout] --> src/asm.rs:330:13 [INFO] [stdout] | [INFO] [stdout] 330 | let c = get_str_first(input); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/asm.rs:489:21 [INFO] [stdout] | [INFO] [stdout] 489 | _ =>{ae.panic_from_word(value2str, "Not")} [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/asm.rs:489:21 [INFO] [stdout] | [INFO] [stdout] 427 | Value::Figure(v2) =>{ [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 469 | Value::Reg(reg2, size2) =>{ [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 489 | _ =>{ae.panic_from_word(value2str, "Not")} [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size2` [INFO] [stdout] --> src/asm.rs:469:38 [INFO] [stdout] | [INFO] [stdout] 469 | Value::Reg(reg2, size2) =>{ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_size2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/asm.rs:570:21 [INFO] [stdout] | [INFO] [stdout] 570 | _ => {ae.panic_from_word(value2str, "Not");} [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/asm.rs:570:21 [INFO] [stdout] | [INFO] [stdout] 508 | Value::Figure(v2) => { [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 550 | Value::Reg(reg2, size2) => { [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 570 | _ => {ae.panic_from_word(value2str, "Not");} [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size2` [INFO] [stdout] --> src/asm.rs:550:38 [INFO] [stdout] | [INFO] [stdout] 550 | Value::Reg(reg2, size2) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_size2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/asm.rs:649:21 [INFO] [stdout] | [INFO] [stdout] 649 | _ => {panic!()} [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/asm.rs:649:21 [INFO] [stdout] | [INFO] [stdout] 589 | Value::Figure(v2) =>{ [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 627 | Value::Reg(reg2, size) =>{ [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 649 | _ => {panic!()} [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/asm.rs:753:23 [INFO] [stdout] | [INFO] [stdout] 753 | if let Ok((input, c)) = result{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first` [INFO] [stdout] --> src/asm.rs:809:17 [INFO] [stdout] | [INFO] [stdout] 809 | let (input, first) = (tag(";"))(input)?; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_first` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ignore_comment` is never used [INFO] [stdout] --> src/asm.rs:808:4 [INFO] [stdout] | [INFO] [stdout] 808 | fn ignore_comment<'a>(input: & 'a str) -> IResult<&str, &str>{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ignore_space_and_return` is never used [INFO] [stdout] --> src/asm.rs:821:4 [INFO] [stdout] | [INFO] [stdout] 821 | fn ignore_space_and_return<'a>(input: & 'a str) -> IResult<& 'a str, & 'a str>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REX_W` is never used [INFO] [stdout] --> src/asm/reg.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | pub const REX_W:u8 = 3; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REX_X` is never used [INFO] [stdout] --> src/asm/reg.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | pub const REX_X:u8 = 1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `VirtualSize`, `VirtualAddress`, `PointerToLinenumbers`, and `NumberOfLinenumbers` are never read [INFO] [stdout] --> src/asm/headers.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct SECTION_HEADER{ [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 24 | pub Name: [u8;8], [INFO] [stdout] 25 | pub VirtualSize: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 26 | pub VirtualAddress: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub PointerToLinenumbers: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 31 | pub NumberOfRelocations: u16, [INFO] [stdout] 32 | pub NumberOfLinenumbers: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `VirtualAddress`, `SymbolTableIndex`, and `Type` are never read [INFO] [stdout] --> src/asm/headers.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct RELOCATION{ [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 39 | pub VirtualAddress: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 40 | pub SymbolTableIndex: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 41 | pub Type: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/asm.rs:663:19 [INFO] [stdout] | [INFO] [stdout] 663 | fn read_2args(&self, mut input: & 'a str) -> ((Value, & 'a str, Value, & 'a str), & 'a str){ [INFO] [stdout] | ^^^^^ ----- ----- the lifetimes get resolved as `'_` [INFO] [stdout] | | | [INFO] [stdout] | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 663 | fn read_2args(&self, mut input: & 'a str) -> ((Value<'_>, & 'a str, Value<'_>, & 'a str), & 'a str){ [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/asm.rs:683:19 [INFO] [stdout] | [INFO] [stdout] 683 | fn read_value(&self, mut input: & 'a str) -> Result<(&'a str, Value), &'a str>{ [INFO] [stdout] | ^^^^^ this lifetime flows to the output ----- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 683 | fn read_value(&self, mut input: & 'a str) -> Result<(&'a str, Value<'_>), &'a str>{ [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/asm.rs:701:26 [INFO] [stdout] | [INFO] [stdout] 701 | fn read_value_unwrap(&self, input: & 'a str, message: & str) -> (& 'a str, Value){ [INFO] [stdout] | ^^^^^ this lifetime flows to the output ----- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 701 | fn read_value_unwrap(&self, input: & 'a str, message: & str) -> (& 'a str, Value<'_>){ [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/asm.rs:736:28 [INFO] [stdout] | [INFO] [stdout] 736 | fn read_chars<'a>(input: & 'a str, cnt: usize) -> IResult<&str, &str>{ [INFO] [stdout] | ^^ ---- ---- the lifetimes get resolved as `'a` [INFO] [stdout] | | | [INFO] [stdout] | | the lifetimes get resolved as `'a` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 736 | fn read_chars<'a>(input: & 'a str, cnt: usize) -> IResult<&'a str, &'a str>{ [INFO] [stdout] | ++ ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/asm.rs:739:28 [INFO] [stdout] | [INFO] [stdout] 739 | fn get_figure<'a>(input: & 'a str)->IResult<&str, &str>{ [INFO] [stdout] | ^^ ---- ---- the lifetimes get resolved as `'a` [INFO] [stdout] | | | [INFO] [stdout] | | the lifetimes get resolved as `'a` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 739 | fn get_figure<'a>(input: & 'a str)->IResult<&'a str, &'a str>{ [INFO] [stdout] | ++ ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/asm.rs:743:28 [INFO] [stdout] | [INFO] [stdout] 743 | fn get_string<'a>(input: & 'a str) -> IResult<&str, &str>{ [INFO] [stdout] | ^^ ---- ---- the lifetimes get resolved as `'a` [INFO] [stdout] | | | [INFO] [stdout] | | the lifetimes get resolved as `'a` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 743 | fn get_string<'a>(input: & 'a str) -> IResult<&'a str, &'a str>{ [INFO] [stdout] | ++ ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/asm.rs:749:28 [INFO] [stdout] | [INFO] [stdout] 749 | fn get_others<'a>(input: & 'a str) -> IResult<&str, &str>{ [INFO] [stdout] | ^^ ---- ---- the lifetimes get resolved as `'a` [INFO] [stdout] | | | [INFO] [stdout] | | the lifetimes get resolved as `'a` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 749 | fn get_others<'a>(input: & 'a str) -> IResult<&'a str, &'a str>{ [INFO] [stdout] | ++ ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/asm.rs:761:27 [INFO] [stdout] | [INFO] [stdout] 761 | fn get_word<'a >(input: & 'a str)->IResult<&str, & str> { [INFO] [stdout] | ^^ ---- ----- the lifetimes get resolved as `'a` [INFO] [stdout] | | | [INFO] [stdout] | | the lifetimes get resolved as `'a` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 761 | fn get_word<'a >(input: & 'a str)->IResult<&'a str, &'a str> { [INFO] [stdout] | ++ ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/asm.rs:808:32 [INFO] [stdout] | [INFO] [stdout] 808 | fn ignore_comment<'a>(input: & 'a str) -> IResult<&str, &str>{ [INFO] [stdout] | ^^ ---- ---- the lifetimes get resolved as `'a` [INFO] [stdout] | | | [INFO] [stdout] | | the lifetimes get resolved as `'a` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 808 | fn ignore_comment<'a>(input: & 'a str) -> IResult<&'a str, &'a str>{ [INFO] [stdout] | ++ ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/asm/reg.rs:34:22 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn reg<'a>(rm: & 'a str) -> Result, &str>{ [INFO] [stdout] | ^^ -- ---- the lifetimes get resolved as `'a` [INFO] [stdout] | | | [INFO] [stdout] | | the lifetimes get resolved as `'a` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 34 | pub fn reg<'a>(rm: & 'a str) -> Result, &'a str>{ [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.67s [INFO] running `Command { std: "docker" "inspect" "995819923c70293ea0f888f0d351d9a58b2f25dfc67511053c6b622c68c1928d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "995819923c70293ea0f888f0d351d9a58b2f25dfc67511053c6b622c68c1928d", kill_on_drop: false }` [INFO] [stdout] 995819923c70293ea0f888f0d351d9a58b2f25dfc67511053c6b622c68c1928d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b64340ea8ae0ade2fbfa6b23fb407db30687a034a0e557264e576a3a1c456a86 [INFO] running `Command { std: "docker" "start" "-a" "b64340ea8ae0ade2fbfa6b23fb407db30687a034a0e557264e576a3a1c456a86", kill_on_drop: false }` [INFO] [stderr] Compiling punas v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `is_newline` and `is_space` [INFO] [stdout] --> src/asm.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | is_newline, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 18 | is_space, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufReader` and `self` [INFO] [stdout] --> src/asm.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | self, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | BufReader, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude` [INFO] [stdout] --> src/asm.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/asm.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | Read, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data_sumsize` [INFO] [stdout] --> src/asm.rs:136:13 [INFO] [stdout] | [INFO] [stdout] 136 | let data_sumsize = |x: &Vec
| -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_data_sumsize` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/asm.rs:144:13 [INFO] [stdout] | [INFO] [stdout] 144 | let mut p_section: usize = mem::size_of::(); [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: unused variable: `c` [INFO] [stdout] --> src/asm.rs:330:13 [INFO] [stdout] | [INFO] [stdout] 330 | let c = get_str_first(input); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/asm.rs:489:21 [INFO] [stdout] | [INFO] [stdout] 489 | _ =>{ae.panic_from_word(value2str, "Not")} [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/asm.rs:489:21 [INFO] [stdout] | [INFO] [stdout] 427 | Value::Figure(v2) =>{ [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 469 | Value::Reg(reg2, size2) =>{ [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 489 | _ =>{ae.panic_from_word(value2str, "Not")} [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size2` [INFO] [stdout] --> src/asm.rs:469:38 [INFO] [stdout] | [INFO] [stdout] 469 | Value::Reg(reg2, size2) =>{ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_size2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/asm.rs:570:21 [INFO] [stdout] | [INFO] [stdout] 570 | _ => {ae.panic_from_word(value2str, "Not");} [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/asm.rs:570:21 [INFO] [stdout] | [INFO] [stdout] 508 | Value::Figure(v2) => { [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 550 | Value::Reg(reg2, size2) => { [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 570 | _ => {ae.panic_from_word(value2str, "Not");} [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size2` [INFO] [stdout] --> src/asm.rs:550:38 [INFO] [stdout] | [INFO] [stdout] 550 | Value::Reg(reg2, size2) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_size2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/asm.rs:649:21 [INFO] [stdout] | [INFO] [stdout] 649 | _ => {panic!()} [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/asm.rs:649:21 [INFO] [stdout] | [INFO] [stdout] 589 | Value::Figure(v2) =>{ [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 627 | Value::Reg(reg2, size) =>{ [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 649 | _ => {panic!()} [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/asm.rs:753:23 [INFO] [stdout] | [INFO] [stdout] 753 | if let Ok((input, c)) = result{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first` [INFO] [stdout] --> src/asm.rs:809:17 [INFO] [stdout] | [INFO] [stdout] 809 | let (input, first) = (tag(";"))(input)?; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_first` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ignore_comment` is never used [INFO] [stdout] --> src/asm.rs:808:4 [INFO] [stdout] | [INFO] [stdout] 808 | fn ignore_comment<'a>(input: & 'a str) -> IResult<&str, &str>{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ignore_space_and_return` is never used [INFO] [stdout] --> src/asm.rs:821:4 [INFO] [stdout] | [INFO] [stdout] 821 | fn ignore_space_and_return<'a>(input: & 'a str) -> IResult<& 'a str, & 'a str>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REX_W` is never used [INFO] [stdout] --> src/asm/reg.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | pub const REX_W:u8 = 3; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REX_X` is never used [INFO] [stdout] --> src/asm/reg.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | pub const REX_X:u8 = 1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `VirtualSize`, `VirtualAddress`, `PointerToLinenumbers`, and `NumberOfLinenumbers` are never read [INFO] [stdout] --> src/asm/headers.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct SECTION_HEADER{ [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 24 | pub Name: [u8;8], [INFO] [stdout] 25 | pub VirtualSize: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 26 | pub VirtualAddress: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub PointerToLinenumbers: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 31 | pub NumberOfRelocations: u16, [INFO] [stdout] 32 | pub NumberOfLinenumbers: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `VirtualAddress`, `SymbolTableIndex`, and `Type` are never read [INFO] [stdout] --> src/asm/headers.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct RELOCATION{ [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 39 | pub VirtualAddress: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 40 | pub SymbolTableIndex: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 41 | pub Type: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/asm.rs:663:19 [INFO] [stdout] | [INFO] [stdout] 663 | fn read_2args(&self, mut input: & 'a str) -> ((Value, & 'a str, Value, & 'a str), & 'a str){ [INFO] [stdout] | ^^^^^ ----- ----- the lifetimes get resolved as `'_` [INFO] [stdout] | | | [INFO] [stdout] | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 663 | fn read_2args(&self, mut input: & 'a str) -> ((Value<'_>, & 'a str, Value<'_>, & 'a str), & 'a str){ [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/asm.rs:683:19 [INFO] [stdout] | [INFO] [stdout] 683 | fn read_value(&self, mut input: & 'a str) -> Result<(&'a str, Value), &'a str>{ [INFO] [stdout] | ^^^^^ this lifetime flows to the output ----- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 683 | fn read_value(&self, mut input: & 'a str) -> Result<(&'a str, Value<'_>), &'a str>{ [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/asm.rs:701:26 [INFO] [stdout] | [INFO] [stdout] 701 | fn read_value_unwrap(&self, input: & 'a str, message: & str) -> (& 'a str, Value){ [INFO] [stdout] | ^^^^^ this lifetime flows to the output ----- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 701 | fn read_value_unwrap(&self, input: & 'a str, message: & str) -> (& 'a str, Value<'_>){ [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/asm.rs:736:28 [INFO] [stdout] | [INFO] [stdout] 736 | fn read_chars<'a>(input: & 'a str, cnt: usize) -> IResult<&str, &str>{ [INFO] [stdout] | ^^ ---- ---- the lifetimes get resolved as `'a` [INFO] [stdout] | | | [INFO] [stdout] | | the lifetimes get resolved as `'a` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 736 | fn read_chars<'a>(input: & 'a str, cnt: usize) -> IResult<&'a str, &'a str>{ [INFO] [stdout] | ++ ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/asm.rs:739:28 [INFO] [stdout] | [INFO] [stdout] 739 | fn get_figure<'a>(input: & 'a str)->IResult<&str, &str>{ [INFO] [stdout] | ^^ ---- ---- the lifetimes get resolved as `'a` [INFO] [stdout] | | | [INFO] [stdout] | | the lifetimes get resolved as `'a` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 739 | fn get_figure<'a>(input: & 'a str)->IResult<&'a str, &'a str>{ [INFO] [stdout] | ++ ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/asm.rs:743:28 [INFO] [stdout] | [INFO] [stdout] 743 | fn get_string<'a>(input: & 'a str) -> IResult<&str, &str>{ [INFO] [stdout] | ^^ ---- ---- the lifetimes get resolved as `'a` [INFO] [stdout] | | | [INFO] [stdout] | | the lifetimes get resolved as `'a` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 743 | fn get_string<'a>(input: & 'a str) -> IResult<&'a str, &'a str>{ [INFO] [stdout] | ++ ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/asm.rs:749:28 [INFO] [stdout] | [INFO] [stdout] 749 | fn get_others<'a>(input: & 'a str) -> IResult<&str, &str>{ [INFO] [stdout] | ^^ ---- ---- the lifetimes get resolved as `'a` [INFO] [stdout] | | | [INFO] [stdout] | | the lifetimes get resolved as `'a` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 749 | fn get_others<'a>(input: & 'a str) -> IResult<&'a str, &'a str>{ [INFO] [stdout] | ++ ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/asm.rs:761:27 [INFO] [stdout] | [INFO] [stdout] 761 | fn get_word<'a >(input: & 'a str)->IResult<&str, & str> { [INFO] [stdout] | ^^ ---- ----- the lifetimes get resolved as `'a` [INFO] [stdout] | | | [INFO] [stdout] | | the lifetimes get resolved as `'a` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 761 | fn get_word<'a >(input: & 'a str)->IResult<&'a str, &'a str> { [INFO] [stdout] | ++ ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/asm.rs:808:32 [INFO] [stdout] | [INFO] [stdout] 808 | fn ignore_comment<'a>(input: & 'a str) -> IResult<&str, &str>{ [INFO] [stdout] | ^^ ---- ---- the lifetimes get resolved as `'a` [INFO] [stdout] | | | [INFO] [stdout] | | the lifetimes get resolved as `'a` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 808 | fn ignore_comment<'a>(input: & 'a str) -> IResult<&'a str, &'a str>{ [INFO] [stdout] | ++ ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/asm/reg.rs:34:22 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn reg<'a>(rm: & 'a str) -> Result, &str>{ [INFO] [stdout] | ^^ -- ---- the lifetimes get resolved as `'a` [INFO] [stdout] | | | [INFO] [stdout] | | the lifetimes get resolved as `'a` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 34 | pub fn reg<'a>(rm: & 'a str) -> Result, &'a str>{ [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.54s [INFO] running `Command { std: "docker" "inspect" "b64340ea8ae0ade2fbfa6b23fb407db30687a034a0e557264e576a3a1c456a86", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b64340ea8ae0ade2fbfa6b23fb407db30687a034a0e557264e576a3a1c456a86", kill_on_drop: false }` [INFO] [stdout] b64340ea8ae0ade2fbfa6b23fb407db30687a034a0e557264e576a3a1c456a86