change abi

the thing C++ is afraid of
This commit is contained in:
nora 2022-01-09 11:58:58 +01:00
parent 5bce4cc21c
commit f23662c1f9
4 changed files with 19 additions and 18 deletions

View file

@ -1,4 +1,4 @@
#![deny(clippy::disallowed_type)]
#![deny(clippy::disallowed_types)]
mod ast;
mod bytecode;
@ -18,14 +18,14 @@ pub use lex::*;
pub use parse::*;
#[cfg(not(feature = "fxhash"))]
#[allow(clippy::disallowed_type)]
#[allow(clippy::disallowed_types)]
type HashMap<K, V> = std::collections::HashMap<K, V>;
#[cfg(feature = "fxhash")]
type HashMap<K, V> = rustc_hash::FxHashMap<K, V>;
#[cfg(not(feature = "fxhash"))]
#[allow(clippy::disallowed_type)]
#[allow(clippy::disallowed_types)]
type HashSet<T> = std::collections::HashSet<T>;
#[cfg(feature = "fxhash")]