[INFO] cloning repository https://github.com/An-n-ya/bril_rs
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/An-n-ya/bril_rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAn-n-ya%2Fbril_rs", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAn-n-ya%2Fbril_rs'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 1ed88008ab2d41bf42436c87fcef0edaeee2fe3c
[INFO] checking An-n-ya/bril_rs against master#3129d37ef7075ee3cbaa3d6cbe1b5794f67192b0 for pr-143164
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAn-n-ya%2Fbril_rs" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/An-n-ya/bril_rs
[INFO] finished tweaking git repo https://github.com/An-n-ya/bril_rs
[INFO] tweaked toml for git repo https://github.com/An-n-ya/bril_rs written to /workspace/builds/worker-4-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/An-n-ya/bril_rs on toolchain 3129d37ef7075ee3cbaa3d6cbe1b5794f67192b0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3129d37ef7075ee3cbaa3d6cbe1b5794f67192b0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/An-n-ya/bril_rs 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" "+3129d37ef7075ee3cbaa3d6cbe1b5794f67192b0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+3129d37ef7075ee3cbaa3d6cbe1b5794f67192b0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] cdc1b35abb45f515ee06c93c8107a6e108cc78411eb068d995fb22e3538a85b9
[INFO] running `Command { std: "docker" "start" "-a" "cdc1b35abb45f515ee06c93c8107a6e108cc78411eb068d995fb22e3538a85b9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "cdc1b35abb45f515ee06c93c8107a6e108cc78411eb068d995fb22e3538a85b9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "cdc1b35abb45f515ee06c93c8107a6e108cc78411eb068d995fb22e3538a85b9", kill_on_drop: false }`
[INFO] [stdout] cdc1b35abb45f515ee06c93c8107a6e108cc78411eb068d995fb22e3538a85b9
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+3129d37ef7075ee3cbaa3d6cbe1b5794f67192b0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] afa7bab49258347d8596fd605bfa1fce92b6ca280be38816322ecd6ecc3b03b2
[INFO] running `Command { std: "docker" "start" "-a" "afa7bab49258347d8596fd605bfa1fce92b6ca280be38816322ecd6ecc3b03b2", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.93
[INFO] [stderr]    Compiling unicode-ident v1.0.14
[INFO] [stderr]    Compiling serde v1.0.217
[INFO] [stderr]    Compiling serde_json v1.0.135
[INFO] [stderr]     Checking itoa v1.0.14
[INFO] [stderr]    Compiling quote v1.0.38
[INFO] [stderr]    Compiling syn v2.0.96
[INFO] [stderr]    Compiling serde_derive v1.0.217
[INFO] [stderr]     Checking cfg v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: value assigned to `succ` is never read
[INFO] [stdout]   --> src/cfg.rs:71:25
[INFO] [stdout]    |
[INFO] [stdout] 71 |                 let mut succ = None;
[INFO] [stdout]    |                         ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `op`
[INFO] [stdout]    --> src/lvn.rs:215:37
[INFO] [stdout]     |
[INFO] [stdout] 215 |         if let Instr::Instruction { op, args, .. } = instr {
[INFO] [stdout]     |                                     ^^-
[INFO] [stdout]     |                                     |
[INFO] [stdout]     |                                     help: try removing the field
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new_id_instr` is never used
[INFO] [stdout]   --> src/parser.rs:44:12
[INFO] [stdout]    |
[INFO] [stdout] 43 | impl Instr {
[INFO] [stdout]    | ---------- associated function in this implementation
[INFO] [stdout] 44 |     pub fn new_id_instr(dest: &str, src: &str, typ: Type) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `func` and `lvn` are never read
[INFO] [stdout]   --> src/cfg.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub struct Block {
[INFO] [stdout]    |            ----- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 16 |     func: String,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 17 |     pub(crate) lvn: Option<LVN>
[INFO] [stdout]    |                ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `from_text`, `to_text`, `to_bril`, and `get_func_by_name` are never used
[INFO] [stdout]    --> src/cfg.rs:54:12
[INFO] [stdout]     |
[INFO] [stdout] 45  | impl BrilCFG {
[INFO] [stdout]     | ------------ associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 54  |     pub fn from_text(text: &str) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 62  |     pub fn to_text(&self) -> String {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 135 |     pub fn to_bril(&self) -> Bril {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 166 |     fn get_func_by_name(&self, name: &str) -> Option<Function> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `trivial_dce` is never used
[INFO] [stdout]  --> src/dce.rs:6:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | impl BrilCFG {
[INFO] [stdout]   | ------------ method in this implementation
[INFO] [stdout] 6 |     pub fn trivial_dce(&mut self) {
[INFO] [stdout]   |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `iterate_every_instr`, `trivial_dce`, and `trivial_dce2` are never used
[INFO] [stdout]   --> src/dce.rs:16:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | impl Block {
[INFO] [stdout]    | ---------- methods in this implementation
[INFO] [stdout] 16 |     pub fn iterate_every_instr<F>(&self, mut f: F)
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 32 |     pub fn trivial_dce(&mut self) {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 71 |     pub fn trivial_dce2(&mut self) {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `bril2json` is never used
[INFO] [stdout]  --> src/utils.rs:3:8
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub fn bril2json(input: &str) -> String {
[INFO] [stdout]   |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `bril2txt` is never used
[INFO] [stdout]  --> src/utils.rs:6:8
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub fn bril2txt(input: &str) -> String {
[INFO] [stdout]   |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `bril_utils` is never used
[INFO] [stdout]  --> src/utils.rs:9:4
[INFO] [stdout]   |
[INFO] [stdout] 9 | fn bril_utils(input: &str, command: &str) -> String {
[INFO] [stdout]   |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `table`, `var2num`, `num2tuple`, and `cur_num` are never read
[INFO] [stdout]   --> src/lvn.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct LVN {
[INFO] [stdout]    |            --- fields in this struct
[INFO] [stdout] 12 |     table: HashMap<LVNTuple, (VarNum, VarName)>,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 13 |     var2num: HashMap<VarName, VarNum>,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 14 |     num2tuple: HashMap<VarNum, LVNTuple>,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 15 |     cur_num: VarNum,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple variants are never constructed
[INFO] [stdout]   --> src/lvn.rs:27:5
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub enum LVNOpcode {
[INFO] [stdout]    |          --------- variants in this enum
[INFO] [stdout] 27 |     add,
[INFO] [stdout]    |     ^^^
[INFO] [stdout] 28 |     mul,
[INFO] [stdout]    |     ^^^
[INFO] [stdout] 29 |     sub,
[INFO] [stdout]    |     ^^^
[INFO] [stdout] 30 |     div,
[INFO] [stdout]    |     ^^^
[INFO] [stdout] 31 |     eq,
[INFO] [stdout]    |     ^^
[INFO] [stdout] 32 |     lt,
[INFO] [stdout]    |     ^^
[INFO] [stdout] 33 |     gt,
[INFO] [stdout]    |     ^^
[INFO] [stdout] 34 |     le,
[INFO] [stdout]    |     ^^
[INFO] [stdout] 35 |     ge,
[INFO] [stdout]    |     ^^
[INFO] [stdout] 36 |     not,
[INFO] [stdout]    |     ^^^
[INFO] [stdout] 37 |     and,
[INFO] [stdout]    |     ^^^
[INFO] [stdout] 38 |     or,
[INFO] [stdout]    |     ^^
[INFO] [stdout] 39 |     jmp,
[INFO] [stdout]    |     ^^^
[INFO] [stdout] 40 |     br,
[INFO] [stdout]    |     ^^
[INFO] [stdout] 41 |     call,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 42 |     ret,
[INFO] [stdout]    |     ^^^
[INFO] [stdout] 43 |     id,
[INFO] [stdout]    |     ^^
[INFO] [stdout] 44 |     print,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 45 |     nop,
[INFO] [stdout]    |     ^^^
[INFO] [stdout] 46 |     cst(Literal)
[INFO] [stdout]    |     ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `LVNOpcode` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `from_instr` and `from_opcode` are never used
[INFO] [stdout]   --> src/lvn.rs:50:12
[INFO] [stdout]    |
[INFO] [stdout] 49 | impl LVNOpcode {
[INFO] [stdout]    | -------------- associated functions in this implementation
[INFO] [stdout] 50 |     pub fn from_instr(instr: &Instr) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 69 |     fn from_opcode(op: Opcode, val: &Vec<Literal>) -> Self {
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `lvn` is never used
[INFO] [stdout]   --> src/lvn.rs:99:12
[INFO] [stdout]    |
[INFO] [stdout] 98 | impl BrilCFG {
[INFO] [stdout]    | ------------ method in this implementation
[INFO] [stdout] 99 |     pub fn lvn(&mut self) {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `lvn` is never used
[INFO] [stdout]    --> src/lvn.rs:107:12
[INFO] [stdout]     |
[INFO] [stdout] 106 | impl Block {
[INFO] [stdout]     | ---------- method in this implementation
[INFO] [stdout] 107 |     pub fn lvn(&mut self) {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/lvn.rs:164:12
[INFO] [stdout]     |
[INFO] [stdout] 163 | impl LVN {
[INFO] [stdout]     | -------- associated items in this implementation
[INFO] [stdout] 164 |     pub fn new() -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 172 |     fn debug(&self) {
[INFO] [stdout]     |        ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 177 |     pub fn next_var_num(&mut self) -> VarNum {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 182 |     pub fn rewrite_instr_args(&self, instr: &Instr) -> Instr {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 199 |     fn replace_var(&self, var: &str) -> String {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 214 |     pub fn tuple_from_instr(&self, instr: &Instr) -> LVNTuple {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 235 |     fn resolve_arg(&self, arg: &str) -> VarNum {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `succ` is never read
[INFO] [stdout]   --> src/cfg.rs:71:25
[INFO] [stdout]    |
[INFO] [stdout] 71 |                 let mut succ = None;
[INFO] [stdout]    |                         ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `op`
[INFO] [stdout]    --> src/lvn.rs:215:37
[INFO] [stdout]     |
[INFO] [stdout] 215 |         if let Instr::Instruction { op, args, .. } = instr {
[INFO] [stdout]     |                                     ^^-
[INFO] [stdout]     |                                     |
[INFO] [stdout]     |                                     help: try removing the field
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `debug` is never used
[INFO] [stdout]    --> src/lvn.rs:172:8
[INFO] [stdout]     |
[INFO] [stdout] 163 | impl LVN {
[INFO] [stdout]     | -------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 172 |     fn debug(&self) {
[INFO] [stdout]     |        ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.55s
[INFO] running `Command { std: "docker" "inspect" "afa7bab49258347d8596fd605bfa1fce92b6ca280be38816322ecd6ecc3b03b2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "afa7bab49258347d8596fd605bfa1fce92b6ca280be38816322ecd6ecc3b03b2", kill_on_drop: false }`
[INFO] [stdout] afa7bab49258347d8596fd605bfa1fce92b6ca280be38816322ecd6ecc3b03b2
