[INFO] cloning repository https://github.com/kper/mill [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kper/mill" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkper%2Fmill", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkper%2Fmill'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] acc159b8b09e55ef36c21ddf24205e2b22a386ba [INFO] checking kper/mill against try#5de9e0e6cf775e94e0de2003f35e183f3f77bfe8 for pr-143808 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkper%2Fmill" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/kper/mill [INFO] finished tweaking git repo https://github.com/kper/mill [INFO] tweaked toml for git repo https://github.com/kper/mill written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kper/mill on toolchain 5de9e0e6cf775e94e0de2003f35e183f3f77bfe8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kper/mill 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" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 35fe460561a084b00d939001ce3aa676cdcfd6da021f59534a8e2c16bcba41d2 [INFO] running `Command { std: "docker" "start" "-a" "35fe460561a084b00d939001ce3aa676cdcfd6da021f59534a8e2c16bcba41d2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "35fe460561a084b00d939001ce3aa676cdcfd6da021f59534a8e2c16bcba41d2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "35fe460561a084b00d939001ce3aa676cdcfd6da021f59534a8e2c16bcba41d2", kill_on_drop: false }` [INFO] [stdout] 35fe460561a084b00d939001ce3aa676cdcfd6da021f59534a8e2c16bcba41d2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e117aec342ba42fb546a58850e450b711e2ea4f54ab194133bedee35c0c5ea65 [INFO] running `Command { std: "docker" "start" "-a" "e117aec342ba42fb546a58850e450b711e2ea4f54ab194133bedee35c0c5ea65", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling memchr v2.6.4 [INFO] [stderr] Compiling thiserror v1.0.50 [INFO] [stderr] Compiling ucd-trie v0.1.6 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling rustix v0.38.21 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling syn v2.0.38 [INFO] [stderr] Compiling smallvec v1.11.1 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling hashbrown v0.14.2 [INFO] [stderr] Compiling bitflags v2.4.1 [INFO] [stderr] Compiling regex-automata v0.4.3 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling linux-raw-sys v0.4.10 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling term v0.7.0 [INFO] [stderr] Compiling indexmap v2.1.0 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling new_debug_unreachable v1.0.4 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling dot-structures v0.1.1 [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling regex v1.10.2 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling string_cache v0.8.7 [INFO] [stderr] Compiling ena v0.14.2 [INFO] [stderr] Compiling petgraph v0.6.4 [INFO] [stderr] Compiling lalrpop-util v0.20.0 [INFO] [stderr] Checking anstyle-parse v0.2.2 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling is-terminal v0.4.9 [INFO] [stderr] Compiling ascii-canvas v3.0.0 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling pico-args v0.5.0 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Compiling regex-syntax v0.7.5 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Compiling diff v0.1.13 [INFO] [stderr] Compiling thiserror-impl v1.0.50 [INFO] [stderr] Checking anstyle v1.0.4 [INFO] [stderr] Checking anstyle-query v1.0.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling into-attr v0.1.1 [INFO] [stderr] Compiling dot-generator v0.2.0 [INFO] [stderr] Checking anstream v0.6.4 [INFO] [stderr] Compiling anyhow v1.0.75 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking fastrand v2.0.1 [INFO] [stderr] Checking linked-hash-map v0.5.6 [INFO] [stderr] Checking clap_lex v0.6.0 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking clap_builder v4.4.7 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Compiling clap_derive v4.4.7 [INFO] [stderr] Compiling pest v2.7.5 [INFO] [stderr] Compiling semver-parser v0.10.2 [INFO] [stderr] Compiling pest_meta v2.7.5 [INFO] [stderr] Checking tempfile v3.8.1 [INFO] [stderr] Compiling semver v0.11.0 [INFO] [stderr] Compiling lalrpop v0.20.0 [INFO] [stderr] Compiling into-attr-derive v0.2.1 [INFO] [stderr] Checking console v0.15.7 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling llvm-sys v130.1.2 [INFO] [stderr] Compiling pest_generator v2.7.5 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking similar v2.3.0 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking termcolor v1.3.0 [INFO] [stderr] Checking clap v4.4.7 [INFO] [stderr] Checking env_logger v0.8.4 [INFO] [stderr] Checking insta v1.34.0 [INFO] [stderr] Compiling pest_derive v2.7.5 [INFO] [stderr] Checking graphviz-rust v0.6.6 [INFO] [stderr] Compiling mill v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `log::info` [INFO] [stdout] --> src/lir/lowering.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use log::info; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/main.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::info` [INFO] [stdout] --> src/lir/lowering.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use log::info; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/main.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `insta::assert_snapshot` [INFO] [stdout] --> src/tests/ir.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use insta::assert_snapshot; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::run_visitor` [INFO] [stdout] --> src/tests/prelude.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub use crate::run_visitor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `struc` [INFO] [stdout] --> src/lir/lowering.rs:146:30 [INFO] [stdout] | [INFO] [stdout] 146 | fn map_struct(&mut self, struc: &Struct) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_struc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `codegen` [INFO] [stdout] --> src/tests/ir.rs:18:21 [INFO] [stdout] | [INFO] [stdout] 18 | let mut codegen = Codegen::new(context, module, builder); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_codegen` [INFO] [stdout] ... [INFO] [stdout] 51 | compile!("fn main() { return 1; }"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runner` [INFO] [stdout] --> src/tests/ir.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | let mut runner = Runner; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_runner` [INFO] [stdout] ... [INFO] [stdout] 51 | compile!("fn main() { return 1; }"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `program` [INFO] [stdout] --> src/tests/ir.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | let mut program = grammar::ProgramParser::new().parse(&input).unwrap(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program` [INFO] [stdout] ... [INFO] [stdout] 51 | compile!("fn main() { return 1; }"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/ir.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | let mut codegen = Codegen::new(context, module, builder); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 51 | compile!("fn main() { return 1; }"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/ir.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | let mut runner = Runner; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 51 | compile!("fn main() { return 1; }"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/ir.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | let mut program = grammar::ProgramParser::new().parse(&input).unwrap(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 51 | compile!("fn main() { return 1; }"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `codegen` [INFO] [stdout] --> src/tests/ir.rs:18:21 [INFO] [stdout] | [INFO] [stdout] 18 | let mut codegen = Codegen::new(context, module, builder); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_codegen` [INFO] [stdout] ... [INFO] [stdout] 56 | compile!("fn main() { let a : int = 1; let b : int = 2; }"); [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runner` [INFO] [stdout] --> src/tests/ir.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | let mut runner = Runner; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_runner` [INFO] [stdout] ... [INFO] [stdout] 56 | compile!("fn main() { let a : int = 1; let b : int = 2; }"); [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `program` [INFO] [stdout] --> src/tests/ir.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | let mut program = grammar::ProgramParser::new().parse(&input).unwrap(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program` [INFO] [stdout] ... [INFO] [stdout] 56 | compile!("fn main() { let a : int = 1; let b : int = 2; }"); [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/ir.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | let mut codegen = Codegen::new(context, module, builder); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 56 | compile!("fn main() { let a : int = 1; let b : int = 2; }"); [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/ir.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | let mut runner = Runner; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 56 | compile!("fn main() { let a : int = 1; let b : int = 2; }"); [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/ir.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | let mut program = grammar::ProgramParser::new().parse(&input).unwrap(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 56 | compile!("fn main() { let a : int = 1; let b : int = 2; }"); [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `codegen` [INFO] [stdout] --> src/tests/ir.rs:18:21 [INFO] [stdout] | [INFO] [stdout] 18 | let mut codegen = Codegen::new(context, module, builder); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_codegen` [INFO] [stdout] ... [INFO] [stdout] 61 | compile!("fn main() { let a : int = 1; a = 2; }"); [INFO] [stdout] | ------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runner` [INFO] [stdout] --> src/tests/ir.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | let mut runner = Runner; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_runner` [INFO] [stdout] ... [INFO] [stdout] 61 | compile!("fn main() { let a : int = 1; a = 2; }"); [INFO] [stdout] | ------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `program` [INFO] [stdout] --> src/tests/ir.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | let mut program = grammar::ProgramParser::new().parse(&input).unwrap(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program` [INFO] [stdout] ... [INFO] [stdout] 61 | compile!("fn main() { let a : int = 1; a = 2; }"); [INFO] [stdout] | ------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/ir.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | let mut codegen = Codegen::new(context, module, builder); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 61 | compile!("fn main() { let a : int = 1; a = 2; }"); [INFO] [stdout] | ------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/ir.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | let mut runner = Runner; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 61 | compile!("fn main() { let a : int = 1; a = 2; }"); [INFO] [stdout] | ------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/ir.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | let mut program = grammar::ProgramParser::new().parse(&input).unwrap(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 61 | compile!("fn main() { let a : int = 1; a = 2; }"); [INFO] [stdout] | ------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `codegen` [INFO] [stdout] --> src/tests/ir.rs:18:21 [INFO] [stdout] | [INFO] [stdout] 18 | let mut codegen = Codegen::new(context, module, builder); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_codegen` [INFO] [stdout] ... [INFO] [stdout] 66 | compile!("fn main() { return 1 + 2; }"); [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runner` [INFO] [stdout] --> src/tests/ir.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | let mut runner = Runner; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_runner` [INFO] [stdout] ... [INFO] [stdout] 66 | compile!("fn main() { return 1 + 2; }"); [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `program` [INFO] [stdout] --> src/tests/ir.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | let mut program = grammar::ProgramParser::new().parse(&input).unwrap(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program` [INFO] [stdout] ... [INFO] [stdout] 66 | compile!("fn main() { return 1 + 2; }"); [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/ir.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | let mut codegen = Codegen::new(context, module, builder); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 66 | compile!("fn main() { return 1 + 2; }"); [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/ir.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | let mut runner = Runner; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 66 | compile!("fn main() { return 1 + 2; }"); [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/ir.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | let mut program = grammar::ProgramParser::new().parse(&input).unwrap(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 66 | compile!("fn main() { return 1 + 2; }"); [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `codegen` [INFO] [stdout] --> src/tests/ir.rs:18:21 [INFO] [stdout] | [INFO] [stdout] 18 | let mut codegen = Codegen::new(context, module, builder); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_codegen` [INFO] [stdout] ... [INFO] [stdout] 71 | compile!("fn main() -> int { if 2 == 2 { return 1; } return 0; }"); [INFO] [stdout] | ------------------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runner` [INFO] [stdout] --> src/tests/ir.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | let mut runner = Runner; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_runner` [INFO] [stdout] ... [INFO] [stdout] 71 | compile!("fn main() -> int { if 2 == 2 { return 1; } return 0; }"); [INFO] [stdout] | ------------------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `program` [INFO] [stdout] --> src/tests/ir.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | let mut program = grammar::ProgramParser::new().parse(&input).unwrap(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program` [INFO] [stdout] ... [INFO] [stdout] 71 | compile!("fn main() -> int { if 2 == 2 { return 1; } return 0; }"); [INFO] [stdout] | ------------------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/ir.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | let mut codegen = Codegen::new(context, module, builder); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 71 | compile!("fn main() -> int { if 2 == 2 { return 1; } return 0; }"); [INFO] [stdout] | ------------------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/ir.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | let mut runner = Runner; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 71 | compile!("fn main() -> int { if 2 == 2 { return 1; } return 0; }"); [INFO] [stdout] | ------------------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/ir.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | let mut program = grammar::ProgramParser::new().parse(&input).unwrap(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 71 | compile!("fn main() -> int { if 2 == 2 { return 1; } return 0; }"); [INFO] [stdout] | ------------------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `codegen` [INFO] [stdout] --> src/tests/ir.rs:18:21 [INFO] [stdout] | [INFO] [stdout] 18 | let mut codegen = Codegen::new(context, module, builder); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_codegen` [INFO] [stdout] ... [INFO] [stdout] 76 | / compile!( [INFO] [stdout] 77 | | "fn f(b: int) -> int { return b; } fn main() -> int { let a : int = 1; return f(a); }" [INFO] [stdout] 78 | | ); [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runner` [INFO] [stdout] --> src/tests/ir.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | let mut runner = Runner; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_runner` [INFO] [stdout] ... [INFO] [stdout] 76 | / compile!( [INFO] [stdout] 77 | | "fn f(b: int) -> int { return b; } fn main() -> int { let a : int = 1; return f(a); }" [INFO] [stdout] 78 | | ); [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `program` [INFO] [stdout] --> src/tests/ir.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | let mut program = grammar::ProgramParser::new().parse(&input).unwrap(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program` [INFO] [stdout] ... [INFO] [stdout] 76 | / compile!( [INFO] [stdout] 77 | | "fn f(b: int) -> int { return b; } fn main() -> int { let a : int = 1; return f(a); }" [INFO] [stdout] 78 | | ); [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/ir.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | let mut codegen = Codegen::new(context, module, builder); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 76 | / compile!( [INFO] [stdout] 77 | | "fn f(b: int) -> int { return b; } fn main() -> int { let a : int = 1; return f(a); }" [INFO] [stdout] 78 | | ); [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/ir.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | let mut runner = Runner; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 76 | / compile!( [INFO] [stdout] 77 | | "fn f(b: int) -> int { return b; } fn main() -> int { let a : int = 1; return f(a); }" [INFO] [stdout] 78 | | ); [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/ir.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | let mut program = grammar::ProgramParser::new().parse(&input).unwrap(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 76 | / compile!( [INFO] [stdout] 77 | | "fn f(b: int) -> int { return b; } fn main() -> int { let a : int = 1; return f(a); }" [INFO] [stdout] 78 | | ); [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `codegen` [INFO] [stdout] --> src/tests/ir.rs:18:21 [INFO] [stdout] | [INFO] [stdout] 18 | let mut codegen = Codegen::new(context, module, builder); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_codegen` [INFO] [stdout] ... [INFO] [stdout] 83 | compile!("fn main() -> int { let a : int = 1; return f(a); } fn f(a:int) -> int { return a; }"); [INFO] [stdout] | ----------------------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runner` [INFO] [stdout] --> src/tests/ir.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | let mut runner = Runner; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_runner` [INFO] [stdout] ... [INFO] [stdout] 83 | compile!("fn main() -> int { let a : int = 1; return f(a); } fn f(a:int) -> int { return a; }"); [INFO] [stdout] | ----------------------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `program` [INFO] [stdout] --> src/tests/ir.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | let mut program = grammar::ProgramParser::new().parse(&input).unwrap(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program` [INFO] [stdout] ... [INFO] [stdout] 83 | compile!("fn main() -> int { let a : int = 1; return f(a); } fn f(a:int) -> int { return a; }"); [INFO] [stdout] | ----------------------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/ir.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | let mut codegen = Codegen::new(context, module, builder); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 83 | compile!("fn main() -> int { let a : int = 1; return f(a); } fn f(a:int) -> int { return a; }"); [INFO] [stdout] | ----------------------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/ir.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | let mut runner = Runner; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 83 | compile!("fn main() -> int { let a : int = 1; return f(a); } fn f(a:int) -> int { return a; }"); [INFO] [stdout] | ----------------------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/ir.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | let mut program = grammar::ProgramParser::new().parse(&input).unwrap(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 83 | compile!("fn main() -> int { let a : int = 1; return f(a); } fn f(a:int) -> int { return a; }"); [INFO] [stdout] | ----------------------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `compile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `struc` [INFO] [stdout] --> src/lir/lowering.rs:146:30 [INFO] [stdout] | [INFO] [stdout] 146 | fn map_struct(&mut self, struc: &Struct) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_struc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runner` [INFO] [stdout] --> src/main.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | let mut runner = Runner; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_runner` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ast` [INFO] [stdout] --> src/main.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 94 | fn run(mut ast: ast::Program) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ast` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | fn run(mut ast: ast::Program) -> Result<()> { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | let mut runner = Runner; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/codegen/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Codegen { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 12 | pub context: LLVMContextRef, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 13 | pub module: LLVMModuleRef, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 14 | pub builder: LLVMBuilderRef, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 15 | pub symbol_tables: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 16 | pub function_table: LLVMFunctionTable, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 17 | pub block_table: LLVMBlockTable, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 18 | pub struct_table: LLVMStructTable, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 19 | pub expr_tables: HashMap, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clear_expr_table` is never used [INFO] [stdout] --> src/codegen/mod.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Codegen { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn clear_expr_table(&mut self, function: &Identifier) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `lowering` is never used [INFO] [stdout] --> src/runner.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Runner { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 7 | pub fn lowering(&mut self, program: &Program) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lir/tree.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 52 | impl LoweredFunction { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 53 | pub fn new(id: Identifier, pars: Vec, entry: BasicBlockId, blocks: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Phi` and `UnconditionalJump` are never constructed [INFO] [stdout] --> src/lir/tree.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 131 | pub enum LoweredStatement { [INFO] [stdout] | ---------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 134 | Phi(Variable, Vec), [INFO] [stdout] | ^^^ [INFO] [stdout] 135 | UnconditionalJump(Box), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LoweredStatement` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `map_struct` is never used [INFO] [stdout] --> src/lir/lowering.rs:146:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl LoweringPass { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 146 | fn map_struct(&mut self, struc: &Struct) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runner` [INFO] [stdout] --> src/main.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | let mut runner = Runner; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_runner` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ast` [INFO] [stdout] --> src/main.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 94 | fn run(mut ast: ast::Program) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ast` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | fn run(mut ast: ast::Program) -> Result<()> { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | let mut runner = Runner; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Codegen` is never constructed [INFO] [stdout] --> src/codegen/mod.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Codegen { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `clear_expr_table` are never used [INFO] [stdout] --> src/codegen/mod.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Codegen { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 23 | pub fn new(context: LLVMContextRef, module: LLVMModuleRef, builder: LLVMBuilderRef) -> Codegen { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn clear_expr_table(&mut self, function: &Identifier) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `lowering` is never used [INFO] [stdout] --> src/runner.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Runner { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 7 | pub fn lowering(&mut self, program: &Program) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pars` and `entry` are never read [INFO] [stdout] --> src/lir/tree.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct LoweredFunction { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 32 | pub id: Identifier, [INFO] [stdout] 33 | pub pars: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 34 | pub entry: BasicBlockId, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LoweredFunction` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lir/tree.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 52 | impl LoweredFunction { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 53 | pub fn new(id: Identifier, pars: Vec, entry: BasicBlockId, blocks: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Phi` and `UnconditionalJump` are never constructed [INFO] [stdout] --> src/lir/tree.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 131 | pub enum LoweredStatement { [INFO] [stdout] | ---------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 134 | Phi(Variable, Vec), [INFO] [stdout] | ^^^ [INFO] [stdout] 135 | UnconditionalJump(Box), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LoweredStatement` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `map_struct` is never used [INFO] [stdout] --> src/lir/lowering.rs:146:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl LoweringPass { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 146 | fn map_struct(&mut self, struc: &Struct) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 00s [INFO] running `Command { std: "docker" "inspect" "e117aec342ba42fb546a58850e450b711e2ea4f54ab194133bedee35c0c5ea65", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e117aec342ba42fb546a58850e450b711e2ea4f54ab194133bedee35c0c5ea65", kill_on_drop: false }` [INFO] [stdout] e117aec342ba42fb546a58850e450b711e2ea4f54ab194133bedee35c0c5ea65