[INFO] cloning repository https://github.com/wibble132/riscy
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/wibble132/riscy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwibble132%2Friscy", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwibble132%2Friscy'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] b8c8e0b51c3031bfb4815b697a5fad3329d08135
[INFO] checking wibble132/riscy against 5c543b0b8c73c7b72bc8284ced4fb22ead15734d for pr-160186
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwibble132%2Friscy" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'...
[INFO] [stderr] done.
[INFO] removed /workspace/builds/worker-3-tc1/source/rust-toolchain.toml
[INFO] started tweaking git repo https://github.com/wibble132/riscy
[INFO] finished tweaking git repo https://github.com/wibble132/riscy
[INFO] tweaked toml for git repo https://github.com/wibble132/riscy written to /workspace/builds/worker-3-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/wibble132/riscy on toolchain 5c543b0b8c73c7b72bc8284ced4fb22ead15734d
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5c543b0b8c73c7b72bc8284ced4fb22ead15734d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/wibble132/riscy 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" "+5c543b0b8c73c7b72bc8284ced4fb22ead15734d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] e1d2f36ff054b528be8d2fcb44c34557c35fdae2112c6659b8025d46cb606d86
[INFO] running `Command { std: "docker" "start" "e1d2f36ff054b528be8d2fcb44c34557c35fdae2112c6659b8025d46cb606d86", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "e1d2f36ff054b528be8d2fcb44c34557c35fdae2112c6659b8025d46cb606d86", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "e1d2f36ff054b528be8d2fcb44c34557c35fdae2112c6659b8025d46cb606d86" "/opt/rustwide/cargo-home/bin/cargo" "+5c543b0b8c73c7b72bc8284ced4fb22ead15734d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "e1d2f36ff054b528be8d2fcb44c34557c35fdae2112c6659b8025d46cb606d86", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "e1d2f36ff054b528be8d2fcb44c34557c35fdae2112c6659b8025d46cb606d86" "/opt/rustwide/cargo-home/bin/cargo" "+5c543b0b8c73c7b72bc8284ced4fb22ead15734d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]     Checking riscy v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]    --> src/instructions.rs:100:13
[INFO] [stdout]     |
[INFO] [stdout] 100 |     let z = (x >> 2);
[INFO] [stdout]     |             ^      ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 100 -     let z = (x >> 2);
[INFO] [stdout] 100 +     let z = x >> 2;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]   --> src/main.rs:64:17
[INFO] [stdout]    |
[INFO] [stdout] 64 |         li x10, (1<<31);
[INFO] [stdout]    |                 ^     ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 64 -         li x10, (1<<31);
[INFO] [stdout] 64 +         li x10, 1<<31;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]    --> src/instructions.rs:100:13
[INFO] [stdout]     |
[INFO] [stdout] 100 |     let z = (x >> 2);
[INFO] [stdout]     |             ^      ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 100 -     let z = (x >> 2);
[INFO] [stdout] 100 +     let z = x >> 2;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]   --> src/main.rs:64:17
[INFO] [stdout]    |
[INFO] [stdout] 64 |         li x10, (1<<31);
[INFO] [stdout]    |                 ^     ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 64 -         li x10, (1<<31);
[INFO] [stdout] 64 +         li x10, 1<<31;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `imm`
[INFO] [stdout]    --> src/instructions.rs:161:20
[INFO] [stdout]     |
[INFO] [stdout] 161 | fn jalr<Rd>(_: Rd, imm: i32, label: &'static str) -> impl Instruction
[INFO] [stdout]     |                    ^^^ help: if this is intentional, prefix it with an underscore: `_imm`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:92:9
[INFO] [stdout]    |
[INFO] [stdout] 92 |     let mut stdin = io::stdin().lock().lines();
[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: unused variable: `stdin`
[INFO] [stdout]   --> src/main.rs:92:9
[INFO] [stdout]    |
[INFO] [stdout] 92 |     let mut stdin = io::stdin().lock().lines();
[INFO] [stdout]    |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stdin`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `hi` is never used
[INFO] [stdout]   --> src/main.rs:29:4
[INFO] [stdout]    |
[INFO] [stdout] 29 | fn hi(val: i32) -> i32 {
[INFO] [stdout]    |    ^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `lo` is never used
[INFO] [stdout]   --> src/main.rs:32:4
[INFO] [stdout]    |
[INFO] [stdout] 32 | fn lo(val: i32) -> i32 {
[INFO] [stdout]    |    ^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `print` is never used
[INFO] [stdout]    --> src/main.rs:127:12
[INFO] [stdout]     |
[INFO] [stdout] 117 | impl CoreState {
[INFO] [stdout]     | -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 127 |     pub fn print(&self) {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `lui` is never used
[INFO] [stdout]    --> src/instructions.rs:107:8
[INFO] [stdout]     |
[INFO] [stdout] 107 | pub fn lui<Rd>(rd: Rd, imm: i32) -> impl Instruction
[INFO] [stdout]     |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `jal` is never used
[INFO] [stdout]    --> src/instructions.rs:151:4
[INFO] [stdout]     |
[INFO] [stdout] 151 | fn jal<Rd>(_: Rd, label: &'static str) -> impl Instruction
[INFO] [stdout]     |    ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `jalr` is never used
[INFO] [stdout]    --> src/instructions.rs:161:4
[INFO] [stdout]     |
[INFO] [stdout] 161 | fn jalr<Rd>(_: Rd, imm: i32, label: &'static str) -> impl Instruction
[INFO] [stdout]     |    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `j` is never used
[INFO] [stdout]    --> src/instructions.rs:172:4
[INFO] [stdout]     |
[INFO] [stdout] 172 | fn j(label: &'static str) -> impl Instruction {
[INFO] [stdout]     |    ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Instruction` is never constructed
[INFO] [stdout]  --> src/intermediate.rs:2:8
[INFO] [stdout]   |
[INFO] [stdout] 2 | struct Instruction(u32);
[INFO] [stdout]   |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `top_bit` is never used
[INFO] [stdout]   --> src/intermediate.rs:14:10
[INFO] [stdout]    |
[INFO] [stdout] 14 | const fn top_bit(val: u32) -> bool {
[INFO] [stdout]    |          ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `i_intermediate` is never used
[INFO] [stdout]   --> src/intermediate.rs:25:4
[INFO] [stdout]    |
[INFO] [stdout] 25 | fn i_intermediate(i: &Instruction) -> i32 {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `imm`
[INFO] [stdout]    --> src/instructions.rs:161:20
[INFO] [stdout]     |
[INFO] [stdout] 161 | fn jalr<Rd>(_: Rd, imm: i32, label: &'static str) -> impl Instruction
[INFO] [stdout]     |                    ^^^ help: if this is intentional, prefix it with an underscore: `_imm`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `s_intermediate` is never used
[INFO] [stdout]   --> src/intermediate.rs:32:4
[INFO] [stdout]    |
[INFO] [stdout] 32 | fn s_intermediate(i: &Instruction) -> i32 {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `b_intermediate` is never used
[INFO] [stdout]   --> src/intermediate.rs:40:4
[INFO] [stdout]    |
[INFO] [stdout] 40 | fn b_intermediate(i: &Instruction) -> i32 {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `u_intermediate` is never used
[INFO] [stdout]   --> src/intermediate.rs:49:4
[INFO] [stdout]    |
[INFO] [stdout] 49 | fn u_intermediate(i: &Instruction) -> i32 {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `j_intermediate` is never used
[INFO] [stdout]   --> src/intermediate.rs:57:4
[INFO] [stdout]    |
[INFO] [stdout] 57 | fn j_intermediate(i: &Instruction) -> i32 {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:92:9
[INFO] [stdout]    |
[INFO] [stdout] 92 |     let mut stdin = io::stdin().lock().lines();
[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: unused variable: `stdin`
[INFO] [stdout]   --> src/main.rs:92:9
[INFO] [stdout]    |
[INFO] [stdout] 92 |     let mut stdin = io::stdin().lock().lines();
[INFO] [stdout]    |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stdin`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `hi` is never used
[INFO] [stdout]   --> src/main.rs:29:4
[INFO] [stdout]    |
[INFO] [stdout] 29 | fn hi(val: i32) -> i32 {
[INFO] [stdout]    |    ^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `lo` is never used
[INFO] [stdout]   --> src/main.rs:32:4
[INFO] [stdout]    |
[INFO] [stdout] 32 | fn lo(val: i32) -> i32 {
[INFO] [stdout]    |    ^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `print` is never used
[INFO] [stdout]    --> src/main.rs:127:12
[INFO] [stdout]     |
[INFO] [stdout] 117 | impl CoreState {
[INFO] [stdout]     | -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 127 |     pub fn print(&self) {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `lui` is never used
[INFO] [stdout]    --> src/instructions.rs:107:8
[INFO] [stdout]     |
[INFO] [stdout] 107 | pub fn lui<Rd>(rd: Rd, imm: i32) -> impl Instruction
[INFO] [stdout]     |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `jal` is never used
[INFO] [stdout]    --> src/instructions.rs:151:4
[INFO] [stdout]     |
[INFO] [stdout] 151 | fn jal<Rd>(_: Rd, label: &'static str) -> impl Instruction
[INFO] [stdout]     |    ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `jalr` is never used
[INFO] [stdout]    --> src/instructions.rs:161:4
[INFO] [stdout]     |
[INFO] [stdout] 161 | fn jalr<Rd>(_: Rd, imm: i32, label: &'static str) -> impl Instruction
[INFO] [stdout]     |    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `j` is never used
[INFO] [stdout]    --> src/instructions.rs:172:4
[INFO] [stdout]     |
[INFO] [stdout] 172 | fn j(label: &'static str) -> impl Instruction {
[INFO] [stdout]     |    ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Instruction` is never constructed
[INFO] [stdout]  --> src/intermediate.rs:2:8
[INFO] [stdout]   |
[INFO] [stdout] 2 | struct Instruction(u32);
[INFO] [stdout]   |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `top_bit` is never used
[INFO] [stdout]   --> src/intermediate.rs:14:10
[INFO] [stdout]    |
[INFO] [stdout] 14 | const fn top_bit(val: u32) -> bool {
[INFO] [stdout]    |          ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `i_intermediate` is never used
[INFO] [stdout]   --> src/intermediate.rs:25:4
[INFO] [stdout]    |
[INFO] [stdout] 25 | fn i_intermediate(i: &Instruction) -> i32 {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `s_intermediate` is never used
[INFO] [stdout]   --> src/intermediate.rs:32:4
[INFO] [stdout]    |
[INFO] [stdout] 32 | fn s_intermediate(i: &Instruction) -> i32 {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `b_intermediate` is never used
[INFO] [stdout]   --> src/intermediate.rs:40:4
[INFO] [stdout]    |
[INFO] [stdout] 40 | fn b_intermediate(i: &Instruction) -> i32 {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `u_intermediate` is never used
[INFO] [stdout]   --> src/intermediate.rs:49:4
[INFO] [stdout]    |
[INFO] [stdout] 49 | fn u_intermediate(i: &Instruction) -> i32 {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `j_intermediate` is never used
[INFO] [stdout]   --> src/intermediate.rs:57:4
[INFO] [stdout]    |
[INFO] [stdout] 57 | fn j_intermediate(i: &Instruction) -> i32 {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.27s
[INFO] running `Command { std: "docker" "inspect" "e1d2f36ff054b528be8d2fcb44c34557c35fdae2112c6659b8025d46cb606d86", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e1d2f36ff054b528be8d2fcb44c34557c35fdae2112c6659b8025d46cb606d86", kill_on_drop: false }`
[INFO] [stdout] e1d2f36ff054b528be8d2fcb44c34557c35fdae2112c6659b8025d46cb606d86
