[INFO] cloning repository https://github.com/kahveciderin/c-riscv [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kahveciderin/c-riscv" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkahveciderin%2Fc-riscv", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkahveciderin%2Fc-riscv'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2db744791fc03c58e103ae2dc6e56815b59b5b45 [INFO] checking kahveciderin/c-riscv against try#15e8bc6907ab2b3623cb52acc726f4787458df64 for pr-141352 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkahveciderin%2Fc-riscv" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kahveciderin/c-riscv on toolchain 15e8bc6907ab2b3623cb52acc726f4787458df64 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+15e8bc6907ab2b3623cb52acc726f4787458df64" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kahveciderin/c-riscv [INFO] finished tweaking git repo https://github.com/kahveciderin/c-riscv [INFO] tweaked toml for git repo https://github.com/kahveciderin/c-riscv written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/kahveciderin/c-riscv 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" "+15e8bc6907ab2b3623cb52acc726f4787458df64" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+15e8bc6907ab2b3623cb52acc726f4787458df64" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 21314f13fb04d22c2fd281c1d80dc362af01fd504278057c78c40de42b9fde4f [INFO] running `Command { std: "docker" "start" "-a" "21314f13fb04d22c2fd281c1d80dc362af01fd504278057c78c40de42b9fde4f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "21314f13fb04d22c2fd281c1d80dc362af01fd504278057c78c40de42b9fde4f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "21314f13fb04d22c2fd281c1d80dc362af01fd504278057c78c40de42b9fde4f", kill_on_drop: false }` [INFO] [stdout] 21314f13fb04d22c2fd281c1d80dc362af01fd504278057c78c40de42b9fde4f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+15e8bc6907ab2b3623cb52acc726f4787458df64" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d25399e424dda75f94b536af5bc4159458d44f0b507f77e8cb4b6ccf8f1806eb [INFO] running `Command { std: "docker" "start" "-a" "d25399e424dda75f94b536af5bc4159458d44f0b507f77e8cb4b6ccf8f1806eb", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.88 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling libc v0.2.161 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking winnow v0.6.20 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.80 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking c-riscv v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `declaration::Declarator` [INFO] [stdout] --> src/parser/function_definition.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | declaration::Declarator, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `declaration::Declarator` [INFO] [stdout] --> src/parser/function_definition.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | declaration::Declarator, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_destination_register`, `set_destination_register`, and `does_jump` are never used [INFO] [stdout] --> src/riscv/instruction.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 136 | impl Instruction { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 137 | pub fn get_destination_register(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 184 | pub fn set_destination_register(&mut self, register: Register) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 233 | pub fn does_jump(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FunctionArgumentOptionalName` is never constructed [INFO] [stdout] --> src/types/function_definition.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct FunctionArgumentOptionalName { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FunctionArgumentOptionalName` 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: struct `Argument` is never constructed [INFO] [stdout] --> src/types/declaration.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Argument { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Argument` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/utils/random_name.rs:25:98 [INFO] [stdout] | [INFO] [stdout] 25 | let random_name = "____".to_owned() + &random_name(Some(&prefix), len) + "____" + &unsafe { IDENTIFIER_COUNT.to_string() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_destination_register`, `set_destination_register`, and `does_jump` are never used [INFO] [stdout] --> src/riscv/instruction.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 136 | impl Instruction { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 137 | pub fn get_destination_register(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 184 | pub fn set_destination_register(&mut self, register: Register) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 233 | pub fn does_jump(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FunctionArgumentOptionalName` is never constructed [INFO] [stdout] --> src/types/function_definition.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct FunctionArgumentOptionalName { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FunctionArgumentOptionalName` 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: struct `Argument` is never constructed [INFO] [stdout] --> src/types/declaration.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Argument { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Argument` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/utils/random_name.rs:25:98 [INFO] [stdout] | [INFO] [stdout] 25 | let random_name = "____".to_owned() + &random_name(Some(&prefix), len) + "____" + &unsafe { IDENTIFIER_COUNT.to_string() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.74s [INFO] running `Command { std: "docker" "inspect" "d25399e424dda75f94b536af5bc4159458d44f0b507f77e8cb4b6ccf8f1806eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d25399e424dda75f94b536af5bc4159458d44f0b507f77e8cb4b6ccf8f1806eb", kill_on_drop: false }` [INFO] [stdout] d25399e424dda75f94b536af5bc4159458d44f0b507f77e8cb4b6ccf8f1806eb