[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 try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 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-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/obs145628/strength-reduction on toolchain 23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "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-tc2/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" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fe3de93a284940b85e17203ebc4424091662f64c2f6d5a1b53f30c5760637648 [INFO] running `Command { std: "docker" "start" "-a" "fe3de93a284940b85e17203ebc4424091662f64c2f6d5a1b53f30c5760637648", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fe3de93a284940b85e17203ebc4424091662f64c2f6d5a1b53f30c5760637648", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fe3de93a284940b85e17203ebc4424091662f64c2f6d5a1b53f30c5760637648", kill_on_drop: false }` [INFO] [stdout] fe3de93a284940b85e17203ebc4424091662f64c2f6d5a1b53f30c5760637648 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 96c8a355b5e4b0109cbd267abf8b47affee9d1e4a4f313be2db6dc5e38a1d5f2 [INFO] running `Command { std: "docker" "start" "-a" "96c8a355b5e4b0109cbd267abf8b47affee9d1e4a4f313be2db6dc5e38a1d5f2", 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 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 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: 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: 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] error[E0502]: cannot borrow `self.tree` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/dom_tree.rs:134:13 [INFO] [stdout] | [INFO] [stdout] 131 | for v in self.tree.vertices() { [INFO] [stdout] | -------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 134 | self.tree.set_label_vertex_name(v, bb_obj.val().name()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.tree` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/dom_tree.rs:136:17 [INFO] [stdout] | [INFO] [stdout] 131 | for v in self.tree.vertices() { [INFO] [stdout] | -------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 136 | self.tree.add_edge(self.idom[v], v); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.tree` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/dom_tree.rs:134:13 [INFO] [stdout] | [INFO] [stdout] 131 | for v in self.tree.vertices() { [INFO] [stdout] | -------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 134 | self.tree.set_label_vertex_name(v, bb_obj.val().name()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.tree` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/dom_tree.rs:136:17 [INFO] [stdout] | [INFO] [stdout] 131 | for v in self.tree.vertices() { [INFO] [stdout] | -------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 136 | self.tree.add_edge(self.idom[v], v); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [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: 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: 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] error: aborting due to 2 previous errors; 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `strength-reduction` (bin "strength-reduction") due to 3 previous errors; 11 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `strength-reduction` (bin "strength-reduction" test) due to 3 previous errors; 10 warnings emitted [INFO] running `Command { std: "docker" "inspect" "96c8a355b5e4b0109cbd267abf8b47affee9d1e4a4f313be2db6dc5e38a1d5f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "96c8a355b5e4b0109cbd267abf8b47affee9d1e4a4f313be2db6dc5e38a1d5f2", kill_on_drop: false }` [INFO] [stdout] 96c8a355b5e4b0109cbd267abf8b47affee9d1e4a4f313be2db6dc5e38a1d5f2