diff options
Diffstat (limited to '')
-rw-r--r-- | vendor/syn/src/ident.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/vendor/syn/src/ident.rs b/vendor/syn/src/ident.rs index 41eb72129..d0f4ba08d 100644 --- a/vendor/syn/src/ident.rs +++ b/vendor/syn/src/ident.rs @@ -4,10 +4,12 @@ use crate::lookahead; pub use proc_macro2::Ident; #[cfg(feature = "parsing")] -#[doc(hidden)] -#[allow(non_snake_case)] -pub fn Ident(marker: lookahead::TokenMarker) -> Ident { - match marker {} +pub_if_not_doc! { + #[doc(hidden)] + #[allow(non_snake_case)] + pub fn Ident(marker: lookahead::TokenMarker) -> Ident { + match marker {} + } } macro_rules! ident_from_token { |