From bef10f13ce0a1dfd2f35a9ef7fa4090b6fbb1776 Mon Sep 17 00:00:00 2001 From: konsumlamm Date: Wed, 4 Aug 2021 13:02:19 +0200 Subject: [PATCH] Remove `__bitflags_stringify!` --- src/lib.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index af574def..6f58a42f 100644 --- a/src/lib.rs +++ b/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;