Skip to content

Commit

Permalink
Remove __bitflags_stringify!
Browse files Browse the repository at this point in the history
  • Loading branch information
konsumlamm committed Aug 4, 2021
1 parent a6978d9 commit bef10f1
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/lib.rs
Expand Up @@ -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();
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit bef10f1

Please sign in to comment.