[INFO] cloning repository https://github.com/eeli1/hdl-parser [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/eeli1/hdl-parser" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feeli1%2Fhdl-parser", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feeli1%2Fhdl-parser'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 84b82dca4a809b0b9f7e338c154ca46aea65ae20 [INFO] checking eeli1/hdl-parser against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feeli1%2Fhdl-parser" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/eeli1/hdl-parser [INFO] finished tweaking git repo https://github.com/eeli1/hdl-parser [INFO] tweaked toml for git repo https://github.com/eeli1/hdl-parser written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/eeli1/hdl-parser on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/eeli1/hdl-parser 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b081fd515fdebab0d5a1a7794f194e1e5333fbc6d0d25bcca1c6304854262651 [INFO] running `Command { std: "docker" "start" "-a" "b081fd515fdebab0d5a1a7794f194e1e5333fbc6d0d25bcca1c6304854262651", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b081fd515fdebab0d5a1a7794f194e1e5333fbc6d0d25bcca1c6304854262651", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b081fd515fdebab0d5a1a7794f194e1e5333fbc6d0d25bcca1c6304854262651", kill_on_drop: false }` [INFO] [stdout] b081fd515fdebab0d5a1a7794f194e1e5333fbc6d0d25bcca1c6304854262651 [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 -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 56bb568198699d4fd54cee0deac1637b4b62b3a430b93d31e3491893c328503b [INFO] running `Command { std: "docker" "start" "-a" "56bb568198699d4fd54cee0deac1637b4b62b3a430b93d31e3491893c328503b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling syn v1.0.82 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling utf8-ranges v1.0.4 [INFO] [stderr] Compiling beef v0.5.1 [INFO] [stderr] Checking bool-algebra v0.1.0 (https://github.com/eeli1/bool-algebra#22b37746) [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling logos-derive v0.12.0 [INFO] [stderr] Checking logos v0.12.0 [INFO] [stderr] Checking hdl-parser v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/comphdl.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn parse(code: &str) -> Result>, Error> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/comphdl.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn parse(code: &str) -> Result>, Error> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t_iter` [INFO] [stdout] --> src/open_gal.rs:110:15 [INFO] [stdout] | [INFO] [stdout] 110 | fn parse_func(t_iter: &mut Peekable>) -> Result, Error> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_t_iter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/open_gal.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | let mut is_count = false; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/open_gal.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | let mut is_fill = false; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/open_gal.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | let mut fill = false; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in_names` [INFO] [stdout] --> src/open_gal.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 117 | let in_names = get_names(t_iter)?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_in_names` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out_names` [INFO] [stdout] --> src/open_gal.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | let out_names = get_names(t_iter)?; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_names` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fill` [INFO] [stdout] --> src/open_gal.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | let mut fill = false; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fill` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `names` [INFO] [stdout] --> src/open_gal.rs:142:9 [INFO] [stdout] | [INFO] [stdout] 142 | let names = get_names(t_iter)?; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_names` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t_iter` [INFO] [stdout] --> src/open_gal.rs:183:13 [INFO] [stdout] | [INFO] [stdout] 183 | fn get_nums(t_iter: &mut Peekable>) -> Result, Error> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_t_iter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/shdl.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chips = Vec::new(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/shdl.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let mut lut = Vec::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/shdl.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn parse(code: &str) -> Result<(Vec>, Vec), Error> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_nums` is never used [INFO] [stdout] --> src/open_gal.rs:183:4 [INFO] [stdout] | [INFO] [stdout] 183 | fn get_nums(t_iter: &mut Peekable>) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/n2t_hdl.rs:210:10 [INFO] [stdout] | [INFO] [stdout] 210 | #[derive(Logos, Debug, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] = note: this error originates in the derive macro `Logos` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/n2t_hdl.rs:251:32 [INFO] [stdout] | [INFO] [stdout] 251 | #[regex(r"[a-zA-Z]", |lex| lex.slice().parse())] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/n2t_hdl.rs:250:48 [INFO] [stdout] | [INFO] [stdout] 250 | #[regex(r"[a-zA-Z_$][a-zA-Z_$0-9]+", |lex| lex.slice().parse())] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/open_gal.rs:261:10 [INFO] [stdout] | [INFO] [stdout] 261 | #[derive(Logos, Debug, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Logos` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/open_gal.rs:268:32 [INFO] [stdout] | [INFO] [stdout] 268 | #[regex(r"[a-zA-Z]", |lex| lex.slice().parse())] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/open_gal.rs:267:48 [INFO] [stdout] | [INFO] [stdout] 267 | #[regex(r"[a-zA-Z_$][a-zA-Z_$0-9]+", |lex| lex.slice().parse())] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `hdl-parser` (lib test) due to 6 previous errors; 14 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `t_iter` [INFO] [stdout] --> src/open_gal.rs:110:15 [INFO] [stdout] | [INFO] [stdout] 110 | fn parse_func(t_iter: &mut Peekable>) -> Result, Error> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_t_iter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/open_gal.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | let mut is_count = false; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/open_gal.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | let mut is_fill = false; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/open_gal.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | let mut fill = false; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in_names` [INFO] [stdout] --> src/open_gal.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 117 | let in_names = get_names(t_iter)?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_in_names` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out_names` [INFO] [stdout] --> src/open_gal.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | let out_names = get_names(t_iter)?; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_names` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fill` [INFO] [stdout] --> src/open_gal.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | let mut fill = false; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fill` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `names` [INFO] [stdout] --> src/open_gal.rs:142:9 [INFO] [stdout] | [INFO] [stdout] 142 | let names = get_names(t_iter)?; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_names` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t_iter` [INFO] [stdout] --> src/open_gal.rs:183:13 [INFO] [stdout] | [INFO] [stdout] 183 | fn get_nums(t_iter: &mut Peekable>) -> Result, Error> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_t_iter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/shdl.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chips = Vec::new(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/shdl.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let mut lut = Vec::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/shdl.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn parse(code: &str) -> Result<(Vec>, Vec), Error> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_nums` is never used [INFO] [stdout] --> src/open_gal.rs:183:4 [INFO] [stdout] | [INFO] [stdout] 183 | fn get_nums(t_iter: &mut Peekable>) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/n2t_hdl.rs:210:10 [INFO] [stdout] | [INFO] [stdout] 210 | #[derive(Logos, Debug, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] = note: this error originates in the derive macro `Logos` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/n2t_hdl.rs:251:32 [INFO] [stdout] | [INFO] [stdout] 251 | #[regex(r"[a-zA-Z]", |lex| lex.slice().parse())] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/n2t_hdl.rs:250:48 [INFO] [stdout] | [INFO] [stdout] 250 | #[regex(r"[a-zA-Z_$][a-zA-Z_$0-9]+", |lex| lex.slice().parse())] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/open_gal.rs:261:10 [INFO] [stdout] | [INFO] [stdout] 261 | #[derive(Logos, Debug, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Logos` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/open_gal.rs:268:32 [INFO] [stdout] | [INFO] [stdout] 268 | #[regex(r"[a-zA-Z]", |lex| lex.slice().parse())] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/open_gal.rs:267:48 [INFO] [stdout] | [INFO] [stdout] 267 | #[regex(r"[a-zA-Z_$][a-zA-Z_$0-9]+", |lex| lex.slice().parse())] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `hdl-parser` (lib) due to 6 previous errors; 14 warnings emitted [INFO] running `Command { std: "docker" "inspect" "56bb568198699d4fd54cee0deac1637b4b62b3a430b93d31e3491893c328503b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "56bb568198699d4fd54cee0deac1637b4b62b3a430b93d31e3491893c328503b", kill_on_drop: false }` [INFO] [stdout] 56bb568198699d4fd54cee0deac1637b4b62b3a430b93d31e3491893c328503b