[INFO] updating cached repository https://github.com/mcr431/pel [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] [stderr] From https://github.com/mcr431/pel [INFO] [stderr] 95b0879..7d2ed42 master -> master [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 7d2ed4202e1d718bd0dda4de85aeb3ba427e858e [INFO] checking mcr431/pel against try#89c05fd3cc6404a13e1bd71450c6132a2755fa4b for pr-69741 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmcr431%2Fpel" "/workspace/builds/worker-9/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mcr431/pel on toolchain 89c05fd3cc6404a13e1bd71450c6132a2755fa4b [INFO] running `"/workspace/cargo-home/bin/cargo" "+89c05fd3cc6404a13e1bd71450c6132a2755fa4b" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/mcr431/pel [INFO] finished tweaking git repo https://github.com/mcr431/pel [INFO] tweaked toml for git repo https://github.com/mcr431/pel written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/mcr431/pel already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+89c05fd3cc6404a13e1bd71450c6132a2755fa4b" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+89c05fd3cc6404a13e1bd71450c6132a2755fa4b" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 73ab341e146e1e3e17a7fac19ec209ccad07201bbabacffc6f1f68e529e4f394 [INFO] running `"docker" "start" "-a" "73ab341e146e1e3e17a7fac19ec209ccad07201bbabacffc6f1f68e529e4f394"` [INFO] [stderr] Compiling libc v0.2.65 [INFO] [stderr] Checking regex-syntax v0.6.15 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking aho-corasick v0.7.9 [INFO] [stderr] Checking atty v0.2.13 [INFO] [stderr] Checking clap v2.33.0 [INFO] [stderr] Checking regex v1.3.4 [INFO] [stderr] Checking pel v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: unused `#[macro_use]` import [INFO] [stderr] --> src/main.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `prelude` [INFO] [stderr] --> src/evaluator/evaluator.rs:2:13 [INFO] [stderr] | [INFO] [stderr] 2 | use super::{prelude, interpreter::Interpreter}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Address`, `ArrayInstance` [INFO] [stderr] --> src/evaluator/interpreter.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | Address, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 10 | Array, [INFO] [stderr] 11 | ArrayInstance, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Kind` [INFO] [stderr] --> src/evaluator/kind_hash_resolver.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | Kind, [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Environment`, `Item`, `Value` [INFO] [stderr] --> src/evaluator/prelude.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | Environment, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 11 | Item, [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 17 | Value [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `#[macro_use]` import [INFO] [stderr] --> src/main.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `prelude` [INFO] [stderr] --> src/evaluator/evaluator.rs:2:13 [INFO] [stderr] | [INFO] [stderr] 2 | use super::{prelude, interpreter::Interpreter}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Address`, `ArrayInstance` [INFO] [stderr] --> src/evaluator/interpreter.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | Address, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 10 | Array, [INFO] [stderr] 11 | ArrayInstance, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Kind` [INFO] [stderr] --> src/evaluator/kind_hash_resolver.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | Kind, [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Environment`, `Item`, `Value` [INFO] [stderr] --> src/evaluator/prelude.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | Environment, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 11 | Item, [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 17 | Value [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/evaluator/evaluator.rs:220:13 [INFO] [stderr] | [INFO] [stderr] 220 | _ => unimplemented!("oh no"), [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/evaluator/evaluator.rs:658:13 [INFO] [stderr] | [INFO] [stderr] 658 | k => unimplemented!("unknown kind: {:?}", k), [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/evaluator/interpreter.rs:231:17 [INFO] [stderr] | [INFO] [stderr] 231 | r => unimplemented!("unknown reference type: {:?}", r), [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/evaluator/interpreter.rs:267:17 [INFO] [stderr] | [INFO] [stderr] 267 | v => unimplemented!("unrecognized value variant: {:?}", v) [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/evaluator/interpreter.rs:1126:13 [INFO] [stderr] | [INFO] [stderr] 1126 | _ => unimplemented!("unknown value type in visit_field_access"), [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/evaluator/interpreter.rs:1147:25 [INFO] [stderr] | [INFO] [stderr] 1147 | _ => unimplemented!(), [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/evaluator/interpreter.rs:1154:13 [INFO] [stderr] | [INFO] [stderr] 1154 | _ => unimplemented!("unknown value type in visit_field_access"), [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `char_lit` [INFO] [stderr] --> src/lexer/lexer.rs:343:21 [INFO] [stderr] | [INFO] [stderr] 343 | let char_lit = self.chomp_until(SINGLE_QUOTE); [INFO] [stderr] | ^^^^^^^^ help: consider prefixing with an underscore: `_char_lit` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/parser/parser.rs:548:21 [INFO] [stderr] | [INFO] [stderr] 548 | Err(e) => break [INFO] [stderr] | ^ help: consider prefixing with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/parser/parser.rs:566:21 [INFO] [stderr] | [INFO] [stderr] 566 | Err(e) => break [INFO] [stderr] | ^ help: consider prefixing with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `id` [INFO] [stderr] --> src/parser/parser.rs:648:31 [INFO] [stderr] | [INFO] [stderr] 648 | Token::Identifier(id) => { [INFO] [stderr] | ^^ help: consider prefixing with an underscore: `_id` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `kind_table` [INFO] [stderr] --> src/evaluator/evaluator.rs:107:80 [INFO] [stderr] | [INFO] [stderr] 107 | pub fn create_function_invocation(function_invocation: FunctionInvocation, kind_table: &KindTable, heap: &mut Heap) -> Self { [INFO] [stderr] | ^^^^^^^^^^ help: consider prefixing with an underscore: `_kind_table` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `addr` [INFO] [stderr] --> src/evaluator/evaluator.rs:434:28 [INFO] [stderr] | [INFO] [stderr] 434 | pub fn free(&mut self, addr: Address) { [INFO] [stderr] | ^^^^ help: consider prefixing with an underscore: `_addr` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `kind_table` [INFO] [stderr] --> src/evaluator/evaluator.rs:664:25 [INFO] [stderr] | [INFO] [stderr] 664 | fn kind_hash(&self, kind_table: &KindTable, heap: &Heap) -> KindHash { [INFO] [stderr] | ^^^^^^^^^^ help: consider prefixing with an underscore: `_kind_table` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `heap` [INFO] [stderr] --> src/evaluator/evaluator.rs:664:49 [INFO] [stderr] | [INFO] [stderr] 664 | fn kind_hash(&self, kind_table: &KindTable, heap: &Heap) -> KindHash { [INFO] [stderr] | ^^^^ help: consider prefixing with an underscore: `_heap` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `kind_table` [INFO] [stderr] --> src/evaluator/evaluator.rs:682:25 [INFO] [stderr] | [INFO] [stderr] 682 | fn kind_hash(&self, kind_table: &KindTable, heap: &Heap) -> KindHash { [INFO] [stderr] | ^^^^^^^^^^ help: consider prefixing with an underscore: `_kind_table` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `heap` [INFO] [stderr] --> src/evaluator/evaluator.rs:682:49 [INFO] [stderr] | [INFO] [stderr] 682 | fn kind_hash(&self, kind_table: &KindTable, heap: &Heap) -> KindHash { [INFO] [stderr] | ^^^^ help: consider prefixing with an underscore: `_heap` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `kind_table` [INFO] [stderr] --> src/evaluator/evaluator.rs:700:25 [INFO] [stderr] | [INFO] [stderr] 700 | fn kind_hash(&self, kind_table: &KindTable, heap: &Heap) -> KindHash { [INFO] [stderr] | ^^^^^^^^^^ help: consider prefixing with an underscore: `_kind_table` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `heap` [INFO] [stderr] --> src/evaluator/evaluator.rs:700:49 [INFO] [stderr] | [INFO] [stderr] 700 | fn kind_hash(&self, kind_table: &KindTable, heap: &Heap) -> KindHash { [INFO] [stderr] | ^^^^ help: consider prefixing with an underscore: `_heap` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `kind_table` [INFO] [stderr] --> src/evaluator/evaluator.rs:718:25 [INFO] [stderr] | [INFO] [stderr] 718 | fn kind_hash(&self, kind_table: &KindTable, heap: &Heap) -> KindHash { [INFO] [stderr] | ^^^^^^^^^^ help: consider prefixing with an underscore: `_kind_table` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `heap` [INFO] [stderr] --> src/evaluator/evaluator.rs:718:49 [INFO] [stderr] | [INFO] [stderr] 718 | fn kind_hash(&self, kind_table: &KindTable, heap: &Heap) -> KindHash { [INFO] [stderr] | ^^^^ help: consider prefixing with an underscore: `_heap` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `table` [INFO] [stderr] --> src/evaluator/evaluator.rs:877:25 [INFO] [stderr] | [INFO] [stderr] 877 | fn kind_hash(&self, table: &KindTable, heap: &Heap) -> KindHash { [INFO] [stderr] | ^^^^^ help: consider prefixing with an underscore: `_table` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `heap` [INFO] [stderr] --> src/evaluator/evaluator.rs:877:44 [INFO] [stderr] | [INFO] [stderr] 877 | fn kind_hash(&self, table: &KindTable, heap: &Heap) -> KindHash { [INFO] [stderr] | ^^^^ help: consider prefixing with an underscore: `_heap` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n1` [INFO] [stderr] --> src/evaluator/evaluator.rs:982:15 [INFO] [stderr] | [INFO] [stderr] 982 | for ((n1, kh1), (n2, kh2)) in self.type_arguments.iter().zip(other.type_arguments.iter()) { [INFO] [stderr] | ^^ help: consider prefixing with an underscore: `_n1` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n2` [INFO] [stderr] --> src/evaluator/evaluator.rs:982:26 [INFO] [stderr] | [INFO] [stderr] 982 | for ((n1, kh1), (n2, kh2)) in self.type_arguments.iter().zip(other.type_arguments.iter()) { [INFO] [stderr] | ^^ help: consider prefixing with an underscore: `_n2` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n1` [INFO] [stderr] --> src/evaluator/evaluator.rs:988:15 [INFO] [stderr] | [INFO] [stderr] 988 | for ((n1, ty_r1), (n2, ty_r2)) in self.parameters.iter().zip(other.parameters.iter()) { [INFO] [stderr] | ^^ help: consider prefixing with an underscore: `_n1` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n2` [INFO] [stderr] --> src/evaluator/evaluator.rs:988:28 [INFO] [stderr] | [INFO] [stderr] 988 | for ((n1, ty_r1), (n2, ty_r2)) in self.parameters.iter().zip(other.parameters.iter()) { [INFO] [stderr] | ^^ help: consider prefixing with an underscore: `_n2` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `table` [INFO] [stderr] --> src/evaluator/evaluator.rs:1011:25 [INFO] [stderr] | [INFO] [stderr] 1011 | fn kind_hash(&self, table: &KindTable, heap: &Heap) -> String { [INFO] [stderr] | ^^^^^ help: consider prefixing with an underscore: `_table` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `heap` [INFO] [stderr] --> src/evaluator/evaluator.rs:1011:44 [INFO] [stderr] | [INFO] [stderr] 1011 | fn kind_hash(&self, table: &KindTable, heap: &Heap) -> String { [INFO] [stderr] | ^^^^ help: consider prefixing with an underscore: `_heap` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `hr` [INFO] [stderr] --> src/evaluator/interpreter.rs:225:42 [INFO] [stderr] | [INFO] [stderr] 225 | Reference::HeapReference(hr) => { [INFO] [stderr] | ^^ help: consider prefixing with an underscore: `_hr` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `module_chain` [INFO] [stderr] --> src/evaluator/interpreter.rs:358:36 [INFO] [stderr] | [INFO] [stderr] 358 | fn load_user_module(&mut self, module_chain: &Vec) { [INFO] [stderr] | ^^^^^^^^^^^^ help: consider prefixing with an underscore: `_module_chain` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `func_val` [INFO] [stderr] --> src/evaluator/interpreter.rs:771:25 [INFO] [stderr] | [INFO] [stderr] 771 | for (impl_name, func_val) in implementing_functions_by_name.iter() { [INFO] [stderr] | ^^^^^^^^ help: consider prefixing with an underscore: `_func_val` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `variant_decl` [INFO] [stderr] --> src/evaluator/interpreter.rs:788:45 [INFO] [stderr] | [INFO] [stderr] 788 | fn visit_variant_declaration(&mut self, variant_decl: &parse_tree::VariantDeclaration) { [INFO] [stderr] | ^^^^^^^^^^^^ help: consider prefixing with an underscore: `_variant_decl` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `name` [INFO] [stderr] --> src/evaluator/interpreter.rs:825:13 [INFO] [stderr] | [INFO] [stderr] 825 | let name = &func_decl.signature.name; [INFO] [stderr] | ^^^^ help: consider prefixing with an underscore: `_name` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `typed_var_decl` [INFO] [stderr] --> src/evaluator/interpreter.rs:911:52 [INFO] [stderr] | [INFO] [stderr] 911 | fn visit_typed_variable_declaration(&mut self, typed_var_decl: &parse_tree::TypedVariableDeclaration) { [INFO] [stderr] | ^^^^^^^^^^^^^^ help: consider prefixing with an underscore: `_typed_var_decl` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `reference` [INFO] [stderr] --> src/evaluator/interpreter.rs:956:13 [INFO] [stderr] | [INFO] [stderr] 956 | let reference = self.store_at(&var_assignment.target, value); [INFO] [stderr] | ^^^^^^^^^ help: consider prefixing with an underscore: `_reference` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `scalar_ty` [INFO] [stderr] --> src/evaluator/interpreter.rs:1005:25 [INFO] [stderr] | [INFO] [stderr] 1005 | let scalar_ty = scalar.get_ty(); [INFO] [stderr] | ^^^^^^^^^ help: consider prefixing with an underscore: `_scalar_ty` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `arr_init` [INFO] [stderr] --> src/evaluator/interpreter.rs:1025:37 [INFO] [stderr] | [INFO] [stderr] 1025 | ArrayInitialization(ref arr_init) => { [INFO] [stderr] | ^^^^^^^^ help: consider prefixing with an underscore: `_arr_init` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `match_node` [INFO] [stderr] --> src/evaluator/interpreter.rs:1086:31 [INFO] [stderr] | [INFO] [stderr] 1086 | fn visit_match(&mut self, match_node: &parse_tree::Match) { [INFO] [stderr] | ^^^^^^^^^^ help: consider prefixing with an underscore: `_match_node` [INFO] [stderr] [INFO] [stderr] warning: value assigned to `heap_ref` is never read [INFO] [stderr] --> src/evaluator/interpreter.rs:1129:17 [INFO] [stderr] | [INFO] [stderr] 1129 | let mut heap_ref = None; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `vtable` [INFO] [stderr] --> src/evaluator/interpreter.rs:1192:25 [INFO] [stderr] | [INFO] [stderr] 1192 | let vtable = self.vtables.load_vtable(*vtable_id); [INFO] [stderr] | ^^^^^^ help: consider prefixing with an underscore: `_vtable` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ei_arc` [INFO] [stderr] --> src/evaluator/interpreter.rs:1214:32 [INFO] [stderr] | [INFO] [stderr] 1214 | Item::EnumInstance(ei_arc) => { [INFO] [stderr] | ^^^^^^ help: consider prefixing with an underscore: `_ei_arc` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `func` [INFO] [stderr] --> src/evaluator/interpreter.rs:1251:62 [INFO] [stderr] | [INFO] [stderr] 1251 | ... Item::FunctionInvocation(ref func) =... [INFO] [stderr] | ^^^^ help: consider prefixing with an underscore: `_func` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `arr_acces` [INFO] [stderr] --> src/evaluator/interpreter.rs:1296:38 [INFO] [stderr] | [INFO] [stderr] 1296 | fn visit_array_access(&mut self, arr_acces: &parse_tree::ArrayAccess) { [INFO] [stderr] | ^^^^^^^^^ help: consider prefixing with an underscore: `_arr_acces` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `param_type` [INFO] [stderr] --> src/evaluator/interpreter.rs:1398:34 [INFO] [stderr] | [INFO] [stderr] 1398 | if let Some((param_name, param_type)) = sig.read().unwrap().parameters.get(0) { [INFO] [stderr] | ^^^^^^^^^^ help: consider prefixing with an underscore: `_param_type` [INFO] [stderr] [INFO] [stderr] warning: variable `maybe_func` is assigned to, but never used [INFO] [stderr] --> src/evaluator/interpreter.rs:1428:17 [INFO] [stderr] | [INFO] [stderr] 1428 | let mut maybe_func = None; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_maybe_func` instead [INFO] [stderr] [INFO] [stderr] warning: value assigned to `maybe_func` is never read [INFO] [stderr] --> src/evaluator/interpreter.rs:1432:17 [INFO] [stderr] | [INFO] [stderr] 1432 | maybe_func = Some(Arc::clone(&func_invoc)); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `type_hole_kind_hash` [INFO] [stderr] --> src/evaluator/interpreter.rs:1522:34 [INFO] [stderr] | [INFO] [stderr] 1522 | for ((ref type_name, ref type_hole_kind_hash), ref type_to_apply_ref) in zipped_type_args_with_applied_types { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: consider prefixing with an underscore: `_type_hole_kind_hash` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `o_arc` [INFO] [stderr] --> src/evaluator/interpreter.rs:1529:30 [INFO] [stderr] | [INFO] [stderr] 1529 | Kind::Object(ref o_arc) => { [INFO] [stderr] | ^^^^^ help: consider prefixing with an underscore: `_o_arc` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e_arc` [INFO] [stderr] --> src/evaluator/interpreter.rs:1540:28 [INFO] [stderr] | [INFO] [stderr] 1540 | Kind::Enum(ref e_arc) => { [INFO] [stderr] | ^^^^^ help: consider prefixing with an underscore: `_e_arc` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `fs_arc` [INFO] [stderr] --> src/evaluator/interpreter.rs:1551:41 [INFO] [stderr] | [INFO] [stderr] 1551 | Kind::FunctionSignature(ref fs_arc) => { [INFO] [stderr] | ^^^^^^ help: consider prefixing with an underscore: `_fs_arc` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/evaluator/interpreter.rs:626:13 [INFO] [stderr] | [INFO] [stderr] 626 | let mut local_env = Environment::from_parent(&self.current_env); [INFO] [stderr] | ----^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/evaluator/interpreter.rs:1374:13 [INFO] [stderr] | [INFO] [stderr] 1374 | let mut to_apply_to_item = self.heap.load(reference.address); [INFO] [stderr] | ----^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: method is never used: `lex_float_literal` [INFO] [stderr] --> src/lexer/lexer.rs:364:5 [INFO] [stderr] | [INFO] [stderr] 364 | fn lex_float_literal(&mut self) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `LexError` [INFO] [stderr] --> src/lexer/tokens.rs:76:5 [INFO] [stderr] | [INFO] [stderr] 76 | LexError(String), [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Source` [INFO] [stderr] --> src/parser/parser.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | Source(Box) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `of` [INFO] [stderr] --> src/parser/parser.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | fn of(err: ParseError) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `generic_args` [INFO] [stderr] --> src/parser/parser.rs:185:5 [INFO] [stderr] | [INFO] [stderr] 185 | fn generic_args(&mut self) -> Result, ParseError> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `functions` [INFO] [stderr] --> src/parser/parser.rs:557:5 [INFO] [stderr] | [INFO] [stderr] 557 | fn functions(&mut self) -> Result, ParseError> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `create_function_invocation` [INFO] [stderr] --> src/evaluator/evaluator.rs:107:5 [INFO] [stderr] | [INFO] [stderr] 107 | pub fn create_function_invocation(function_invocation: FunctionInvocation, kind_table: &KindTable, heap: &mut Heap) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `to_enum_instance` [INFO] [stderr] --> src/evaluator/evaluator.rs:180:5 [INFO] [stderr] | [INFO] [stderr] 180 | pub fn to_enum_instance(&self) -> Option>> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `to_module_reference` [INFO] [stderr] --> src/evaluator/evaluator.rs:194:5 [INFO] [stderr] | [INFO] [stderr] 194 | pub fn to_module_reference(&self) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `free` [INFO] [stderr] --> src/evaluator/evaluator.rs:434:5 [INFO] [stderr] | [INFO] [stderr] 434 | pub fn free(&mut self, addr: Address) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `load_object_instance` [INFO] [stderr] --> src/evaluator/evaluator.rs:456:5 [INFO] [stderr] | [INFO] [stderr] 456 | pub fn load_object_instance(&self, addr: Address) -> Option>> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `load_enum_instance` [INFO] [stderr] --> src/evaluator/evaluator.rs:463:5 [INFO] [stderr] | [INFO] [stderr] 463 | pub fn load_enum_instance(&self, addr: Address) -> Option>> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Type` [INFO] [stderr] --> src/evaluator/evaluator.rs:494:5 [INFO] [stderr] | [INFO] [stderr] 494 | Type(KindHash), // probably want this to be different. probably want a table of type equivalence [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `to_scalar_type` [INFO] [stderr] --> src/evaluator/evaluator.rs:560:5 [INFO] [stderr] | [INFO] [stderr] 560 | pub fn to_scalar_type(&self) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `to_type` [INFO] [stderr] --> src/evaluator/evaluator.rs:567:5 [INFO] [stderr] | [INFO] [stderr] 567 | pub fn to_type(&self) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `keys` [INFO] [stderr] --> src/evaluator/evaluator.rs:748:5 [INFO] [stderr] | [INFO] [stderr] 748 | pub fn keys(&self) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `new_vtable_with_id` [INFO] [stderr] --> src/evaluator/evaluator.rs:775:5 [INFO] [stderr] | [INFO] [stderr] 775 | pub fn new_vtable_with_id(&mut self, vtable: VTable, id: VTableId) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `errors` [INFO] [stderr] --> src/evaluator/interpreter.rs:81:5 [INFO] [stderr] | [INFO] [stderr] 81 | errors: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `emit_error` [INFO] [stderr] --> src/evaluator/interpreter.rs:149:5 [INFO] [stderr] | [INFO] [stderr] 149 | pub fn emit_error(&mut self, error: String) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `tokens` [INFO] [stderr] --> src/evaluator/kind_hash_resolver.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | tokens: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `type_param` [INFO] [stderr] --> src/evaluator/kind_hash_resolver.rs:266:5 [INFO] [stderr] | [INFO] [stderr] 266 | type_param: Option, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `run_code` [INFO] [stderr] --> src/tests/runner.rs:5:15 [INFO] [stderr] | [INFO] [stderr] 5 | pub(crate) fn run_code(code: String) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/evaluator/evaluator.rs:220:13 [INFO] [stderr] | [INFO] [stderr] 220 | _ => unimplemented!("oh no"), [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/evaluator/evaluator.rs:658:13 [INFO] [stderr] | [INFO] [stderr] 658 | k => unimplemented!("unknown kind: {:?}", k), [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/evaluator/interpreter.rs:231:17 [INFO] [stderr] | [INFO] [stderr] 231 | r => unimplemented!("unknown reference type: {:?}", r), [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/evaluator/interpreter.rs:267:17 [INFO] [stderr] | [INFO] [stderr] 267 | v => unimplemented!("unrecognized value variant: {:?}", v) [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/evaluator/interpreter.rs:1126:13 [INFO] [stderr] | [INFO] [stderr] 1126 | _ => unimplemented!("unknown value type in visit_field_access"), [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/evaluator/interpreter.rs:1147:25 [INFO] [stderr] | [INFO] [stderr] 1147 | _ => unimplemented!(), [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/evaluator/interpreter.rs:1154:13 [INFO] [stderr] | [INFO] [stderr] 1154 | _ => unimplemented!("unknown value type in visit_field_access"), [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `char_lit` [INFO] [stderr] --> src/lexer/lexer.rs:343:21 [INFO] [stderr] | [INFO] [stderr] 343 | let char_lit = self.chomp_until(SINGLE_QUOTE); [INFO] [stderr] | ^^^^^^^^ help: consider prefixing with an underscore: `_char_lit` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/parser/parser.rs:548:21 [INFO] [stderr] | [INFO] [stderr] 548 | Err(e) => break [INFO] [stderr] | ^ help: consider prefixing with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/parser/parser.rs:566:21 [INFO] [stderr] | [INFO] [stderr] 566 | Err(e) => break [INFO] [stderr] | ^ help: consider prefixing with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `id` [INFO] [stderr] --> src/parser/parser.rs:648:31 [INFO] [stderr] | [INFO] [stderr] 648 | Token::Identifier(id) => { [INFO] [stderr] | ^^ help: consider prefixing with an underscore: `_id` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `kind_table` [INFO] [stderr] --> src/evaluator/evaluator.rs:107:80 [INFO] [stderr] | [INFO] [stderr] 107 | pub fn create_function_invocation(function_invocation: FunctionInvocation, kind_table: &KindTable, heap: &mut Heap) -> Self { [INFO] [stderr] | ^^^^^^^^^^ help: consider prefixing with an underscore: `_kind_table` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `addr` [INFO] [stderr] --> src/evaluator/evaluator.rs:434:28 [INFO] [stderr] | [INFO] [stderr] 434 | pub fn free(&mut self, addr: Address) { [INFO] [stderr] | ^^^^ help: consider prefixing with an underscore: `_addr` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `kind_table` [INFO] [stderr] --> src/evaluator/evaluator.rs:664:25 [INFO] [stderr] | [INFO] [stderr] 664 | fn kind_hash(&self, kind_table: &KindTable, heap: &Heap) -> KindHash { [INFO] [stderr] | ^^^^^^^^^^ help: consider prefixing with an underscore: `_kind_table` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `heap` [INFO] [stderr] --> src/evaluator/evaluator.rs:664:49 [INFO] [stderr] | [INFO] [stderr] 664 | fn kind_hash(&self, kind_table: &KindTable, heap: &Heap) -> KindHash { [INFO] [stderr] | ^^^^ help: consider prefixing with an underscore: `_heap` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `kind_table` [INFO] [stderr] --> src/evaluator/evaluator.rs:682:25 [INFO] [stderr] | [INFO] [stderr] 682 | fn kind_hash(&self, kind_table: &KindTable, heap: &Heap) -> KindHash { [INFO] [stderr] | ^^^^^^^^^^ help: consider prefixing with an underscore: `_kind_table` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `heap` [INFO] [stderr] --> src/evaluator/evaluator.rs:682:49 [INFO] [stderr] | [INFO] [stderr] 682 | fn kind_hash(&self, kind_table: &KindTable, heap: &Heap) -> KindHash { [INFO] [stderr] | ^^^^ help: consider prefixing with an underscore: `_heap` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `kind_table` [INFO] [stderr] --> src/evaluator/evaluator.rs:700:25 [INFO] [stderr] | [INFO] [stderr] 700 | fn kind_hash(&self, kind_table: &KindTable, heap: &Heap) -> KindHash { [INFO] [stderr] | ^^^^^^^^^^ help: consider prefixing with an underscore: `_kind_table` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `heap` [INFO] [stderr] --> src/evaluator/evaluator.rs:700:49 [INFO] [stderr] | [INFO] [stderr] 700 | fn kind_hash(&self, kind_table: &KindTable, heap: &Heap) -> KindHash { [INFO] [stderr] | ^^^^ help: consider prefixing with an underscore: `_heap` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `kind_table` [INFO] [stderr] --> src/evaluator/evaluator.rs:718:25 [INFO] [stderr] | [INFO] [stderr] 718 | fn kind_hash(&self, kind_table: &KindTable, heap: &Heap) -> KindHash { [INFO] [stderr] | ^^^^^^^^^^ help: consider prefixing with an underscore: `_kind_table` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `heap` [INFO] [stderr] --> src/evaluator/evaluator.rs:718:49 [INFO] [stderr] | [INFO] [stderr] 718 | fn kind_hash(&self, kind_table: &KindTable, heap: &Heap) -> KindHash { [INFO] [stderr] | ^^^^ help: consider prefixing with an underscore: `_heap` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `table` [INFO] [stderr] --> src/evaluator/evaluator.rs:877:25 [INFO] [stderr] | [INFO] [stderr] 877 | fn kind_hash(&self, table: &KindTable, heap: &Heap) -> KindHash { [INFO] [stderr] | ^^^^^ help: consider prefixing with an underscore: `_table` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `heap` [INFO] [stderr] --> src/evaluator/evaluator.rs:877:44 [INFO] [stderr] | [INFO] [stderr] 877 | fn kind_hash(&self, table: &KindTable, heap: &Heap) -> KindHash { [INFO] [stderr] | ^^^^ help: consider prefixing with an underscore: `_heap` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n1` [INFO] [stderr] --> src/evaluator/evaluator.rs:982:15 [INFO] [stderr] | [INFO] [stderr] 982 | for ((n1, kh1), (n2, kh2)) in self.type_arguments.iter().zip(other.type_arguments.iter()) { [INFO] [stderr] | ^^ help: consider prefixing with an underscore: `_n1` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n2` [INFO] [stderr] --> src/evaluator/evaluator.rs:982:26 [INFO] [stderr] | [INFO] [stderr] 982 | for ((n1, kh1), (n2, kh2)) in self.type_arguments.iter().zip(other.type_arguments.iter()) { [INFO] [stderr] | ^^ help: consider prefixing with an underscore: `_n2` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n1` [INFO] [stderr] --> src/evaluator/evaluator.rs:988:15 [INFO] [stderr] | [INFO] [stderr] 988 | for ((n1, ty_r1), (n2, ty_r2)) in self.parameters.iter().zip(other.parameters.iter()) { [INFO] [stderr] | ^^ help: consider prefixing with an underscore: `_n1` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n2` [INFO] [stderr] --> src/evaluator/evaluator.rs:988:28 [INFO] [stderr] | [INFO] [stderr] 988 | for ((n1, ty_r1), (n2, ty_r2)) in self.parameters.iter().zip(other.parameters.iter()) { [INFO] [stderr] | ^^ help: consider prefixing with an underscore: `_n2` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `table` [INFO] [stderr] --> src/evaluator/evaluator.rs:1011:25 [INFO] [stderr] | [INFO] [stderr] 1011 | fn kind_hash(&self, table: &KindTable, heap: &Heap) -> String { [INFO] [stderr] | ^^^^^ help: consider prefixing with an underscore: `_table` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `heap` [INFO] [stderr] --> src/evaluator/evaluator.rs:1011:44 [INFO] [stderr] | [INFO] [stderr] 1011 | fn kind_hash(&self, table: &KindTable, heap: &Heap) -> String { [INFO] [stderr] | ^^^^ help: consider prefixing with an underscore: `_heap` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `hr` [INFO] [stderr] --> src/evaluator/interpreter.rs:225:42 [INFO] [stderr] | [INFO] [stderr] 225 | Reference::HeapReference(hr) => { [INFO] [stderr] | ^^ help: consider prefixing with an underscore: `_hr` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `module_chain` [INFO] [stderr] --> src/evaluator/interpreter.rs:358:36 [INFO] [stderr] | [INFO] [stderr] 358 | fn load_user_module(&mut self, module_chain: &Vec) { [INFO] [stderr] | ^^^^^^^^^^^^ help: consider prefixing with an underscore: `_module_chain` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `func_val` [INFO] [stderr] --> src/evaluator/interpreter.rs:771:25 [INFO] [stderr] | [INFO] [stderr] 771 | for (impl_name, func_val) in implementing_functions_by_name.iter() { [INFO] [stderr] | ^^^^^^^^ help: consider prefixing with an underscore: `_func_val` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `variant_decl` [INFO] [stderr] --> src/evaluator/interpreter.rs:788:45 [INFO] [stderr] | [INFO] [stderr] 788 | fn visit_variant_declaration(&mut self, variant_decl: &parse_tree::VariantDeclaration) { [INFO] [stderr] | ^^^^^^^^^^^^ help: consider prefixing with an underscore: `_variant_decl` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `name` [INFO] [stderr] --> src/evaluator/interpreter.rs:825:13 [INFO] [stderr] | [INFO] [stderr] 825 | let name = &func_decl.signature.name; [INFO] [stderr] | ^^^^ help: consider prefixing with an underscore: `_name` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `typed_var_decl` [INFO] [stderr] --> src/evaluator/interpreter.rs:911:52 [INFO] [stderr] | [INFO] [stderr] 911 | fn visit_typed_variable_declaration(&mut self, typed_var_decl: &parse_tree::TypedVariableDeclaration) { [INFO] [stderr] | ^^^^^^^^^^^^^^ help: consider prefixing with an underscore: `_typed_var_decl` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `reference` [INFO] [stderr] --> src/evaluator/interpreter.rs:956:13 [INFO] [stderr] | [INFO] [stderr] 956 | let reference = self.store_at(&var_assignment.target, value); [INFO] [stderr] | ^^^^^^^^^ help: consider prefixing with an underscore: `_reference` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `scalar_ty` [INFO] [stderr] --> src/evaluator/interpreter.rs:1005:25 [INFO] [stderr] | [INFO] [stderr] 1005 | let scalar_ty = scalar.get_ty(); [INFO] [stderr] | ^^^^^^^^^ help: consider prefixing with an underscore: `_scalar_ty` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `arr_init` [INFO] [stderr] --> src/evaluator/interpreter.rs:1025:37 [INFO] [stderr] | [INFO] [stderr] 1025 | ArrayInitialization(ref arr_init) => { [INFO] [stderr] | ^^^^^^^^ help: consider prefixing with an underscore: `_arr_init` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `match_node` [INFO] [stderr] --> src/evaluator/interpreter.rs:1086:31 [INFO] [stderr] | [INFO] [stderr] 1086 | fn visit_match(&mut self, match_node: &parse_tree::Match) { [INFO] [stderr] | ^^^^^^^^^^ help: consider prefixing with an underscore: `_match_node` [INFO] [stderr] [INFO] [stderr] warning: value assigned to `heap_ref` is never read [INFO] [stderr] --> src/evaluator/interpreter.rs:1129:17 [INFO] [stderr] | [INFO] [stderr] 1129 | let mut heap_ref = None; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `vtable` [INFO] [stderr] --> src/evaluator/interpreter.rs:1192:25 [INFO] [stderr] | [INFO] [stderr] 1192 | let vtable = self.vtables.load_vtable(*vtable_id); [INFO] [stderr] | ^^^^^^ help: consider prefixing with an underscore: `_vtable` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ei_arc` [INFO] [stderr] --> src/evaluator/interpreter.rs:1214:32 [INFO] [stderr] | [INFO] [stderr] 1214 | Item::EnumInstance(ei_arc) => { [INFO] [stderr] | ^^^^^^ help: consider prefixing with an underscore: `_ei_arc` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `func` [INFO] [stderr] --> src/evaluator/interpreter.rs:1251:62 [INFO] [stderr] | [INFO] [stderr] 1251 | ... Item::FunctionInvocation(ref func) =... [INFO] [stderr] | ^^^^ help: consider prefixing with an underscore: `_func` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `arr_acces` [INFO] [stderr] --> src/evaluator/interpreter.rs:1296:38 [INFO] [stderr] | [INFO] [stderr] 1296 | fn visit_array_access(&mut self, arr_acces: &parse_tree::ArrayAccess) { [INFO] [stderr] | ^^^^^^^^^ help: consider prefixing with an underscore: `_arr_acces` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `param_type` [INFO] [stderr] --> src/evaluator/interpreter.rs:1398:34 [INFO] [stderr] | [INFO] [stderr] 1398 | if let Some((param_name, param_type)) = sig.read().unwrap().parameters.get(0) { [INFO] [stderr] | ^^^^^^^^^^ help: consider prefixing with an underscore: `_param_type` [INFO] [stderr] [INFO] [stderr] warning: variable `maybe_func` is assigned to, but never used [INFO] [stderr] --> src/evaluator/interpreter.rs:1428:17 [INFO] [stderr] | [INFO] [stderr] 1428 | let mut maybe_func = None; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_maybe_func` instead [INFO] [stderr] [INFO] [stderr] warning: value assigned to `maybe_func` is never read [INFO] [stderr] --> src/evaluator/interpreter.rs:1432:17 [INFO] [stderr] | [INFO] [stderr] 1432 | maybe_func = Some(Arc::clone(&func_invoc)); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `type_hole_kind_hash` [INFO] [stderr] --> src/evaluator/interpreter.rs:1522:34 [INFO] [stderr] | [INFO] [stderr] 1522 | for ((ref type_name, ref type_hole_kind_hash), ref type_to_apply_ref) in zipped_type_args_with_applied_types { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: consider prefixing with an underscore: `_type_hole_kind_hash` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `o_arc` [INFO] [stderr] --> src/evaluator/interpreter.rs:1529:30 [INFO] [stderr] | [INFO] [stderr] 1529 | Kind::Object(ref o_arc) => { [INFO] [stderr] | ^^^^^ help: consider prefixing with an underscore: `_o_arc` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e_arc` [INFO] [stderr] --> src/evaluator/interpreter.rs:1540:28 [INFO] [stderr] | [INFO] [stderr] 1540 | Kind::Enum(ref e_arc) => { [INFO] [stderr] | ^^^^^ help: consider prefixing with an underscore: `_e_arc` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `fs_arc` [INFO] [stderr] --> src/evaluator/interpreter.rs:1551:41 [INFO] [stderr] | [INFO] [stderr] 1551 | Kind::FunctionSignature(ref fs_arc) => { [INFO] [stderr] | ^^^^^^ help: consider prefixing with an underscore: `_fs_arc` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/evaluator/interpreter.rs:626:13 [INFO] [stderr] | [INFO] [stderr] 626 | let mut local_env = Environment::from_parent(&self.current_env); [INFO] [stderr] | ----^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/evaluator/interpreter.rs:1374:13 [INFO] [stderr] | [INFO] [stderr] 1374 | let mut to_apply_to_item = self.heap.load(reference.address); [INFO] [stderr] | ----^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: method is never used: `lex_float_literal` [INFO] [stderr] --> src/lexer/lexer.rs:364:5 [INFO] [stderr] | [INFO] [stderr] 364 | fn lex_float_literal(&mut self) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `LexError` [INFO] [stderr] --> src/lexer/tokens.rs:76:5 [INFO] [stderr] | [INFO] [stderr] 76 | LexError(String), [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Source` [INFO] [stderr] --> src/parser/parser.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | Source(Box) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `of` [INFO] [stderr] --> src/parser/parser.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | fn of(err: ParseError) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `generic_args` [INFO] [stderr] --> src/parser/parser.rs:185:5 [INFO] [stderr] | [INFO] [stderr] 185 | fn generic_args(&mut self) -> Result, ParseError> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `functions` [INFO] [stderr] --> src/parser/parser.rs:557:5 [INFO] [stderr] | [INFO] [stderr] 557 | fn functions(&mut self) -> Result, ParseError> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `create_function_invocation` [INFO] [stderr] --> src/evaluator/evaluator.rs:107:5 [INFO] [stderr] | [INFO] [stderr] 107 | pub fn create_function_invocation(function_invocation: FunctionInvocation, kind_table: &KindTable, heap: &mut Heap) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `to_enum_instance` [INFO] [stderr] --> src/evaluator/evaluator.rs:180:5 [INFO] [stderr] | [INFO] [stderr] 180 | pub fn to_enum_instance(&self) -> Option>> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `to_module_reference` [INFO] [stderr] --> src/evaluator/evaluator.rs:194:5 [INFO] [stderr] | [INFO] [stderr] 194 | pub fn to_module_reference(&self) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `free` [INFO] [stderr] --> src/evaluator/evaluator.rs:434:5 [INFO] [stderr] | [INFO] [stderr] 434 | pub fn free(&mut self, addr: Address) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `load_object_instance` [INFO] [stderr] --> src/evaluator/evaluator.rs:456:5 [INFO] [stderr] | [INFO] [stderr] 456 | pub fn load_object_instance(&self, addr: Address) -> Option>> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `load_enum_instance` [INFO] [stderr] --> src/evaluator/evaluator.rs:463:5 [INFO] [stderr] | [INFO] [stderr] 463 | pub fn load_enum_instance(&self, addr: Address) -> Option>> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Type` [INFO] [stderr] --> src/evaluator/evaluator.rs:494:5 [INFO] [stderr] | [INFO] [stderr] 494 | Type(KindHash), // probably want this to be different. probably want a table of type equivalence [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `to_scalar_type` [INFO] [stderr] --> src/evaluator/evaluator.rs:560:5 [INFO] [stderr] | [INFO] [stderr] 560 | pub fn to_scalar_type(&self) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `to_type` [INFO] [stderr] --> src/evaluator/evaluator.rs:567:5 [INFO] [stderr] | [INFO] [stderr] 567 | pub fn to_type(&self) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `keys` [INFO] [stderr] --> src/evaluator/evaluator.rs:748:5 [INFO] [stderr] | [INFO] [stderr] 748 | pub fn keys(&self) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `new_vtable_with_id` [INFO] [stderr] --> src/evaluator/evaluator.rs:775:5 [INFO] [stderr] | [INFO] [stderr] 775 | pub fn new_vtable_with_id(&mut self, vtable: VTable, id: VTableId) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `errors` [INFO] [stderr] --> src/evaluator/interpreter.rs:81:5 [INFO] [stderr] | [INFO] [stderr] 81 | errors: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `emit_error` [INFO] [stderr] --> src/evaluator/interpreter.rs:149:5 [INFO] [stderr] | [INFO] [stderr] 149 | pub fn emit_error(&mut self, error: String) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `tokens` [INFO] [stderr] --> src/evaluator/kind_hash_resolver.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | tokens: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `type_param` [INFO] [stderr] --> src/evaluator/kind_hash_resolver.rs:266:5 [INFO] [stderr] | [INFO] [stderr] 266 | type_param: Option, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `function_declaration_multiple_generics` [INFO] [stderr] --> src/tests/functions.rs:60:8 [INFO] [stderr] | [INFO] [stderr] 60 | fn function_declaration_multiple_generics() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `function_call_multiple_generics` [INFO] [stderr] --> src/tests/functions.rs:125:8 [INFO] [stderr] | [INFO] [stderr] 125 | fn function_call_multiple_generics() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `obj_creation` [INFO] [stderr] --> src/tests/objects.rs:43:8 [INFO] [stderr] | [INFO] [stderr] 43 | fn obj_creation() { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `obj_creation_generic` [INFO] [stderr] --> src/tests/objects.rs:66:8 [INFO] [stderr] | [INFO] [stderr] 66 | fn obj_creation_generic() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `obj_methods` [INFO] [stderr] --> src/tests/objects.rs:91:8 [INFO] [stderr] | [INFO] [stderr] 91 | fn obj_methods() { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `obj_field_access` [INFO] [stderr] --> src/tests/objects.rs:123:8 [INFO] [stderr] | [INFO] [stderr] 123 | fn obj_field_access() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `var_assignment` [INFO] [stderr] --> src/tests/var_assignment.rs:6:8 [INFO] [stderr] | [INFO] [stderr] 6 | fn var_assignment() { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `var_assignment_assertion` [INFO] [stderr] --> src/tests/var_assignment.rs:17:8 [INFO] [stderr] | [INFO] [stderr] 17 | fn var_assignment_assertion() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `var_assignment_expression_assertion` [INFO] [stderr] --> src/tests/var_assignment.rs:31:8 [INFO] [stderr] | [INFO] [stderr] 31 | fn var_assignment_expression_assertion() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: module `Expressions` should have a snake case name [INFO] [stderr] --> src/tests/expressions.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | mod Expressions { [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `expressions` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: module `FunctionTests` should have a snake case name [INFO] [stderr] --> src/tests/functions.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | mod FunctionTests { [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `function_tests` [INFO] [stderr] [INFO] [stderr] warning: module `Objects` should have a snake case name [INFO] [stderr] --> src/tests/objects.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | mod Objects { [INFO] [stderr] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `objects` [INFO] [stderr] [INFO] [stderr] warning: module `VarAssignmentTests` should have a snake case name [INFO] [stderr] --> src/tests/var_assignment.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | mod VarAssignmentTests { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `var_assignment_tests` [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 16.28s [INFO] running `"docker" "inspect" "73ab341e146e1e3e17a7fac19ec209ccad07201bbabacffc6f1f68e529e4f394"` [INFO] running `"docker" "rm" "-f" "73ab341e146e1e3e17a7fac19ec209ccad07201bbabacffc6f1f68e529e4f394"` [INFO] [stdout] 73ab341e146e1e3e17a7fac19ec209ccad07201bbabacffc6f1f68e529e4f394