Compiling nyash-rust v0.1.0 (/mnt/c/git/nyash-project/nyash) error: implementation is not supported in `trait`s or `impl`s --> src/runtime/plugin_loader_v2.rs:235:5 | 235 | impl PluginLoaderV2 { | ^^^^^^^^^^^^^^^^^^^ | = help: consider moving the implementation out to a nearby module scope warning: unused macro definition: `debug_trace` --> src/interpreter/core.rs:34:14 | 34 | macro_rules! debug_trace { | ^^^^^^^^^^^ | = note: `#[warn(unused_macros)]` on by default warning: unused imports: `BasicBlockIdGenerator`, `BasicBlock`, `CompareOp`, `EffectMask`, `MirFunction`, and `ValueIdGenerator` --> src/mir/loop_builder.rs:9:21 | 9 | MirInstruction, BasicBlock, BasicBlockId, MirFunction, ValueId, | ^^^^^^^^^^ ^^^^^^^^^^^ 10 | ConstValue, CompareOp, BasicBlockIdGenerator, ValueIdGenerator, EffectMask | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default warning: unused import: `HashSet` --> src/mir/loop_builder.rs:13:33 | 13 | use std::collections::{HashMap, HashSet}; | ^^^^^^^ warning: unexpected `cfg` condition value: `llvm` --> src/backend/mod.rs:13:7 | 13 | #[cfg(feature = "llvm")] | ^^^^^^^^^^^^^^^^ | = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, `plugins`, and `wasm-backend` = help: consider adding `llvm` as a feature in `Cargo.toml` = note: see for more information about checking conditional configuration = note: `#[warn(unexpected_cfgs)]` on by default warning: unexpected `cfg` condition value: `llvm` --> src/backend/mod.rs:23:7 | 23 | #[cfg(feature = "llvm")] | ^^^^^^^^^^^^^^^^ | = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, `plugins`, and `wasm-backend` = help: consider adding `llvm` as a feature in `Cargo.toml` = note: see for more information about checking conditional configuration warning: unused import: `MirInstruction` --> src/backend/vm_phi.rs:9:41 | 9 | use crate::mir::{BasicBlockId, ValueId, MirInstruction}; | ^^^^^^^^^^^^^^ warning: unused import: `super::Usize` --> src/bid/types.rs:1:5 | 1 | use super::Usize; | ^^^^^^^^^^^^ warning: unused import: `std::os::raw::c_char` --> src/bid/plugin_api.rs:2:5 | 2 | use std::os::raw::c_char; | ^^^^^^^^^^^^^^^^^^^^ warning: unused imports: `NyashHostVtable`, `NyashMethodInfo`, and `NyashPluginInfo` --> src/bid/plugins/filebox/mod.rs:7:18 | 7 | use crate::bid::{NyashPluginInfo, NyashMethodInfo, NyashHostVtable}; | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ warning: unused imports: `SeekFrom` and `Seek` --> src/bid/plugins/filebox/mod.rs:10:28 | 10 | use std::io::{Read, Write, Seek, SeekFrom}; | ^^^^ ^^^^^^^^ warning: unused imports: `c_char` and `c_void` --> src/bid/plugins/filebox/mod.rs:11:20 | 11 | use std::os::raw::{c_char, c_void}; | ^^^^^^ ^^^^^^ warning: unused imports: `CStr` and `CString` --> src/bid/plugins/filebox/mod.rs:13:16 | 13 | use std::ffi::{CStr, CString}; | ^^^^ ^^^^^^^ warning: unused import: `std::ffi::c_void` --> src/bid/loader.rs:4:5 | 4 | use std::ffi::c_void; | ^^^^^^^^^^^^^^^^ warning: unused imports: `TlvDecoder` and `TlvEncoder` --> src/bid/generic_plugin_box.rs:5:23 | 5 | use crate::bid::tlv::{TlvEncoder, TlvDecoder}; | ^^^^^^^^^^ ^^^^^^^^^^ warning: unused import: `crate::bid::types::BidTag` --> src/bid/generic_plugin_box.rs:6:5 | 6 | use crate::bid::types::BidTag; | ^^^^^^^^^^^^^^^^^^^^^^^^^ warning: unused import: `BoxBase` --> src/runtime/plugin_loader_v2.rs:10:47 | 10 | use crate::box_trait::{NyashBox, BoxCore, BoxBase, StringBox}; | ^^^^^^^ warning: unused import: `std::ffi::c_void` --> src/runtime/plugin_loader_v2.rs:14:9 | 14 | use std::ffi::c_void; | ^^^^^^^^^^^^^^^^ error[E0599]: no method named `invoke_instance_method` found for struct `RwLockReadGuard<'_, enabled::PluginLoaderV2>` in the current scope --> src/backend/vm.rs:548:34 | 548 | match loader.invoke_instance_method(&plugin.box_type, method, plugin.instance_id, &arg_values) { | ^^^^^^^^^^^^^^^^^^^^^^ method not found in `RwLockReadGuard<'_, PluginLoaderV2>` warning: unused variable: `registry` --> src/box_factory/plugin.rs:53:13 | 53 | let registry = get_global_registry(); | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_registry` | = note: `#[warn(unused_variables)]` on by default warning: variable does not need to be mutable --> src/interpreter/expressions/calls.rs:734:13 | 734 | let mut is_builtin = is_builtin_box(parent); | ----^^^^^^^^^^ | | | help: remove this `mut` | = note: `#[warn(unused_mut)]` on by default warning: variable does not need to be mutable --> src/interpreter/objects.rs:1106:17 | 1106 | let mut is_builtin = is_builtin_box(parent_name); | ----^^^^^^^^^^ | | | help: remove this `mut` warning: unused variable: `args` --> src/instance_v2.rs:147:28 | 147 | pub fn init(&mut self, args: &[Box]) -> Result<(), String> { | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` warning: unused variable: `nyash_value` --> src/instance_v2.rs:289:21 | 289 | if let Some(nyash_value) = self.fields_ng.lock().unwrap().get(field_name) { | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nyash_value` warning: variable does not need to be mutable --> src/mir/builder.rs:85:13 | 85 | let mut function = MirFunction::new(signature, entry); | ----^^^^^^^^ | | | help: remove this `mut` warning: unused variable: `block_id` --> src/mir/loop_builder.rs:246:39 | 246 | fn mark_block_unsealed(&mut self, block_id: BasicBlockId) -> Result<(), String> { | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_id` warning: unused variable: `block_id` --> src/mir/loop_builder.rs:273:49 | 273 | fn get_variable_at_block(&self, name: &str, block_id: BasicBlockId) -> Option { | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_id` warning: unused variable: `dst` --> src/backend/vm_phi.rs:48:9 | 48 | dst: ValueId, | ^^^ help: if this is intentional, prefix it with an underscore: `_dst` warning: unused variable: `f` --> src/bid/plugin_api.rs:167:36 | 167 | pub fn with_alloc(mut self, f: F) -> Self | ^ help: if this is intentional, prefix it with an underscore: `_f` warning: variable does not need to be mutable --> src/bid/plugin_api.rs:167:26 | 167 | pub fn with_alloc(mut self, f: F) -> Self | ----^^^^ | | | help: remove this `mut` warning: unused variable: `f` --> src/bid/plugin_api.rs:176:35 | 176 | pub fn with_free(mut self, f: F) -> Self | ^ help: if this is intentional, prefix it with an underscore: `_f` warning: variable does not need to be mutable --> src/bid/plugin_api.rs:176:25 | 176 | pub fn with_free(mut self, f: F) -> Self | ----^^^^ | | | help: remove this `mut` warning: unused variable: `f` --> src/bid/plugin_api.rs:183:34 | 183 | pub fn with_log(mut self, f: F) -> Self | ^ help: if this is intentional, prefix it with an underscore: `_f` warning: variable does not need to be mutable --> src/bid/plugin_api.rs:183:24 | 183 | pub fn with_log(mut self, f: F) -> Self | ----^^^^ | | | help: remove this `mut` warning: unused variable: `args` --> src/runtime/plugin_loader_v2.rs:352:46 | 352 | pub fn create_box(&self, box_type: &str, args: &[Box]) -> BidResult> { | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` For more information about this error, try `rustc --explain E0599`. warning: `nyash-rust` (lib) generated 33 warnings error: could not compile `nyash-rust` (lib) due to 2 previous errors; 33 warnings emitted