mirror of
https://gitee.com/openharmony/third_party_rust_bitflags
synced 2024-11-26 17:00:54 +00:00
Remove __bitflags_stringify!
This commit is contained in:
parent
a6978d92f5
commit
bef10f13ce
12
src/lib.rs
12
src/lib.rs
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user