diff options
Diffstat (limited to 'vendor/syn/src/parse.rs')
-rw-r--r-- | vendor/syn/src/parse.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/vendor/syn/src/parse.rs b/vendor/syn/src/parse.rs index 61a10d2bc..5a2aeb628 100644 --- a/vendor/syn/src/parse.rs +++ b/vendor/syn/src/parse.rs @@ -185,10 +185,7 @@ pub mod discouraged; use crate::buffer::{Cursor, TokenBuffer}; use crate::error; use crate::lookahead; -#[cfg(all( - not(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "wasi"))), - feature = "proc-macro" -))] +#[cfg(feature = "proc-macro")] use crate::proc_macro; use crate::punctuated::Punctuated; use crate::token::Token; @@ -1198,10 +1195,7 @@ pub trait Parser: Sized { /// /// This function will check that the input is fully parsed. If there are /// any unparsed tokens at the end of the stream, an error is returned. - #[cfg(all( - not(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "wasi"))), - feature = "proc-macro" - ))] + #[cfg(feature = "proc-macro")] #[cfg_attr(doc_cfg, doc(cfg(feature = "proc-macro")))] fn parse(self, tokens: proc_macro::TokenStream) -> Result<Self::Output> { self.parse2(proc_macro2::TokenStream::from(tokens)) |