[INFO] cloning repository https://github.com/ParkerTenBroeck/bc [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ParkerTenBroeck/bc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FParkerTenBroeck%2Fbc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FParkerTenBroeck%2Fbc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d777ac9c0544bb48962a841339c613ff05e7aa34 [INFO] checking ParkerTenBroeck/bc against try#cd420d8bda33494ba3cc45048d5f067484a32b94 for pr-140209-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FParkerTenBroeck%2Fbc" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ParkerTenBroeck/bc on toolchain cd420d8bda33494ba3cc45048d5f067484a32b94 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cd420d8bda33494ba3cc45048d5f067484a32b94" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ParkerTenBroeck/bc [INFO] finished tweaking git repo https://github.com/ParkerTenBroeck/bc [INFO] tweaked toml for git repo https://github.com/ParkerTenBroeck/bc written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ParkerTenBroeck/bc 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" "+cd420d8bda33494ba3cc45048d5f067484a32b94" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded lalrpop-util v0.20.2 [INFO] [stderr] Downloaded byteyarn v0.3.0 [INFO] [stderr] Downloaded str-buf v3.0.2 [INFO] [stderr] Downloaded lalrpop v0.20.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+cd420d8bda33494ba3cc45048d5f067484a32b94" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 25d422c28f7fec2865cf1d82fe01466ad45e07e6190d083521a7097175af7b72 [INFO] running `Command { std: "docker" "start" "-a" "25d422c28f7fec2865cf1d82fe01466ad45e07e6190d083521a7097175af7b72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "25d422c28f7fec2865cf1d82fe01466ad45e07e6190d083521a7097175af7b72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "25d422c28f7fec2865cf1d82fe01466ad45e07e6190d083521a7097175af7b72", kill_on_drop: false }` [INFO] [stdout] 25d422c28f7fec2865cf1d82fe01466ad45e07e6190d083521a7097175af7b72 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+cd420d8bda33494ba3cc45048d5f067484a32b94" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8493c3f75cb64167d4ab7f06fb8fea9ef209bf72263c5c147a91fe6fddb16215 [INFO] running `Command { std: "docker" "start" "-a" "8493c3f75cb64167d4ab7f06fb8fea9ef209bf72263c5c147a91fe6fddb16215", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling memchr v2.7.2 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling regex-syntax v0.8.3 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling either v1.12.0 [INFO] [stderr] Compiling new_debug_unreachable v1.0.6 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling ena v0.14.3 [INFO] [stderr] Compiling itertools v0.11.0 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Compiling pico-args v0.5.0 [INFO] [stderr] Checking str-buf v3.0.2 [INFO] [stderr] Checking byteyarn v0.3.0 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling term v0.7.0 [INFO] [stderr] Compiling string_cache v0.8.7 [INFO] [stderr] Compiling ascii-canvas v3.0.0 [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Checking lalrpop-util v0.20.2 [INFO] [stderr] Compiling regex v1.10.4 [INFO] [stderr] Compiling lalrpop v0.20.2 [INFO] [stderr] Compiling bc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `default` and `marker::PhantomData` [INFO] [stdout] --> src/bruh.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | default, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 4 | marker::PhantomData, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Discriminant` [INFO] [stdout] --> /opt/rustwide/target/debug/build/bc-505e10ff1b6a57b3/out/calc.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | use std::mem::{discriminant, Discriminant}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Discriminant` and `discriminant` [INFO] [stdout] --> /opt/rustwide/target/debug/build/bc-505e10ff1b6a57b3/out/calc2.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | use std::mem::{discriminant, Discriminant}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::stage::Context` [INFO] [stdout] --> /opt/rustwide/target/debug/build/bc-505e10ff1b6a57b3/out/parser/def.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::stage::Context; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `default` and `marker::PhantomData` [INFO] [stdout] --> src/bruh.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | default, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 4 | marker::PhantomData, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Discriminant` [INFO] [stdout] --> /opt/rustwide/target/debug/build/bc-505e10ff1b6a57b3/out/calc.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | use std::mem::{discriminant, Discriminant}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Discriminant` and `discriminant` [INFO] [stdout] --> /opt/rustwide/target/debug/build/bc-505e10ff1b6a57b3/out/calc2.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | use std::mem::{discriminant, Discriminant}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::stage::Context` [INFO] [stdout] --> /opt/rustwide/target/debug/build/bc-505e10ff1b6a57b3/out/parser/def.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::stage::Context; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/stage/mod.rs:1:34 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::{HashMap, HashSet}, num::NonZeroUsize}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Expression` [INFO] [stdout] --> src/stage/types.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parser::ast::{Expression, FloatType, IntSize, Path}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ConstantId` and `TypeMap` [INFO] [stdout] --> src/stage/types.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use super::{ConstantId, Context, TypeMap}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::TypeMap` [INFO] [stdout] --> src/stage/constant_eval.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use super::TypeMap; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/stage/mod.rs:1:34 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::{HashMap, HashSet}, num::NonZeroUsize}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Expression` [INFO] [stdout] --> src/stage/types.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parser::ast::{Expression, FloatType, IntSize, Path}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ConstantId` and `TypeMap` [INFO] [stdout] --> src/stage/types.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use super::{ConstantId, Context, TypeMap}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::TypeMap` [INFO] [stdout] --> src/stage/constant_eval.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use super::TypeMap; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `generate_global_values` found for struct `Program` in the current scope [INFO] [stdout] --> src/stage/mod.rs:420:13 [INFO] [stdout] | [INFO] [stdout] 107 | pub struct Program { [INFO] [stdout] | ------------------ method `generate_global_values` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 420 | program.generate_global_values(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ method not found in `Program` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `type_map` on type `Program` [INFO] [stdout] --> src/stage/mod.rs:422:31 [INFO] [stdout] | [INFO] [stdout] 422 | println!("{:#?}", program.type_map.get_type(&Path::new_path("Other"))); [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: one of the expressions' fields has a field of the same name [INFO] [stdout] | [INFO] [stdout] 422 | println!("{:#?}", program.context.type_map.get_type(&Path::new_path("Other"))); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `type_map` on type `Program` [INFO] [stdout] --> src/stage/mod.rs:423:31 [INFO] [stdout] | [INFO] [stdout] 423 | println!("{:#?}", program.type_map.get_type(&Path::new_path("Thing"))); [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: one of the expressions' fields has a field of the same name [INFO] [stdout] | [INFO] [stdout] 423 | println!("{:#?}", program.context.type_map.get_type(&Path::new_path("Thing"))); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length` [INFO] [stdout] --> src/stage/types.rs:70:37 [INFO] [stdout] | [INFO] [stdout] 70 | Type::ArrayStatic(item, length) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/stage/types.rs:71:21 [INFO] [stdout] | [INFO] [stdout] 71 | let mut layout = item.layout(context); [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: unused variable: `expr` [INFO] [stdout] --> src/stage/constant_eval.rs:53:33 [INFO] [stdout] | [INFO] [stdout] 53 | Expression::FieldAccess(expr, field) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `field` [INFO] [stdout] --> src/stage/constant_eval.rs:53:39 [INFO] [stdout] | [INFO] [stdout] 53 | Expression::FieldAccess(expr, field) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_field` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contents` [INFO] [stdout] --> src/stage/constant_eval.rs:58:33 [INFO] [stdout] | [INFO] [stdout] 58 | Expression::ArrayAccess(contents, index) => todo!(), [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contents` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/stage/constant_eval.rs:58:43 [INFO] [stdout] | [INFO] [stdout] 58 | Expression::ArrayAccess(contents, index) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l` [INFO] [stdout] --> src/stage/constant_eval.rs:65:30 [INFO] [stdout] | [INFO] [stdout] 65 | Expression::BinaryOp(l, op, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/stage/constant_eval.rs:65:33 [INFO] [stdout] | [INFO] [stdout] 65 | Expression::BinaryOp(l, op, r) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/stage/constant_eval.rs:65:37 [INFO] [stdout] | [INFO] [stdout] 65 | Expression::BinaryOp(l, op, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exprs` [INFO] [stdout] --> src/stage/constant_eval.rs:72:30 [INFO] [stdout] | [INFO] [stdout] 72 | Expression::ArrayCon(exprs) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_exprs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/stage/constant_eval.rs:37:19 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn const_eval(context: &mut Context, desired_type: &Type, expr: &Expression) -> Value{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/stage/constant_eval.rs:87:19 [INFO] [stdout] | [INFO] [stdout] 87 | fn apply_unary_op(value: &Expression, op: UnaryOpKind) -> Value{ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l` [INFO] [stdout] --> src/stage/constant_eval.rs:97:19 [INFO] [stdout] | [INFO] [stdout] 97 | fn apply_binop_op(l: &Expression, op: BinOpKind, r: &Expression) -> Value{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/stage/constant_eval.rs:97:50 [INFO] [stdout] | [INFO] [stdout] 97 | fn apply_binop_op(l: &Expression, op: BinOpKind, r: &Expression) -> Value{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/stage/mod.rs:243:36 [INFO] [stdout] | [INFO] [stdout] 243 | fn resolve_constant(&mut self, id: ConstantId){ [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/stage/mod.rs:247:30 [INFO] [stdout] | [INFO] [stdout] 247 | fn add_global(&mut self, path: Path, glob: Global) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `glob` [INFO] [stdout] --> src/stage/mod.rs:247:42 [INFO] [stdout] | [INFO] [stdout] 247 | fn add_global(&mut self, path: Path, glob: Global) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_glob` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mod_path` [INFO] [stdout] --> src/stage/mod.rs:265:37 [INFO] [stdout] | [INFO] [stdout] 265 | fn add_function_head(&mut self, mod_path: &Path, func: FunctionHeader){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mod_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> src/stage/mod.rs:265:54 [INFO] [stdout] | [INFO] [stdout] 265 | fn add_function_head(&mut self, mod_path: &Path, func: FunctionHeader){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_func` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mod_path` [INFO] [stdout] --> src/stage/mod.rs:281:36 [INFO] [stdout] | [INFO] [stdout] 281 | fn add_function_def(&mut self, mod_path: &Path, func: FunctionDef){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mod_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> src/stage/mod.rs:281:53 [INFO] [stdout] | [INFO] [stdout] 281 | fn add_function_def(&mut self, mod_path: &Path, func: FunctionDef){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_func` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mod_path` [INFO] [stdout] --> src/stage/mod.rs:303:35 [INFO] [stdout] | [INFO] [stdout] 303 | pub fn load_module(&mut self, mod_path: Path, module: Module){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mod_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length` [INFO] [stdout] --> src/stage/types.rs:70:37 [INFO] [stdout] | [INFO] [stdout] 70 | Type::ArrayStatic(item, length) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/stage/types.rs:71:21 [INFO] [stdout] | [INFO] [stdout] 71 | let mut layout = item.layout(context); [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: unused variable: `expr` [INFO] [stdout] --> src/stage/constant_eval.rs:53:33 [INFO] [stdout] | [INFO] [stdout] 53 | Expression::FieldAccess(expr, field) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `field` [INFO] [stdout] --> src/stage/constant_eval.rs:53:39 [INFO] [stdout] | [INFO] [stdout] 53 | Expression::FieldAccess(expr, field) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_field` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contents` [INFO] [stdout] --> src/stage/constant_eval.rs:58:33 [INFO] [stdout] | [INFO] [stdout] 58 | Expression::ArrayAccess(contents, index) => todo!(), [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contents` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/stage/constant_eval.rs:58:43 [INFO] [stdout] | [INFO] [stdout] 58 | Expression::ArrayAccess(contents, index) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l` [INFO] [stdout] --> src/stage/constant_eval.rs:65:30 [INFO] [stdout] | [INFO] [stdout] 65 | Expression::BinaryOp(l, op, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/stage/constant_eval.rs:65:33 [INFO] [stdout] | [INFO] [stdout] 65 | Expression::BinaryOp(l, op, r) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/stage/constant_eval.rs:65:37 [INFO] [stdout] | [INFO] [stdout] 65 | Expression::BinaryOp(l, op, r) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exprs` [INFO] [stdout] --> src/stage/constant_eval.rs:72:30 [INFO] [stdout] | [INFO] [stdout] 72 | Expression::ArrayCon(exprs) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_exprs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/stage/constant_eval.rs:37:19 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn const_eval(context: &mut Context, desired_type: &Type, expr: &Expression) -> Value{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/stage/constant_eval.rs:87:19 [INFO] [stdout] | [INFO] [stdout] 87 | fn apply_unary_op(value: &Expression, op: UnaryOpKind) -> Value{ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l` [INFO] [stdout] --> src/stage/constant_eval.rs:97:19 [INFO] [stdout] | [INFO] [stdout] 97 | fn apply_binop_op(l: &Expression, op: BinOpKind, r: &Expression) -> Value{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/stage/constant_eval.rs:97:50 [INFO] [stdout] | [INFO] [stdout] 97 | fn apply_binop_op(l: &Expression, op: BinOpKind, r: &Expression) -> Value{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/stage/mod.rs:243:36 [INFO] [stdout] | [INFO] [stdout] 243 | fn resolve_constant(&mut self, id: ConstantId){ [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/stage/mod.rs:247:30 [INFO] [stdout] | [INFO] [stdout] 247 | fn add_global(&mut self, path: Path, glob: Global) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `glob` [INFO] [stdout] --> src/stage/mod.rs:247:42 [INFO] [stdout] | [INFO] [stdout] 247 | fn add_global(&mut self, path: Path, glob: Global) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_glob` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mod_path` [INFO] [stdout] --> src/stage/mod.rs:265:37 [INFO] [stdout] | [INFO] [stdout] 265 | fn add_function_head(&mut self, mod_path: &Path, func: FunctionHeader){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mod_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> src/stage/mod.rs:265:54 [INFO] [stdout] | [INFO] [stdout] 265 | fn add_function_head(&mut self, mod_path: &Path, func: FunctionHeader){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_func` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mod_path` [INFO] [stdout] --> src/stage/mod.rs:281:36 [INFO] [stdout] | [INFO] [stdout] 281 | fn add_function_def(&mut self, mod_path: &Path, func: FunctionDef){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mod_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> src/stage/mod.rs:281:53 [INFO] [stdout] | [INFO] [stdout] 281 | fn add_function_def(&mut self, mod_path: &Path, func: FunctionDef){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_func` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mod_path` [INFO] [stdout] --> src/stage/mod.rs:303:35 [INFO] [stdout] | [INFO] [stdout] 303 | pub fn load_module(&mut self, mod_path: Path, module: Module){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mod_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `State` is never used [INFO] [stdout] --> src/bruh.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | enum State { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Grammar` is never constructed [INFO] [stdout] --> src/bruh.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | struct Grammar { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `matches` are never used [INFO] [stdout] --> src/bruh.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 50 | impl Grammar { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 51 | pub fn new(data: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn matches(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `stack` is never read [INFO] [stdout] --> src/bruh.rs:355:5 [INFO] [stdout] | [INFO] [stdout] 353 | struct Run> { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 354 | pub values: VecDeque, [INFO] [stdout] 355 | stack: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Run` has derived impls for the traits `Default` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `run` are never used [INFO] [stdout] --> src/bruh.rs:360:12 [INFO] [stdout] | [INFO] [stdout] 359 | impl> Run { [INFO] [stdout] | --------------------------------- associated items in this implementation [INFO] [stdout] 360 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 368 | pub fn run(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Workspace` is never constructed [INFO] [stdout] --> src/comp.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Workspace { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `globals`, `constants`, `unresolved_constants`, and `functions` are never read [INFO] [stdout] --> src/stage/mod.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 72 | pub struct Context{ [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 73 | type_map: TypeMap, [INFO] [stdout] 74 | globals: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 75 | constants: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 76 | unresolved_constants: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 77 | functions: Vec<(Resolvable, FunctionKind)>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind` and `value` are never read [INFO] [stdout] --> src/stage/mod.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 101 | pub struct Constant{ [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 102 | kind: ConstantKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] 103 | value: ConstantValue, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `resolve_constant` and `add_global` are never used [INFO] [stdout] --> src/stage/mod.rs:243:8 [INFO] [stdout] | [INFO] [stdout] 138 | impl Context{ [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 243 | fn resolve_constant(&mut self, id: ConstantId){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 247 | fn add_global(&mut self, path: Path, glob: Global) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_function_head` and `add_function_def` are never used [INFO] [stdout] --> src/stage/mod.rs:265:8 [INFO] [stdout] | [INFO] [stdout] 264 | impl Program{ [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] 265 | fn add_function_head(&mut self, mod_path: &Path, func: FunctionHeader){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 281 | fn add_function_def(&mut self, mod_path: &Path, func: FunctionDef){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VAL` is never used [INFO] [stdout] --> src/stage/types.rs:81:7 [INFO] [stdout] | [INFO] [stdout] 81 | const VAL: usize = 34-2; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Test` is never constructed [INFO] [stdout] --> src/stage/types.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | struct Test{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `apply_binop_op` is never used [INFO] [stdout] --> src/stage/constant_eval.rs:97:4 [INFO] [stdout] | [INFO] [stdout] 97 | fn apply_binop_op(l: &Expression, op: BinOpKind, r: &Expression) -> Value{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0599, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `bc` (bin "bc" test) due to 3 previous errors; 30 warnings emitted [INFO] running `Command { std: "docker" "inspect" "8493c3f75cb64167d4ab7f06fb8fea9ef209bf72263c5c147a91fe6fddb16215", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8493c3f75cb64167d4ab7f06fb8fea9ef209bf72263c5c147a91fe6fddb16215", kill_on_drop: false }` [INFO] [stdout] 8493c3f75cb64167d4ab7f06fb8fea9ef209bf72263c5c147a91fe6fddb16215