refactor import resolution

extract path resolution
use enums instead of bools
This commit is contained in:
Aleksey Kladov 2019-01-25 10:08:21 +03:00
parent 1d4b421aad
commit 857c35ddb0
4 changed files with 151 additions and 104 deletions

View file

@ -46,11 +46,13 @@ macro_rules! covers {
}
#[macro_export]
macro_rules! mark {
($ident:ident) => {
macro_rules! marks {
($($ident:ident)*) => {
$(
#[allow(bad_style)]
pub(crate) static $ident: std::sync::atomic::AtomicUsize =
std::sync::atomic::AtomicUsize::new(0);
)*
};
}