[INFO] cloning repository https://github.com/akitaSummer/akt-lvrjs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/akitaSummer/akt-lvrjs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FakitaSummer%2Fakt-lvrjs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FakitaSummer%2Fakt-lvrjs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1a4c15c511e0c38c7f78afb459356eaf924a5e17 [INFO] testing akitaSummer/akt-lvrjs against beta-2025-01-12 for beta-1.85-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FakitaSummer%2Fakt-lvrjs" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/akitaSummer/akt-lvrjs on toolchain beta-2025-01-12 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-01-12" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/akitaSummer/akt-lvrjs [INFO] finished tweaking git repo https://github.com/akitaSummer/akt-lvrjs [INFO] tweaked toml for git repo https://github.com/akitaSummer/akt-lvrjs written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/akitaSummer/akt-lvrjs 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" "+beta-2025-01-12" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded unic-ucd-case v0.9.0 [INFO] [stderr] Downloaded unic-ucd-hangul v0.9.0 [INFO] [stderr] Downloaded unic-ucd-block v0.9.0 [INFO] [stderr] Downloaded unic-ucd-name_aliases v0.9.0 [INFO] [stderr] Downloaded unic-ucd-age v0.9.0 [INFO] [stderr] Downloaded unic-ucd-category v0.9.0 [INFO] [stderr] Downloaded unic-ucd-common v0.9.0 [INFO] [stderr] Downloaded unic-ucd v0.9.0 [INFO] [stderr] Downloaded unic-ucd-normal v0.9.0 [INFO] [stderr] Downloaded unic-ucd-name v0.9.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-01-12" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 547c9e6b04559341142a4cc901dd2e19fd4584524e1b87ffbf5dc9192b90b32b [INFO] running `Command { std: "docker" "start" "-a" "547c9e6b04559341142a4cc901dd2e19fd4584524e1b87ffbf5dc9192b90b32b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "547c9e6b04559341142a4cc901dd2e19fd4584524e1b87ffbf5dc9192b90b32b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "547c9e6b04559341142a4cc901dd2e19fd4584524e1b87ffbf5dc9192b90b32b", kill_on_drop: false }` [INFO] [stdout] 547c9e6b04559341142a4cc901dd2e19fd4584524e1b87ffbf5dc9192b90b32b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-01-12" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6b0c8d5f4a7c6acfda3117757f312dd41da273e331b242c3816b8102cb99a1a0 [INFO] running `Command { std: "docker" "start" "-a" "6b0c8d5f4a7c6acfda3117757f312dd41da273e331b242c3816b8102cb99a1a0", kill_on_drop: false }` [INFO] [stderr] Compiling unic-common v0.9.0 [INFO] [stderr] Compiling unic-char-range v0.9.0 [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling serde v1.0.190 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling matches v0.1.10 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling unic-ucd-version v0.9.0 [INFO] [stderr] Compiling unic-char-property v0.9.0 [INFO] [stderr] Compiling unic-ucd-hangul v0.9.0 [INFO] [stderr] Compiling ryu v1.0.15 [INFO] [stderr] Compiling unic-ucd-category v0.9.0 [INFO] [stderr] Compiling unic-ucd-age v0.9.0 [INFO] [stderr] Compiling unic-ucd-name v0.9.0 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Compiling unic-ucd-block v0.9.0 [INFO] [stderr] Compiling unic-ucd-normal v0.9.0 [INFO] [stderr] Compiling unic-ucd-name_aliases v0.9.0 [INFO] [stderr] Compiling unic-ucd-segment v0.9.0 [INFO] [stderr] Compiling unic-ucd-ident v0.9.0 [INFO] [stderr] Compiling unic-ucd-common v0.9.0 [INFO] [stderr] Compiling unic-ucd-case v0.9.0 [INFO] [stderr] Compiling unic-ucd-bidi v0.9.0 [INFO] [stderr] Compiling linked_hash_set v0.1.4 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling syn v2.0.38 [INFO] [stderr] Compiling serde_derive v1.0.190 [INFO] [stderr] Compiling serde_yaml v0.8.26 [INFO] [stderr] Compiling unic-ucd v0.9.0 [INFO] [stderr] Compiling akt-lvrjs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::vm::obj::*` [INFO] [stdout] --> src/lib/vm/exec.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::vm::obj::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/lib/vm/exec.rs:4:33 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/lib/vm/exec.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::eq` [INFO] [stdout] --> src/lib/vm/obj.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::ptr::eq; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/lib/asm/codegen.rs:253:27 [INFO] [stdout] | [INFO] [stdout] 253 | fn get_sub(&mut self, idx: usize) -> &'static FnState { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lib/asm/codegen.rs:581:30 [INFO] [stdout] | [INFO] [stdout] 581 | fn empty_stmt(&mut self, stmt: &EmptyStmt) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lib/asm/codegen.rs:672:31 [INFO] [stdout] | [INFO] [stdout] 672 | fn for_in_stmt(&mut self, stmt: &ForInStmt) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lib/asm/codegen.rs:733:29 [INFO] [stdout] | [INFO] [stdout] 733 | fn cont_stmt(&mut self, stmt: &ContStmt) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lib/asm/codegen.rs:744:30 [INFO] [stdout] | [INFO] [stdout] 744 | fn break_stmt(&mut self, stmt: &BreakStmt) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lib/asm/codegen.rs:774:29 [INFO] [stdout] | [INFO] [stdout] 774 | fn with_stmt(&mut self, stmt: &WithStmt) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lib/asm/codegen.rs:778:31 [INFO] [stdout] | [INFO] [stdout] 778 | fn switch_stmt(&mut self, stmt: &SwitchStmt) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lib/asm/codegen.rs:782:30 [INFO] [stdout] | [INFO] [stdout] 782 | fn throw_stmt(&mut self, stmt: &ThrowStmt) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lib/asm/codegen.rs:786:28 [INFO] [stdout] | [INFO] [stdout] 786 | fn try_stmt(&mut self, stmt: &TryStmt) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lib/asm/codegen.rs:790:30 [INFO] [stdout] | [INFO] [stdout] 790 | fn debug_stmt(&mut self, stmt: &DebugStmt) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs_reg` [INFO] [stdout] --> src/lib/asm/codegen.rs:1112:21 [INFO] [stdout] | [INFO] [stdout] 1112 | let lhs_reg = test_set.b(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lhs_reg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/lib/asm/codegen.rs:1287:29 [INFO] [stdout] | [INFO] [stdout] 1287 | fn this_expr(&mut self, expr: &ThisExprData) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/lib/asm/codegen.rs:1445:31 [INFO] [stdout] | [INFO] [stdout] 1445 | fn regexp_expr(&mut self, expr: &RegExpData) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/lib/asm/codegen.rs:1449:29 [INFO] [stdout] | [INFO] [stdout] 1449 | fn null_expr(&mut self, expr: &NullData) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/lib/asm/codegen.rs:1466:30 [INFO] [stdout] | [INFO] [stdout] 1466 | fn undef_expr(&mut self, expr: &UndefData) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lib/asm/symtab.rs:196:30 [INFO] [stdout] | [INFO] [stdout] 196 | fn throw_stmt(&mut self, stmt: &ThrowStmt) -> Result<(), ()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lib/asm/symtab.rs:211:30 [INFO] [stdout] | [INFO] [stdout] 211 | fn debug_stmt(&mut self, stmt: &DebugStmt) -> Result<(), ()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `uv` [INFO] [stdout] --> src/lib/vm/exec.rs:313:17 [INFO] [stdout] | [INFO] [stdout] 313 | for (i, uv) in &ci.open_upvals { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_uv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rc` [INFO] [stdout] --> src/lib/vm/exec.rs:348:21 [INFO] [stdout] | [INFO] [stdout] 348 | let rc = i.c(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_rc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/lib/vm/exec.rs:456:21 [INFO] [stdout] | [INFO] [stdout] 456 | let b = self.get_stack_item(base + i.b()); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ptr` [INFO] [stdout] --> src/lib/vm/gc.rs:93:19 [INFO] [stdout] | [INFO] [stdout] 93 | fn default_deinit(ptr: JsObjPtr) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ptr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gc` [INFO] [stdout] --> src/lib/vm/obj.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 194 | let gc = as_gc(as_obj(a).gc()); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_gc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_sub` is never used [INFO] [stdout] --> src/lib/asm/codegen.rs:253:8 [INFO] [stdout] | [INFO] [stdout] 58 | impl FnState { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 253 | fn get_sub(&mut self, idx: usize) -> &'static FnState { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `msg` is never read [INFO] [stdout] --> src/lib/asm/codegen.rs:326:5 [INFO] [stdout] | [INFO] [stdout] 325 | pub struct CodegenError { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 326 | msg: String, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_root_scope` and `has_binding` are never used [INFO] [stdout] --> src/lib/asm/codegen.rs:406:8 [INFO] [stdout] | [INFO] [stdout] 344 | impl Codegen { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 406 | fn is_root_scope(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 410 | fn has_binding(&self, n: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_set_global_inst` is never used [INFO] [stdout] --> src/lib/asm/codegen.rs:468:4 [INFO] [stdout] | [INFO] [stdout] 468 | fn new_set_global_inst(fs: &mut FnState, field_name: &str, val_reg: u32) -> Inst { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_return` is never used [INFO] [stdout] --> src/lib/vm/exec.rs:265:8 [INFO] [stdout] | [INFO] [stdout] 125 | impl Vm { [INFO] [stdout] | ------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 265 | fn set_return(&mut self, ret: JsObjPtr) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INIT_GC_DATA_ONCE` is never used [INFO] [stdout] --> src/lib/vm/gc.rs:366:8 [INFO] [stdout] | [INFO] [stdout] 366 | static INIT_GC_DATA_ONCE: Once = Once::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/asm/chunk.rs:428:14 [INFO] [stdout] | [INFO] [stdout] 428 | unsafe { OPCODE_NAME.as_ref().unwrap().get(op).unwrap() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/asm/chunk.rs:432:14 [INFO] [stdout] | [INFO] [stdout] 432 | unsafe { OPCODE_MODE.as_ref().unwrap().get(op).unwrap() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/asm/codegen.rs:1545:14 [INFO] [stdout] | [INFO] [stdout] 1545 | unsafe { SYMBOL_OPCODE_MAP.as_ref().unwrap().get(&s) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:118:14 [INFO] [stdout] | [INFO] [stdout] 118 | unsafe { KEYWORDS_SET.as_ref().unwrap().contains(s) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:121:14 [INFO] [stdout] | [INFO] [stdout] 121 | unsafe { KEYWORDS_KEY_NAME.as_ref().unwrap().get(v).unwrap() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | / KEYWORDS_NAME_KEY [INFO] [stdout] 126 | | .as_ref() [INFO] [stdout] | |_____________________^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:139:18 [INFO] [stdout] | [INFO] [stdout] 139 | unsafe { KEYWORDS_BEFORE_EXPR_SET.as_ref().unwrap().contains(self) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:181:14 [INFO] [stdout] | [INFO] [stdout] 181 | unsafe { CTX_KEYWORD_SET.as_ref().unwrap().contains(s) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:184:14 [INFO] [stdout] | [INFO] [stdout] 184 | unsafe { CTX_KEYWORD_KEY_NAME.as_ref().unwrap().get(v).unwrap() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:188:9 [INFO] [stdout] | [INFO] [stdout] 188 | / CTX_KEYWORD_NAME_KEY [INFO] [stdout] 189 | | .as_ref() [INFO] [stdout] | |_____________________^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:202:18 [INFO] [stdout] | [INFO] [stdout] 202 | unsafe { CTX_KEYWORD_BEFORE_EXPR_SET.as_ref().unwrap().contains(self) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:345:14 [INFO] [stdout] | [INFO] [stdout] 345 | unsafe { SYMBOLS_SET.as_ref().unwrap().contains(s) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:348:14 [INFO] [stdout] | [INFO] [stdout] 348 | unsafe { SYMBOLS_KEY_NAME.as_ref().unwrap().get(v).unwrap() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:352:9 [INFO] [stdout] | [INFO] [stdout] 352 | / SYMBOLS_KEY_PRECEDENCE [INFO] [stdout] 353 | | .as_ref() [INFO] [stdout] | |_____________________^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:362:9 [INFO] [stdout] | [INFO] [stdout] 362 | / SYMBOLS_NAME_KEY [INFO] [stdout] 363 | | .as_ref() [INFO] [stdout] | |_____________________^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:376:18 [INFO] [stdout] | [INFO] [stdout] 376 | unsafe { SYMBOLS_BEFORE_EXPR_SET.as_ref().unwrap().contains(self) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib/vm/exec.rs:602:21 [INFO] [stdout] | [INFO] [stdout] 602 | self.exec(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 602 | let _ = self.exec(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib/vm/exec.rs:652:17 [INFO] [stdout] | [INFO] [stdout] 652 | self.exec(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 652 | let _ = self.exec(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `must_use` that must be used [INFO] [stdout] --> src/main.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | format!("unable to read file: {:?}", e); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 55.11s [INFO] running `Command { std: "docker" "inspect" "6b0c8d5f4a7c6acfda3117757f312dd41da273e331b242c3816b8102cb99a1a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6b0c8d5f4a7c6acfda3117757f312dd41da273e331b242c3816b8102cb99a1a0", kill_on_drop: false }` [INFO] [stdout] 6b0c8d5f4a7c6acfda3117757f312dd41da273e331b242c3816b8102cb99a1a0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-01-12" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f2c503cb0bae1fc8572bdaa5236fbecfecdc015ab3a09c7d87e1167ede7eccd2 [INFO] running `Command { std: "docker" "start" "-a" "f2c503cb0bae1fc8572bdaa5236fbecfecdc015ab3a09c7d87e1167ede7eccd2", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `crate::vm::obj::*` [INFO] [stdout] --> src/lib/vm/exec.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::vm::obj::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/lib/vm/exec.rs:4:33 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/lib/vm/exec.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::eq` [INFO] [stdout] --> src/lib/vm/obj.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::ptr::eq; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/lib/asm/codegen.rs:253:27 [INFO] [stdout] | [INFO] [stdout] 253 | fn get_sub(&mut self, idx: usize) -> &'static FnState { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling akt-lvrjs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lib/asm/codegen.rs:581:30 [INFO] [stdout] | [INFO] [stdout] 581 | fn empty_stmt(&mut self, stmt: &EmptyStmt) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lib/asm/codegen.rs:672:31 [INFO] [stdout] | [INFO] [stdout] 672 | fn for_in_stmt(&mut self, stmt: &ForInStmt) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lib/asm/codegen.rs:733:29 [INFO] [stdout] | [INFO] [stdout] 733 | fn cont_stmt(&mut self, stmt: &ContStmt) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lib/asm/codegen.rs:744:30 [INFO] [stdout] | [INFO] [stdout] 744 | fn break_stmt(&mut self, stmt: &BreakStmt) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lib/asm/codegen.rs:774:29 [INFO] [stdout] | [INFO] [stdout] 774 | fn with_stmt(&mut self, stmt: &WithStmt) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lib/asm/codegen.rs:778:31 [INFO] [stdout] | [INFO] [stdout] 778 | fn switch_stmt(&mut self, stmt: &SwitchStmt) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lib/asm/codegen.rs:782:30 [INFO] [stdout] | [INFO] [stdout] 782 | fn throw_stmt(&mut self, stmt: &ThrowStmt) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lib/asm/codegen.rs:786:28 [INFO] [stdout] | [INFO] [stdout] 786 | fn try_stmt(&mut self, stmt: &TryStmt) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lib/asm/codegen.rs:790:30 [INFO] [stdout] | [INFO] [stdout] 790 | fn debug_stmt(&mut self, stmt: &DebugStmt) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs_reg` [INFO] [stdout] --> src/lib/asm/codegen.rs:1112:21 [INFO] [stdout] | [INFO] [stdout] 1112 | let lhs_reg = test_set.b(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lhs_reg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/lib/asm/codegen.rs:1287:29 [INFO] [stdout] | [INFO] [stdout] 1287 | fn this_expr(&mut self, expr: &ThisExprData) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/lib/asm/codegen.rs:1445:31 [INFO] [stdout] | [INFO] [stdout] 1445 | fn regexp_expr(&mut self, expr: &RegExpData) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/lib/asm/codegen.rs:1449:29 [INFO] [stdout] | [INFO] [stdout] 1449 | fn null_expr(&mut self, expr: &NullData) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/lib/asm/codegen.rs:1466:30 [INFO] [stdout] | [INFO] [stdout] 1466 | fn undef_expr(&mut self, expr: &UndefData) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lib/asm/symtab.rs:196:30 [INFO] [stdout] | [INFO] [stdout] 196 | fn throw_stmt(&mut self, stmt: &ThrowStmt) -> Result<(), ()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lib/asm/symtab.rs:211:30 [INFO] [stdout] | [INFO] [stdout] 211 | fn debug_stmt(&mut self, stmt: &DebugStmt) -> Result<(), ()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `uv` [INFO] [stdout] --> src/lib/vm/exec.rs:313:17 [INFO] [stdout] | [INFO] [stdout] 313 | for (i, uv) in &ci.open_upvals { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_uv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rc` [INFO] [stdout] --> src/lib/vm/exec.rs:348:21 [INFO] [stdout] | [INFO] [stdout] 348 | let rc = i.c(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_rc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/lib/vm/exec.rs:456:21 [INFO] [stdout] | [INFO] [stdout] 456 | let b = self.get_stack_item(base + i.b()); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ptr` [INFO] [stdout] --> src/lib/vm/gc.rs:93:19 [INFO] [stdout] | [INFO] [stdout] 93 | fn default_deinit(ptr: JsObjPtr) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ptr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gc` [INFO] [stdout] --> src/lib/vm/obj.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 194 | let gc = as_gc(as_obj(a).gc()); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_gc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_sub` is never used [INFO] [stdout] --> src/lib/asm/codegen.rs:253:8 [INFO] [stdout] | [INFO] [stdout] 58 | impl FnState { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 253 | fn get_sub(&mut self, idx: usize) -> &'static FnState { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `msg` is never read [INFO] [stdout] --> src/lib/asm/codegen.rs:326:5 [INFO] [stdout] | [INFO] [stdout] 325 | pub struct CodegenError { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 326 | msg: String, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_root_scope` and `has_binding` are never used [INFO] [stdout] --> src/lib/asm/codegen.rs:406:8 [INFO] [stdout] | [INFO] [stdout] 344 | impl Codegen { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 406 | fn is_root_scope(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 410 | fn has_binding(&self, n: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_set_global_inst` is never used [INFO] [stdout] --> src/lib/asm/codegen.rs:468:4 [INFO] [stdout] | [INFO] [stdout] 468 | fn new_set_global_inst(fs: &mut FnState, field_name: &str, val_reg: u32) -> Inst { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_return` is never used [INFO] [stdout] --> src/lib/vm/exec.rs:265:8 [INFO] [stdout] | [INFO] [stdout] 125 | impl Vm { [INFO] [stdout] | ------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 265 | fn set_return(&mut self, ret: JsObjPtr) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INIT_GC_DATA_ONCE` is never used [INFO] [stdout] --> src/lib/vm/gc.rs:366:8 [INFO] [stdout] | [INFO] [stdout] 366 | static INIT_GC_DATA_ONCE: Once = Once::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/asm/chunk.rs:428:14 [INFO] [stdout] | [INFO] [stdout] 428 | unsafe { OPCODE_NAME.as_ref().unwrap().get(op).unwrap() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/asm/chunk.rs:432:14 [INFO] [stdout] | [INFO] [stdout] 432 | unsafe { OPCODE_MODE.as_ref().unwrap().get(op).unwrap() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/asm/codegen.rs:1545:14 [INFO] [stdout] | [INFO] [stdout] 1545 | unsafe { SYMBOL_OPCODE_MAP.as_ref().unwrap().get(&s) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:118:14 [INFO] [stdout] | [INFO] [stdout] 118 | unsafe { KEYWORDS_SET.as_ref().unwrap().contains(s) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:121:14 [INFO] [stdout] | [INFO] [stdout] 121 | unsafe { KEYWORDS_KEY_NAME.as_ref().unwrap().get(v).unwrap() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | / KEYWORDS_NAME_KEY [INFO] [stdout] 126 | | .as_ref() [INFO] [stdout] | |_____________________^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:139:18 [INFO] [stdout] | [INFO] [stdout] 139 | unsafe { KEYWORDS_BEFORE_EXPR_SET.as_ref().unwrap().contains(self) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:181:14 [INFO] [stdout] | [INFO] [stdout] 181 | unsafe { CTX_KEYWORD_SET.as_ref().unwrap().contains(s) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:184:14 [INFO] [stdout] | [INFO] [stdout] 184 | unsafe { CTX_KEYWORD_KEY_NAME.as_ref().unwrap().get(v).unwrap() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:188:9 [INFO] [stdout] | [INFO] [stdout] 188 | / CTX_KEYWORD_NAME_KEY [INFO] [stdout] 189 | | .as_ref() [INFO] [stdout] | |_____________________^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:202:18 [INFO] [stdout] | [INFO] [stdout] 202 | unsafe { CTX_KEYWORD_BEFORE_EXPR_SET.as_ref().unwrap().contains(self) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:345:14 [INFO] [stdout] | [INFO] [stdout] 345 | unsafe { SYMBOLS_SET.as_ref().unwrap().contains(s) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:348:14 [INFO] [stdout] | [INFO] [stdout] 348 | unsafe { SYMBOLS_KEY_NAME.as_ref().unwrap().get(v).unwrap() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:352:9 [INFO] [stdout] | [INFO] [stdout] 352 | / SYMBOLS_KEY_PRECEDENCE [INFO] [stdout] 353 | | .as_ref() [INFO] [stdout] | |_____________________^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:362:9 [INFO] [stdout] | [INFO] [stdout] 362 | / SYMBOLS_NAME_KEY [INFO] [stdout] 363 | | .as_ref() [INFO] [stdout] | |_____________________^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:376:18 [INFO] [stdout] | [INFO] [stdout] 376 | unsafe { SYMBOLS_BEFORE_EXPR_SET.as_ref().unwrap().contains(self) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib/vm/exec.rs:602:21 [INFO] [stdout] | [INFO] [stdout] 602 | self.exec(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 602 | let _ = self.exec(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib/vm/exec.rs:652:17 [INFO] [stdout] | [INFO] [stdout] 652 | self.exec(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 652 | let _ = self.exec(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `must_use` that must be used [INFO] [stdout] --> src/main.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | format!("unable to read file: {:?}", e); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::vm::obj::*` [INFO] [stdout] --> src/lib/vm/exec.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::vm::obj::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/lib/vm/exec.rs:4:33 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/lib/vm/exec.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::eq` [INFO] [stdout] --> src/lib/vm/obj.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::ptr::eq; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/lib/asm/codegen.rs:253:27 [INFO] [stdout] | [INFO] [stdout] 253 | fn get_sub(&mut self, idx: usize) -> &'static FnState { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lib/asm/codegen.rs:581:30 [INFO] [stdout] | [INFO] [stdout] 581 | fn empty_stmt(&mut self, stmt: &EmptyStmt) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lib/asm/codegen.rs:672:31 [INFO] [stdout] | [INFO] [stdout] 672 | fn for_in_stmt(&mut self, stmt: &ForInStmt) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lib/asm/codegen.rs:733:29 [INFO] [stdout] | [INFO] [stdout] 733 | fn cont_stmt(&mut self, stmt: &ContStmt) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lib/asm/codegen.rs:744:30 [INFO] [stdout] | [INFO] [stdout] 744 | fn break_stmt(&mut self, stmt: &BreakStmt) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lib/asm/codegen.rs:774:29 [INFO] [stdout] | [INFO] [stdout] 774 | fn with_stmt(&mut self, stmt: &WithStmt) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lib/asm/codegen.rs:778:31 [INFO] [stdout] | [INFO] [stdout] 778 | fn switch_stmt(&mut self, stmt: &SwitchStmt) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lib/asm/codegen.rs:782:30 [INFO] [stdout] | [INFO] [stdout] 782 | fn throw_stmt(&mut self, stmt: &ThrowStmt) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lib/asm/codegen.rs:786:28 [INFO] [stdout] | [INFO] [stdout] 786 | fn try_stmt(&mut self, stmt: &TryStmt) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lib/asm/codegen.rs:790:30 [INFO] [stdout] | [INFO] [stdout] 790 | fn debug_stmt(&mut self, stmt: &DebugStmt) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs_reg` [INFO] [stdout] --> src/lib/asm/codegen.rs:1112:21 [INFO] [stdout] | [INFO] [stdout] 1112 | let lhs_reg = test_set.b(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lhs_reg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/lib/asm/codegen.rs:1287:29 [INFO] [stdout] | [INFO] [stdout] 1287 | fn this_expr(&mut self, expr: &ThisExprData) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/lib/asm/codegen.rs:1445:31 [INFO] [stdout] | [INFO] [stdout] 1445 | fn regexp_expr(&mut self, expr: &RegExpData) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/lib/asm/codegen.rs:1449:29 [INFO] [stdout] | [INFO] [stdout] 1449 | fn null_expr(&mut self, expr: &NullData) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/lib/asm/codegen.rs:1466:30 [INFO] [stdout] | [INFO] [stdout] 1466 | fn undef_expr(&mut self, expr: &UndefData) -> Result<(), CodegenError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lib/asm/symtab.rs:196:30 [INFO] [stdout] | [INFO] [stdout] 196 | fn throw_stmt(&mut self, stmt: &ThrowStmt) -> Result<(), ()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/lib/asm/symtab.rs:211:30 [INFO] [stdout] | [INFO] [stdout] 211 | fn debug_stmt(&mut self, stmt: &DebugStmt) -> Result<(), ()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/lib/parser.rs:1957:13 [INFO] [stdout] | [INFO] [stdout] 1957 | let node = parser.stmt().ok().unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `uv` [INFO] [stdout] --> src/lib/vm/exec.rs:313:17 [INFO] [stdout] | [INFO] [stdout] 313 | for (i, uv) in &ci.open_upvals { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_uv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rc` [INFO] [stdout] --> src/lib/vm/exec.rs:348:21 [INFO] [stdout] | [INFO] [stdout] 348 | let rc = i.c(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_rc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/lib/vm/exec.rs:456:21 [INFO] [stdout] | [INFO] [stdout] 456 | let b = self.get_stack_item(base + i.b()); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ptr` [INFO] [stdout] --> src/lib/vm/gc.rs:93:19 [INFO] [stdout] | [INFO] [stdout] 93 | fn default_deinit(ptr: JsObjPtr) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ptr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str2` [INFO] [stdout] --> src/lib/vm/gc.rs:661:13 [INFO] [stdout] | [INFO] [stdout] 661 | let str2 = gc.new_str(true); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_str2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str1` [INFO] [stdout] --> src/lib/vm/gc.rs:677:13 [INFO] [stdout] | [INFO] [stdout] 677 | let str1 = gc.new_str(false); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_str1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gc` [INFO] [stdout] --> src/lib/vm/obj.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 194 | let gc = as_gc(as_obj(a).gc()); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_gc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_sub` is never used [INFO] [stdout] --> src/lib/asm/codegen.rs:253:8 [INFO] [stdout] | [INFO] [stdout] 58 | impl FnState { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 253 | fn get_sub(&mut self, idx: usize) -> &'static FnState { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `msg` is never read [INFO] [stdout] --> src/lib/asm/codegen.rs:326:5 [INFO] [stdout] | [INFO] [stdout] 325 | pub struct CodegenError { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 326 | msg: String, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_root_scope` and `has_binding` are never used [INFO] [stdout] --> src/lib/asm/codegen.rs:406:8 [INFO] [stdout] | [INFO] [stdout] 344 | impl Codegen { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 406 | fn is_root_scope(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 410 | fn has_binding(&self, n: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_set_global_inst` is never used [INFO] [stdout] --> src/lib/asm/codegen.rs:468:4 [INFO] [stdout] | [INFO] [stdout] 468 | fn new_set_global_inst(fs: &mut FnState, field_name: &str, val_reg: u32) -> Inst { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `assert_code_eq` is never used [INFO] [stdout] --> src/lib/asm/codegen.rs:1616:8 [INFO] [stdout] | [INFO] [stdout] 1616 | fn assert_code_eq(asert: &str, test: &Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INIT_GC_DATA_ONCE` is never used [INFO] [stdout] --> src/lib/vm/gc.rs:366:8 [INFO] [stdout] | [INFO] [stdout] 366 | static INIT_GC_DATA_ONCE: Once = Once::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/asm/chunk.rs:428:14 [INFO] [stdout] | [INFO] [stdout] 428 | unsafe { OPCODE_NAME.as_ref().unwrap().get(op).unwrap() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/asm/chunk.rs:432:14 [INFO] [stdout] | [INFO] [stdout] 432 | unsafe { OPCODE_MODE.as_ref().unwrap().get(op).unwrap() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/asm/codegen.rs:1545:14 [INFO] [stdout] | [INFO] [stdout] 1545 | unsafe { SYMBOL_OPCODE_MAP.as_ref().unwrap().get(&s) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:118:14 [INFO] [stdout] | [INFO] [stdout] 118 | unsafe { KEYWORDS_SET.as_ref().unwrap().contains(s) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:121:14 [INFO] [stdout] | [INFO] [stdout] 121 | unsafe { KEYWORDS_KEY_NAME.as_ref().unwrap().get(v).unwrap() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | / KEYWORDS_NAME_KEY [INFO] [stdout] 126 | | .as_ref() [INFO] [stdout] | |_____________________^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:139:18 [INFO] [stdout] | [INFO] [stdout] 139 | unsafe { KEYWORDS_BEFORE_EXPR_SET.as_ref().unwrap().contains(self) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:181:14 [INFO] [stdout] | [INFO] [stdout] 181 | unsafe { CTX_KEYWORD_SET.as_ref().unwrap().contains(s) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:184:14 [INFO] [stdout] | [INFO] [stdout] 184 | unsafe { CTX_KEYWORD_KEY_NAME.as_ref().unwrap().get(v).unwrap() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:188:9 [INFO] [stdout] | [INFO] [stdout] 188 | / CTX_KEYWORD_NAME_KEY [INFO] [stdout] 189 | | .as_ref() [INFO] [stdout] | |_____________________^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:202:18 [INFO] [stdout] | [INFO] [stdout] 202 | unsafe { CTX_KEYWORD_BEFORE_EXPR_SET.as_ref().unwrap().contains(self) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:345:14 [INFO] [stdout] | [INFO] [stdout] 345 | unsafe { SYMBOLS_SET.as_ref().unwrap().contains(s) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:348:14 [INFO] [stdout] | [INFO] [stdout] 348 | unsafe { SYMBOLS_KEY_NAME.as_ref().unwrap().get(v).unwrap() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:352:9 [INFO] [stdout] | [INFO] [stdout] 352 | / SYMBOLS_KEY_PRECEDENCE [INFO] [stdout] 353 | | .as_ref() [INFO] [stdout] | |_____________________^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:362:9 [INFO] [stdout] | [INFO] [stdout] 362 | / SYMBOLS_NAME_KEY [INFO] [stdout] 363 | | .as_ref() [INFO] [stdout] | |_____________________^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lib/token.rs:376:18 [INFO] [stdout] | [INFO] [stdout] 376 | unsafe { SYMBOLS_BEFORE_EXPR_SET.as_ref().unwrap().contains(self) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib/vm/exec.rs:602:21 [INFO] [stdout] | [INFO] [stdout] 602 | self.exec(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 602 | let _ = self.exec(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib/vm/exec.rs:652:17 [INFO] [stdout] | [INFO] [stdout] 652 | self.exec(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 652 | let _ = self.exec(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib/vm/exec.rs:701:9 [INFO] [stdout] | [INFO] [stdout] 701 | vm.exec(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 701 | let _ = vm.exec(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib/vm/exec.rs:739:9 [INFO] [stdout] | [INFO] [stdout] 739 | vm.exec(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 739 | let _ = vm.exec(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib/vm/exec.rs:772:9 [INFO] [stdout] | [INFO] [stdout] 772 | vm.exec(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 772 | let _ = vm.exec(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib/vm/exec.rs:791:9 [INFO] [stdout] | [INFO] [stdout] 791 | vm.exec(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 791 | let _ = vm.exec(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib/vm/exec.rs:809:9 [INFO] [stdout] | [INFO] [stdout] 809 | vm.exec(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 809 | let _ = vm.exec(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib/vm/exec.rs:835:9 [INFO] [stdout] | [INFO] [stdout] 835 | vm.exec(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 835 | let _ = vm.exec(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib/vm/exec.rs:867:9 [INFO] [stdout] | [INFO] [stdout] 867 | vm.exec(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 867 | let _ = vm.exec(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib/vm/exec.rs:889:9 [INFO] [stdout] | [INFO] [stdout] 889 | vm.exec(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 889 | let _ = vm.exec(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib/vm/exec.rs:912:9 [INFO] [stdout] | [INFO] [stdout] 912 | vm.exec(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 912 | let _ = vm.exec(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib/vm/exec.rs:946:9 [INFO] [stdout] | [INFO] [stdout] 946 | vm.exec(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 946 | let _ = vm.exec(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib/vm/exec.rs:968:9 [INFO] [stdout] | [INFO] [stdout] 968 | vm.exec(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 968 | let _ = vm.exec(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib/vm/exec.rs:985:9 [INFO] [stdout] | [INFO] [stdout] 985 | vm.exec(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 985 | let _ = vm.exec(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib/vm/exec.rs:999:9 [INFO] [stdout] | [INFO] [stdout] 999 | vm.exec(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 999 | let _ = vm.exec(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib/vm/exec.rs:1017:9 [INFO] [stdout] | [INFO] [stdout] 1017 | vm.exec(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1017 | let _ = vm.exec(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib/vm/exec.rs:1037:9 [INFO] [stdout] | [INFO] [stdout] 1037 | vm.exec(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1037 | let _ = vm.exec(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib/vm/exec.rs:1061:9 [INFO] [stdout] | [INFO] [stdout] 1061 | vm.exec(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1061 | let _ = vm.exec(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 4.77s [INFO] running `Command { std: "docker" "inspect" "f2c503cb0bae1fc8572bdaa5236fbecfecdc015ab3a09c7d87e1167ede7eccd2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f2c503cb0bae1fc8572bdaa5236fbecfecdc015ab3a09c7d87e1167ede7eccd2", kill_on_drop: false }` [INFO] [stdout] f2c503cb0bae1fc8572bdaa5236fbecfecdc015ab3a09c7d87e1167ede7eccd2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-01-12" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 549982b5d49132a6c299a30238bc3505b7f1fce6e35c0b1d6dd37027dddb9b76 [INFO] running `Command { std: "docker" "start" "-a" "549982b5d49132a6c299a30238bc3505b7f1fce6e35c0b1d6dd37027dddb9b76", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `crate::vm::obj::*` [INFO] [stderr] --> src/lib/vm/exec.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::vm::obj::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `HashSet` [INFO] [stderr] --> src/lib/vm/exec.rs:4:33 [INFO] [stderr] | [INFO] [stderr] 4 | use std::collections::{HashMap, HashSet}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::mem` [INFO] [stderr] --> src/lib/vm/exec.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use std::mem; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::ptr::eq` [INFO] [stderr] --> src/lib/vm/obj.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::ptr::eq; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `idx` [INFO] [stderr] --> src/lib/asm/codegen.rs:253:27 [INFO] [stderr] | [INFO] [stderr] 253 | fn get_sub(&mut self, idx: usize) -> &'static FnState { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `stmt` [INFO] [stderr] --> src/lib/asm/codegen.rs:581:30 [INFO] [stderr] | [INFO] [stderr] 581 | fn empty_stmt(&mut self, stmt: &EmptyStmt) -> Result<(), CodegenError> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `stmt` [INFO] [stderr] --> src/lib/asm/codegen.rs:672:31 [INFO] [stderr] | [INFO] [stderr] 672 | fn for_in_stmt(&mut self, stmt: &ForInStmt) -> Result<(), CodegenError> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `stmt` [INFO] [stderr] --> src/lib/asm/codegen.rs:733:29 [INFO] [stderr] | [INFO] [stderr] 733 | fn cont_stmt(&mut self, stmt: &ContStmt) -> Result<(), CodegenError> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `stmt` [INFO] [stderr] --> src/lib/asm/codegen.rs:744:30 [INFO] [stderr] | [INFO] [stderr] 744 | fn break_stmt(&mut self, stmt: &BreakStmt) -> Result<(), CodegenError> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `stmt` [INFO] [stderr] --> src/lib/asm/codegen.rs:774:29 [INFO] [stderr] | [INFO] [stderr] 774 | fn with_stmt(&mut self, stmt: &WithStmt) -> Result<(), CodegenError> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `stmt` [INFO] [stderr] --> src/lib/asm/codegen.rs:778:31 [INFO] [stderr] | [INFO] [stderr] 778 | fn switch_stmt(&mut self, stmt: &SwitchStmt) -> Result<(), CodegenError> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `stmt` [INFO] [stderr] --> src/lib/asm/codegen.rs:782:30 [INFO] [stderr] | [INFO] [stderr] 782 | fn throw_stmt(&mut self, stmt: &ThrowStmt) -> Result<(), CodegenError> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `stmt` [INFO] [stderr] --> src/lib/asm/codegen.rs:786:28 [INFO] [stderr] | [INFO] [stderr] 786 | fn try_stmt(&mut self, stmt: &TryStmt) -> Result<(), CodegenError> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `stmt` [INFO] [stderr] --> src/lib/asm/codegen.rs:790:30 [INFO] [stderr] | [INFO] [stderr] 790 | fn debug_stmt(&mut self, stmt: &DebugStmt) -> Result<(), CodegenError> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `lhs_reg` [INFO] [stderr] --> src/lib/asm/codegen.rs:1112:21 [INFO] [stderr] | [INFO] [stderr] 1112 | let lhs_reg = test_set.b(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lhs_reg` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `expr` [INFO] [stderr] --> src/lib/asm/codegen.rs:1287:29 [INFO] [stderr] | [INFO] [stderr] 1287 | fn this_expr(&mut self, expr: &ThisExprData) -> Result<(), CodegenError> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `expr` [INFO] [stderr] --> src/lib/asm/codegen.rs:1445:31 [INFO] [stderr] | [INFO] [stderr] 1445 | fn regexp_expr(&mut self, expr: &RegExpData) -> Result<(), CodegenError> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `expr` [INFO] [stderr] --> src/lib/asm/codegen.rs:1449:29 [INFO] [stderr] | [INFO] [stderr] 1449 | fn null_expr(&mut self, expr: &NullData) -> Result<(), CodegenError> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `expr` [INFO] [stderr] --> src/lib/asm/codegen.rs:1466:30 [INFO] [stderr] | [INFO] [stderr] 1466 | fn undef_expr(&mut self, expr: &UndefData) -> Result<(), CodegenError> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `stmt` [INFO] [stderr] --> src/lib/asm/symtab.rs:196:30 [INFO] [stderr] | [INFO] [stderr] 196 | fn throw_stmt(&mut self, stmt: &ThrowStmt) -> Result<(), ()> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `stmt` [INFO] [stderr] --> src/lib/asm/symtab.rs:211:30 [INFO] [stderr] | [INFO] [stderr] 211 | fn debug_stmt(&mut self, stmt: &DebugStmt) -> Result<(), ()> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `uv` [INFO] [stderr] --> src/lib/vm/exec.rs:313:17 [INFO] [stderr] | [INFO] [stderr] 313 | for (i, uv) in &ci.open_upvals { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_uv` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rc` [INFO] [stderr] --> src/lib/vm/exec.rs:348:21 [INFO] [stderr] | [INFO] [stderr] 348 | let rc = i.c(); [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_rc` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `b` [INFO] [stderr] --> src/lib/vm/exec.rs:456:21 [INFO] [stderr] | [INFO] [stderr] 456 | let b = self.get_stack_item(base + i.b()); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ptr` [INFO] [stderr] --> src/lib/vm/gc.rs:93:19 [INFO] [stderr] | [INFO] [stderr] 93 | fn default_deinit(ptr: JsObjPtr) {} [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ptr` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `gc` [INFO] [stderr] --> src/lib/vm/obj.rs:194:13 [INFO] [stderr] | [INFO] [stderr] 194 | let gc = as_gc(as_obj(a).gc()); [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_gc` [INFO] [stderr] [INFO] [stderr] warning: method `get_sub` is never used [INFO] [stderr] --> src/lib/asm/codegen.rs:253:8 [INFO] [stderr] | [INFO] [stderr] 58 | impl FnState { [INFO] [stderr] | ------------ method in this implementation [INFO] [stderr] ... [INFO] [stderr] 253 | fn get_sub(&mut self, idx: usize) -> &'static FnState { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field `msg` is never read [INFO] [stderr] --> src/lib/asm/codegen.rs:326:5 [INFO] [stderr] | [INFO] [stderr] 325 | pub struct CodegenError { [INFO] [stderr] | ------------ field in this struct [INFO] [stderr] 326 | msg: String, [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `is_root_scope` and `has_binding` are never used [INFO] [stderr] --> src/lib/asm/codegen.rs:406:8 [INFO] [stderr] | [INFO] [stderr] 344 | impl Codegen { [INFO] [stderr] | ------------ methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 406 | fn is_root_scope(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 410 | fn has_binding(&self, n: &str) -> bool { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `new_set_global_inst` is never used [INFO] [stderr] --> src/lib/asm/codegen.rs:468:4 [INFO] [stderr] | [INFO] [stderr] 468 | fn new_set_global_inst(fs: &mut FnState, field_name: &str, val_reg: u32) -> Inst { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `set_return` is never used [INFO] [stderr] --> src/lib/vm/exec.rs:265:8 [INFO] [stderr] | [INFO] [stderr] 125 | impl Vm { [INFO] [stderr] | ------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 265 | fn set_return(&mut self, ret: JsObjPtr) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static `INIT_GC_DATA_ONCE` is never used [INFO] [stderr] --> src/lib/vm/gc.rs:366:8 [INFO] [stderr] | [INFO] [stderr] 366 | static INIT_GC_DATA_ONCE: Once = Once::new(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stderr] --> src/lib/asm/chunk.rs:428:14 [INFO] [stderr] | [INFO] [stderr] 428 | unsafe { OPCODE_NAME.as_ref().unwrap().get(op).unwrap() } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stderr] --> src/lib/asm/chunk.rs:432:14 [INFO] [stderr] | [INFO] [stderr] 432 | unsafe { OPCODE_MODE.as_ref().unwrap().get(op).unwrap() } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stderr] --> src/lib/asm/codegen.rs:1545:14 [INFO] [stderr] | [INFO] [stderr] 1545 | unsafe { SYMBOL_OPCODE_MAP.as_ref().unwrap().get(&s) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stderr] --> src/lib/token.rs:118:14 [INFO] [stderr] | [INFO] [stderr] 118 | unsafe { KEYWORDS_SET.as_ref().unwrap().contains(s) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stderr] --> src/lib/token.rs:121:14 [INFO] [stderr] | [INFO] [stderr] 121 | unsafe { KEYWORDS_KEY_NAME.as_ref().unwrap().get(v).unwrap() } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stderr] --> src/lib/token.rs:125:9 [INFO] [stderr] | [INFO] [stderr] 125 | / KEYWORDS_NAME_KEY [INFO] [stderr] 126 | | .as_ref() [INFO] [stderr] | |_____________________^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stderr] --> src/lib/token.rs:139:18 [INFO] [stderr] | [INFO] [stderr] 139 | unsafe { KEYWORDS_BEFORE_EXPR_SET.as_ref().unwrap().contains(self) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stderr] --> src/lib/token.rs:181:14 [INFO] [stderr] | [INFO] [stderr] 181 | unsafe { CTX_KEYWORD_SET.as_ref().unwrap().contains(s) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stderr] --> src/lib/token.rs:184:14 [INFO] [stderr] | [INFO] [stderr] 184 | unsafe { CTX_KEYWORD_KEY_NAME.as_ref().unwrap().get(v).unwrap() } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stderr] --> src/lib/token.rs:188:9 [INFO] [stderr] | [INFO] [stderr] 188 | / CTX_KEYWORD_NAME_KEY [INFO] [stderr] 189 | | .as_ref() [INFO] [stderr] | |_____________________^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stderr] --> src/lib/token.rs:202:18 [INFO] [stderr] | [INFO] [stderr] 202 | unsafe { CTX_KEYWORD_BEFORE_EXPR_SET.as_ref().unwrap().contains(self) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stderr] --> src/lib/token.rs:345:14 [INFO] [stderr] | [INFO] [stderr] 345 | unsafe { SYMBOLS_SET.as_ref().unwrap().contains(s) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stderr] --> src/lib/token.rs:348:14 [INFO] [stderr] | [INFO] [stderr] 348 | unsafe { SYMBOLS_KEY_NAME.as_ref().unwrap().get(v).unwrap() } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stderr] --> src/lib/token.rs:352:9 [INFO] [stderr] | [INFO] [stderr] 352 | / SYMBOLS_KEY_PRECEDENCE [INFO] [stderr] 353 | | .as_ref() [INFO] [stderr] | |_____________________^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stderr] --> src/lib/token.rs:362:9 [INFO] [stderr] | [INFO] [stderr] 362 | / SYMBOLS_NAME_KEY [INFO] [stderr] 363 | | .as_ref() [INFO] [stderr] | |_____________________^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stderr] --> src/lib/token.rs:376:18 [INFO] [stderr] | [INFO] [stderr] 376 | unsafe { SYMBOLS_BEFORE_EXPR_SET.as_ref().unwrap().contains(self) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/lib/vm/exec.rs:602:21 [INFO] [stderr] | [INFO] [stderr] 602 | self.exec(); [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 602 | let _ = self.exec(); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/lib/vm/exec.rs:652:17 [INFO] [stderr] | [INFO] [stderr] 652 | self.exec(); [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 652 | let _ = self.exec(); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `node` [INFO] [stderr] --> src/lib/parser.rs:1957:13 [INFO] [stderr] | [INFO] [stderr] 1957 | let node = parser.stmt().ok().unwrap(); [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `str2` [INFO] [stderr] --> src/lib/vm/gc.rs:661:13 [INFO] [stderr] | [INFO] [stderr] 661 | let str2 = gc.new_str(true); [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_str2` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `str1` [INFO] [stderr] --> src/lib/vm/gc.rs:677:13 [INFO] [stderr] | [INFO] [stderr] 677 | let str1 = gc.new_str(false); [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_str1` [INFO] [stderr] [INFO] [stderr] warning: function `assert_code_eq` is never used [INFO] [stderr] --> src/lib/asm/codegen.rs:1616:8 [INFO] [stderr] | [INFO] [stderr] 1616 | fn assert_code_eq(asert: &str, test: &Vec) { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/lib/vm/exec.rs:701:9 [INFO] [stderr] | [INFO] [stderr] 701 | vm.exec(); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 701 | let _ = vm.exec(); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/lib/vm/exec.rs:739:9 [INFO] [stderr] | [INFO] [stderr] 739 | vm.exec(); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 739 | let _ = vm.exec(); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/lib/vm/exec.rs:772:9 [INFO] [stderr] | [INFO] [stderr] 772 | vm.exec(); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 772 | let _ = vm.exec(); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/lib/vm/exec.rs:791:9 [INFO] [stderr] | [INFO] [stderr] 791 | vm.exec(); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 791 | let _ = vm.exec(); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/lib/vm/exec.rs:809:9 [INFO] [stderr] | [INFO] [stderr] 809 | vm.exec(); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 809 | let _ = vm.exec(); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/lib/vm/exec.rs:835:9 [INFO] [stderr] | [INFO] [stderr] 835 | vm.exec(); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 835 | let _ = vm.exec(); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/lib/vm/exec.rs:867:9 [INFO] [stderr] | [INFO] [stderr] 867 | vm.exec(); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 867 | let _ = vm.exec(); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/lib/vm/exec.rs:889:9 [INFO] [stderr] | [INFO] [stderr] 889 | vm.exec(); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 889 | let _ = vm.exec(); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/lib/vm/exec.rs:912:9 [INFO] [stderr] | [INFO] [stderr] 912 | vm.exec(); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 912 | let _ = vm.exec(); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/lib/vm/exec.rs:946:9 [INFO] [stderr] | [INFO] [stderr] 946 | vm.exec(); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 946 | let _ = vm.exec(); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/lib/vm/exec.rs:968:9 [INFO] [stderr] | [INFO] [stderr] 968 | vm.exec(); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 968 | let _ = vm.exec(); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/lib/vm/exec.rs:985:9 [INFO] [stderr] | [INFO] [stderr] 985 | vm.exec(); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 985 | let _ = vm.exec(); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/lib/vm/exec.rs:999:9 [INFO] [stderr] | [INFO] [stderr] 999 | vm.exec(); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 999 | let _ = vm.exec(); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/lib/vm/exec.rs:1017:9 [INFO] [stderr] | [INFO] [stderr] 1017 | vm.exec(); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 1017 | let _ = vm.exec(); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/lib/vm/exec.rs:1037:9 [INFO] [stderr] | [INFO] [stderr] 1037 | vm.exec(); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 1037 | let _ = vm.exec(); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/lib/vm/exec.rs:1061:9 [INFO] [stderr] | [INFO] [stderr] 1061 | vm.exec(); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 1061 | let _ = vm.exec(); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: `akt-lvrjs` (lib) generated 50 warnings (run `cargo fix --lib -p akt-lvrjs` to apply 4 suggestions) [INFO] [stderr] warning: `akt-lvrjs` (lib test) generated 69 warnings (49 duplicates) [INFO] [stderr] warning: unused return value of `must_use` that must be used [INFO] [stderr] --> src/main.rs:21:13 [INFO] [stderr] | [INFO] [stderr] 21 | format!("unable to read file: {:?}", e); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this warning originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `akt-lvrjs` (bin "akt-lvrjs" test) generated 1 warning [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] Running unittests src/lib/mod.rs (/opt/rustwide/target/debug/deps/lib-ed378f66afb464b2) [INFO] [stdout] [INFO] [stdout] running 95 tests [INFO] [stdout] test asm::chunk::chunk_tests::inst_test ... ok [INFO] [stdout] test asm::chunk::chunk_tests::opcode_test ... ok [INFO] [stdout] test asm::codegen::codegen_tests::and_or_test ... ok [INFO] [stdout] test asm::codegen::codegen_tests::arr_literal_test ... ok [INFO] [stdout] test asm::codegen::codegen_tests::binop_assign_test ... ok [INFO] [stdout] test asm::codegen::codegen_tests::call_expr_test ... ok [INFO] [stdout] test asm::codegen::codegen_tests::do_while_stmt_test ... ok [INFO] [stdout] test asm::codegen::codegen_tests::fn_expr_test ... ok [INFO] [stdout] test asm::codegen::codegen_tests::for_stmt_test ... ok [INFO] [stdout] test asm::codegen::codegen_tests::for_stmt_test1 ... ok [INFO] [stdout] test asm::codegen::codegen_tests::binop_kst ... ok [INFO] [stdout] test asm::codegen::codegen_tests::binop_test ... ok [INFO] [stdout] test asm::codegen::codegen_tests::closure_test ... ok [INFO] [stdout] test asm::codegen::codegen_tests::id_test ... ok [INFO] [stdout] test asm::codegen::codegen_tests::gen_test ... ok [INFO] [stdout] test asm::codegen::codegen_tests::assign_test ... ok [INFO] [stdout] test asm::codegen::codegen_tests::break_stmt_test ... ok [INFO] [stdout] test asm::codegen::codegen_tests::if_stmt_test ... ok [INFO] [stdout] test asm::codegen::codegen_tests::for_stmt_test2 ... ok [INFO] [stdout] test asm::codegen::codegen_tests::cont_stmt_test ... ok [INFO] [stdout] test asm::codegen::codegen_tests::global_var_test ... ok [INFO] [stdout] test asm::codegen::codegen_tests::kst_test ... ok [INFO] [stdout] test asm::codegen::codegen_tests::if_stmt_test2 ... ok [INFO] [stdout] test asm::codegen::codegen_tests::postfix_expr_test ... ok [INFO] [stdout] test asm::codegen::codegen_tests::if_stmt_test3 ... ok [INFO] [stdout] test asm::codegen::codegen_tests::relation_test ... ok [INFO] [stdout] test asm::symtab::symtab_tests::scope ... ok [INFO] [stdout] test asm::codegen::codegen_tests::unary_test ... ok [INFO] [stdout] test asm::codegen::codegen_tests::return_stmt_test ... ok [INFO] [stdout] test asm::codegen::codegen_tests::seq_test ... ok [INFO] [stdout] test lexer::lexer_tests::loc ... ok [INFO] [stdout] test asm::codegen::codegen_tests::tbl_literal_test ... ok [INFO] [stdout] test lexer::lexer_tests::next ... ok [INFO] [stdout] test asm::codegen::codegen_tests::cond_expr_test ... ok [INFO] [stdout] test asm::codegen::codegen_tests::while_stmt_test ... ok [INFO] [stdout] test lexer::lexer_tests::read_decimal ... ok [INFO] [stdout] test lexer::lexer_tests::read_numeric ... ok [INFO] [stdout] test lexer::lexer_tests::read_string ... ok [INFO] [stdout] test parser::parser_tests::call_expr_mix ... ok [INFO] [stdout] test lexer::lexer_tests::unicode_escape_seq ... ok [INFO] [stdout] test lexer::lexer_tests::read_name ... ok [INFO] [stdout] test parser::parser_tests::cond_expr ... ok [INFO] [stdout] test parser::parser_tests::cont_ret_break_stmt ... ok [INFO] [stdout] test lexer::lexer_tests::skip_whitespace ... ok [INFO] [stdout] test parser::parser_tests::block_stmt ... ok [INFO] [stdout] test parser::parser_tests::call_expr ... ok [INFO] [stdout] test lexer::lexer_tests::unicode_letter ... ok [INFO] [stdout] test parser::parser_tests::assign_expr ... ok [INFO] [stdout] test parser::parser_tests::for_stmt ... ok [INFO] [stdout] test parser::parser_tests::if_stmt ... ok [INFO] [stdout] test parser::parser_tests::do_while_stmt ... ok [INFO] [stdout] test parser::parser_tests::for_in_stmt ... ok [INFO] [stdout] test parser::parser_tests::expr_op ... ok [INFO] [stdout] test parser::parser_tests::fn_expr ... ok [INFO] [stdout] test parser::parser_tests::debug_stmt ... ok [INFO] [stdout] test parser::parser_tests::primary_expr ... ok [INFO] [stdout] test parser::parser_tests::prog ... ok [INFO] [stdout] test parser::parser_tests::ret_stmt ... ok [INFO] [stdout] test parser::parser_tests::seq_expr ... ok [INFO] [stdout] test parser::parser_tests::new_expr ... ok [INFO] [stdout] test parser::parser_tests::member_expr ... ok [INFO] [stdout] test parser::parser_tests::obj_literal ... ok [INFO] [stdout] test parser::parser_tests::switch_stmt ... ok [INFO] [stdout] test parser::parser_tests::throw_stmt ... ok [INFO] [stdout] test parser::parser_tests::try_stmt ... ok [INFO] [stdout] test parser::parser_tests::with_stmt ... ok [INFO] [stdout] test source::source_tests::join_crlf ... ok [INFO] [stdout] test source::source_tests::line_terminator ... ok [INFO] [stdout] test source::source_tests::peek ... ok [INFO] [stdout] test source::source_tests::peekable_ahead ... ok [INFO] [stdout] test source::source_tests::peekable_peek ... ok [INFO] [stdout] test token::token_tests::name ... ok [INFO] [stdout] test parser::parser_tests::while_stmt ... ok [INFO] [stdout] test token::token_tests::static_map_set ... ok [INFO] [stdout] test vm::exec::exec_tests::and_or_test ... ok [INFO] [stdout] test vm::exec::exec_tests::do_while_test ... ok [INFO] [stdout] test vm::exec::exec_tests::closure_test ... ok [INFO] [stdout] test vm::exec::exec_tests::exec_init_test ... ok [INFO] [stdout] test parser::parser_tests::unary_expr ... ok [INFO] [stdout] test parser::parser_tests::var_dec_stmt ... ok [INFO] [stdout] test vm::exec::exec_tests::for_break_test ... ok [INFO] [stdout] test vm::exec::exec_tests::if_else_test ... ok [INFO] [stdout] test vm::exec::exec_tests::for_test ... ok [INFO] [stdout] test vm::exec::exec_tests::js_fn_test ... ok [INFO] [stdout] test vm::exec::exec_tests::lt_le_test ... ok [INFO] [stdout] test vm::exec::exec_tests::logic_test ... ok [INFO] [stdout] test vm::exec::exec_tests::new_object_test ... ok [INFO] [stdout] test vm::exec::exec_tests::object_literal_test ... ok [INFO] [stdout] test vm::gc::gc_tests::arr_test ... ok [INFO] [stdout] test vm::exec::exec_tests::math_test ... ok [INFO] [stdout] test vm::gc::gc_tests::dict_test ... ok [INFO] [stdout] test vm::gc::gc_tests::str_test ... ok [INFO] [stdout] test vm::exec::exec_tests::member_access_chain_test ... ok [INFO] [stdout] test vm::exec::exec_tests::pass_by_value_test ... ok [INFO] [stdout] test vm::exec::exec_tests::while_test ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 95 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.08s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/akt_lvrjs-c3a1b05995b11a5f) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests lib [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "549982b5d49132a6c299a30238bc3505b7f1fce6e35c0b1d6dd37027dddb9b76", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "549982b5d49132a6c299a30238bc3505b7f1fce6e35c0b1d6dd37027dddb9b76", kill_on_drop: false }` [INFO] [stdout] 549982b5d49132a6c299a30238bc3505b7f1fce6e35c0b1d6dd37027dddb9b76