-
-
Notifications
You must be signed in to change notification settings - Fork 13
Description
my code:
fn run(&self, code : &mut Peekable<impl Iterator<Item = char>>) -> Result<Arc<vm::value::Table>> {
let lexer = ast::lexer::Lexer{ source : code.peekable()};
let parsed = ast::parser::parse_block(
&mut ast::parser::TokenIterator(lexer.peekable())
)?;
let compiled = compiler::compile_block(&parsed);
let result = self.vm.execute(&compiled.into(), lua_tuple![].arc()).map_err(into_err)?;
Ok(result)
}error occurs on lua_tuple![]
error message:
unresolved import
hashbrown
use of undeclared crate or modulehashbrownrustcClick for full compiler diagnostic
value.rs(124, 8): Actual error occurred here
if i do cargo add hashbrown the error changes to this:
mismatched types
structhashbrown::HashMapand structhashbrown::map::HashMaphave similar names, but are actually distinct types
perhaps two different versions of cratehashbrownare being used?rustcClick for full compiler diagnostic
value.rs(133, 28): Actual error occurred here
value.rs(133, 17): arguments to this function are incorrect
map.rs(188, 1): structhashbrown::HashMapis defined in cratehashbrown
map.rs(192, 1): structhashbrown::map::HashMapis defined in cratehashbrown
mutex.rs(219, 18): associated function defined here
my dependecies are:
[dependencies]
hematita = "0.1.0"
string-error = "0.1.0"