[INFO] cloning repository https://github.com/obs145628/strength-reduction [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/obs145628/strength-reduction" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fobs145628%2Fstrength-reduction", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fobs145628%2Fstrength-reduction'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 009d943f1f3417ebc12c8fadb2b272a1a2fc8a3e [INFO] checking obs145628/strength-reduction against master#19dd9535408db0f1ff3d16613619076aef524d19 for pr-115950 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fobs145628%2Fstrength-reduction" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/obs145628/strength-reduction on toolchain 19dd9535408db0f1ff3d16613619076aef524d19 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+19dd9535408db0f1ff3d16613619076aef524d19" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/obs145628/strength-reduction [INFO] finished tweaking git repo https://github.com/obs145628/strength-reduction [INFO] tweaked toml for git repo https://github.com/obs145628/strength-reduction written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/obs145628/strength-reduction 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" "+19dd9535408db0f1ff3d16613619076aef524d19" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+19dd9535408db0f1ff3d16613619076aef524d19" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bb1735e455ff46567077f6b80c67d6f8de618cee05a14c08684f8b8162d2d9b6 [INFO] running `Command { std: "docker" "start" "-a" "bb1735e455ff46567077f6b80c67d6f8de618cee05a14c08684f8b8162d2d9b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bb1735e455ff46567077f6b80c67d6f8de618cee05a14c08684f8b8162d2d9b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb1735e455ff46567077f6b80c67d6f8de618cee05a14c08684f8b8162d2d9b6", kill_on_drop: false }` [INFO] [stdout] bb1735e455ff46567077f6b80c67d6f8de618cee05a14c08684f8b8162d2d9b6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+19dd9535408db0f1ff3d16613619076aef524d19" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4f840ccbadf9711a9059b2a688784f8a1a3c3d48af0b51957ab7b40c08e5cec0 [INFO] running `Command { std: "docker" "start" "-a" "4f840ccbadf9711a9059b2a688784f8a1a3c3d48af0b51957ab7b40c08e5cec0", kill_on_drop: false }` [INFO] [stderr] Checking strength-reduction v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `BasicBlockRef`, `InstructionRef`, `ValueRef` [INFO] [stdout] --> src/argument.rs:2:36 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::valueref::{ArgumentRef, BasicBlockRef, FunctionRef, InstructionRef, ValueRef}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ValueRef` [INFO] [stdout] --> src/basicblock.rs:2:67 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::valueref::{BasicBlockRef, FunctionRef, InstructionRef, ValueRef}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BasicBlockRef`, `FunctionRef`, `InstructionRef`, `ValueRef` [INFO] [stdout] --> src/constant.rs:2:23 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::valueref::{BasicBlockRef, ConstantRef, FunctionRef, InstructionRef, ValueRef}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/digraph.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | (0..self.v) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 55 - (0..self.v) [INFO] [stdout] 55 + 0..self.v [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/digraph_order.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | if (self.visit_unreachable) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 32 - if (self.visit_unreachable) { [INFO] [stdout] 32 + if self.visit_unreachable { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `InstructionRef`, `ValueRef` [INFO] [stdout] --> src/function.rs:2:64 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::valueref::{ArgumentRef, BasicBlockRef, FunctionRef, InstructionRef, ValueRef}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ValueRef` [INFO] [stdout] --> src/instruction.rs:2:54 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::valueref::{BasicBlockRef, InstructionRef, ValueRef, ValueRefEnum}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/isa.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | if (self.name == "call") { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 19 - if (self.name == "call") { [INFO] [stdout] 19 + if self.name == "call" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::checker` [INFO] [stdout] --> src/loader.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::checker; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BasicBlockRef`, `InstructionRef`, `ValueRef` [INFO] [stdout] --> src/argument.rs:2:36 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::valueref::{ArgumentRef, BasicBlockRef, FunctionRef, InstructionRef, ValueRef}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ValueRef` [INFO] [stdout] --> src/basicblock.rs:2:67 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::valueref::{BasicBlockRef, FunctionRef, InstructionRef, ValueRef}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BasicBlockRef`, `FunctionRef`, `InstructionRef`, `ValueRef` [INFO] [stdout] --> src/constant.rs:2:23 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::valueref::{BasicBlockRef, ConstantRef, FunctionRef, InstructionRef, ValueRef}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/digraph.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | (0..self.v) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 55 - (0..self.v) [INFO] [stdout] 55 + 0..self.v [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/digraph_order.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | if (self.visit_unreachable) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 32 - if (self.visit_unreachable) { [INFO] [stdout] 32 + if self.visit_unreachable { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `InstructionRef`, `ValueRef` [INFO] [stdout] --> src/function.rs:2:64 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::valueref::{ArgumentRef, BasicBlockRef, FunctionRef, InstructionRef, ValueRef}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ValueRef` [INFO] [stdout] --> src/instruction.rs:2:54 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::valueref::{BasicBlockRef, InstructionRef, ValueRef, ValueRefEnum}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/isa.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | if (self.name == "call") { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 19 - if (self.name == "call") { [INFO] [stdout] 19 + if self.name == "call" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fun` [INFO] [stdout] --> src/loader.rs:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | let fun = self.act_fun.unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_fun` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/loader.rs:286:9 [INFO] [stdout] | [INFO] [stdout] 286 | _ => unreachable!(), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `arg_pos` and `fun` are never read [INFO] [stdout] --> src/argument.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Argument { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 5 | val: Value, [INFO] [stdout] 6 | arg_pos: usize, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | fun: FunctionRef, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `arg_pos` and `fun` are never used [INFO] [stdout] --> src/argument.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Argument { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn arg_pos(&self) -> usize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn fun(&self) -> FunctionRef { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `ins_mut`, `insert_begin`, `insert_before`, `insert_after`, `erase`, and `ins_idx` are never used [INFO] [stdout] --> src/basicblock.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl BasicBlock { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn ins_mut(&mut self) -> &mut [InstructionRef] { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn insert_begin(&mut self, ins: InstructionRef) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn insert_before(&mut self, new_ins: InstructionRef, pos: InstructionRef) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn insert_after(&mut self, new_ins: InstructionRef, pos: InstructionRef) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn erase(&mut self, ins: InstructionRef) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | fn ins_idx(&self, ins: InstructionRef) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/context.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Context { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 160 | pub fn get_data_constant_mut(&mut self, r: ConstantRef) -> Option<&mut Constant> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | pub fn erase_ins(&mut self, ins: InstructionRef) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | pub fn ins_detach(&mut self, ins: InstructionRef) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 243 | pub fn ins_insert_before(&mut self, ins: InstructionRef, pos: InstructionRef) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 254 | pub fn ins_insert_after(&mut self, ins: InstructionRef, pos: InstructionRef) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 274 | pub fn erase_bb(&mut self, bb: BasicBlockRef) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 279 | pub fn bb_detach(&mut self, bb: BasicBlockRef) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 301 | pub fn bb_insert_before(&mut self, bb: BasicBlockRef, pos: BasicBlockRef) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 312 | pub fn bb_insert_after(&mut self, bb: BasicBlockRef, pos: BasicBlockRef) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 332 | fn erase_arg(&mut self, arg: ArgumentRef) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 351 | pub fn erase_fun(&mut self, fun: FunctionRef) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 356 | pub fn fun_get_arg_mut(&mut self, fun: FunctionRef, idx: usize) -> &mut Argument { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 377 | pub fn erase_const(&mut self, c: ConstantRef) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `e` and `del_edge` are never used [INFO] [stdout] --> src/digraph.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Digraph { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn e(&self) -> usize { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn del_edge(&mut self, u: usize, v: usize) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `fun` is never read [INFO] [stdout] --> src/dom_tree.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct DomTree { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 8 | fun: FunctionRef, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `idom` and `dom` are never used [INFO] [stdout] --> src/dom_tree.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl DomTree { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn idom(&self, bb: BasicBlockRef) -> BasicBlockRef { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn dom(&self, bb: BasicBlockRef) -> Vec { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `bbs_mut`, `insert_begin`, `insert_before`, `insert_after`, `erase`, and `bb_idx` are never used [INFO] [stdout] --> src/function.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Function { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn bbs_mut(&mut self) -> &mut [BasicBlockRef] { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn insert_begin(&mut self, bb: BasicBlockRef) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn insert_before(&mut self, new_bb: BasicBlockRef, pos: BasicBlockRef) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn insert_after(&mut self, new_bb: BasicBlockRef, pos: BasicBlockRef) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn erase(&mut self, bb: BasicBlockRef) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | fn bb_idx(&self, bb: BasicBlockRef) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `name` is never used [INFO] [stdout] --> src/isa.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl InsInfos { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 10 | pub fn name(&self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `users`, `users_mut`, and `set_op` are never used [INFO] [stdout] --> src/value.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Value { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn users(&self) -> &[ValueRef] { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn users_mut(&mut self) -> &mut [ValueRef] { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn set_op(&mut self, ctx: &mut Context, idx: usize, val: ValueRef) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `own_mut` is never used [INFO] [stdout] --> src/valueref.rs:230:12 [INFO] [stdout] | [INFO] [stdout] 225 | impl ConstantRef { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 230 | pub fn own_mut<'a>(&self, ctx: &'a mut Context) -> Option<&'a mut Constant> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fun` [INFO] [stdout] --> src/loader.rs:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | let fun = self.act_fun.unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_fun` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/loader.rs:286:9 [INFO] [stdout] | [INFO] [stdout] 286 | _ => unreachable!(), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `arg_pos` and `fun` are never read [INFO] [stdout] --> src/argument.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Argument { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 5 | val: Value, [INFO] [stdout] 6 | arg_pos: usize, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | fun: FunctionRef, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `arg_pos` and `fun` are never used [INFO] [stdout] --> src/argument.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Argument { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn arg_pos(&self) -> usize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn fun(&self) -> FunctionRef { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `ins_mut`, `insert_begin`, `insert_before`, `insert_after`, `erase`, and `ins_idx` are never used [INFO] [stdout] --> src/basicblock.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl BasicBlock { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn ins_mut(&mut self) -> &mut [InstructionRef] { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn insert_begin(&mut self, ins: InstructionRef) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn insert_before(&mut self, new_ins: InstructionRef, pos: InstructionRef) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn insert_after(&mut self, new_ins: InstructionRef, pos: InstructionRef) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn erase(&mut self, ins: InstructionRef) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | fn ins_idx(&self, ins: InstructionRef) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/context.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Context { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 160 | pub fn get_data_constant_mut(&mut self, r: ConstantRef) -> Option<&mut Constant> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | pub fn erase_ins(&mut self, ins: InstructionRef) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | pub fn ins_detach(&mut self, ins: InstructionRef) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 243 | pub fn ins_insert_before(&mut self, ins: InstructionRef, pos: InstructionRef) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 254 | pub fn ins_insert_after(&mut self, ins: InstructionRef, pos: InstructionRef) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 274 | pub fn erase_bb(&mut self, bb: BasicBlockRef) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 279 | pub fn bb_detach(&mut self, bb: BasicBlockRef) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 301 | pub fn bb_insert_before(&mut self, bb: BasicBlockRef, pos: BasicBlockRef) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 312 | pub fn bb_insert_after(&mut self, bb: BasicBlockRef, pos: BasicBlockRef) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 332 | fn erase_arg(&mut self, arg: ArgumentRef) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 351 | pub fn erase_fun(&mut self, fun: FunctionRef) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 377 | pub fn erase_const(&mut self, c: ConstantRef) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `e` and `del_edge` are never used [INFO] [stdout] --> src/digraph.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Digraph { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn e(&self) -> usize { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn del_edge(&mut self, u: usize, v: usize) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `fun` is never read [INFO] [stdout] --> src/dom_tree.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct DomTree { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 8 | fun: FunctionRef, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `idom` and `dom` are never used [INFO] [stdout] --> src/dom_tree.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl DomTree { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn idom(&self, bb: BasicBlockRef) -> BasicBlockRef { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn dom(&self, bb: BasicBlockRef) -> Vec { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `bbs_mut`, `insert_begin`, `insert_before`, `insert_after`, `erase`, and `bb_idx` are never used [INFO] [stdout] --> src/function.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Function { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn bbs_mut(&mut self) -> &mut [BasicBlockRef] { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn insert_begin(&mut self, bb: BasicBlockRef) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn insert_before(&mut self, new_bb: BasicBlockRef, pos: BasicBlockRef) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn insert_after(&mut self, new_bb: BasicBlockRef, pos: BasicBlockRef) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn erase(&mut self, bb: BasicBlockRef) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | fn bb_idx(&self, bb: BasicBlockRef) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `name` is never used [INFO] [stdout] --> src/isa.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl InsInfos { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 10 | pub fn name(&self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `users`, `users_mut`, and `set_op` are never used [INFO] [stdout] --> src/value.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Value { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn users(&self) -> &[ValueRef] { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn users_mut(&mut self) -> &mut [ValueRef] { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn set_op(&mut self, ctx: &mut Context, idx: usize, val: ValueRef) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `own_mut` is never used [INFO] [stdout] --> src/valueref.rs:230:12 [INFO] [stdout] | [INFO] [stdout] 225 | impl ConstantRef { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 230 | pub fn own_mut<'a>(&self, ctx: &'a mut Context) -> Option<&'a mut Constant> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.28s [INFO] running `Command { std: "docker" "inspect" "4f840ccbadf9711a9059b2a688784f8a1a3c3d48af0b51957ab7b40c08e5cec0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4f840ccbadf9711a9059b2a688784f8a1a3c3d48af0b51957ab7b40c08e5cec0", kill_on_drop: false }` [INFO] [stdout] 4f840ccbadf9711a9059b2a688784f8a1a3c3d48af0b51957ab7b40c08e5cec0