Remove __bitflags_stringify!

This commit is contained in:
konsumlamm 2021-08-04 13:02:19 +02:00
parent a6978d92f5
commit bef10f13ce

View File

@ -454,7 +454,7 @@ macro_rules! __impl_bitflags {
f.write_str(" | ")?;
}
first = false;
f.write_str(__bitflags_stringify!($Flag))?;
f.write_str($crate::_core::stringify!($Flag))?;
}
)*
let extra_bits = self.bits & !Self::all().bits();
@ -910,16 +910,6 @@ macro_rules! __impl_bitflags {
};
}
// Same as `std::stringify` but callable from `__impl_bitflags!`, which needs to use
// `local_inner_macros`, so it can only directly call macros from this crate.
#[macro_export]
#[doc(hidden)]
macro_rules! __bitflags_stringify {
($s:ident) => {
$crate::_core::stringify!($s)
};
}
#[cfg(feature = "example_generated")]
pub mod example_generated;