diff options
Diffstat (limited to 'vendor/syn/src/lib.rs')
-rw-r--r-- | vendor/syn/src/lib.rs | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/vendor/syn/src/lib.rs b/vendor/syn/src/lib.rs index 74bd21b41..aeeb37ef9 100644 --- a/vendor/syn/src/lib.rs +++ b/vendor/syn/src/lib.rs @@ -249,7 +249,7 @@ //! dynamic library libproc_macro from rustc toolchain. // Syn types in rustdoc of other crates get linked to here. -#![doc(html_root_url = "https://docs.rs/syn/2.0.14")] +#![doc(html_root_url = "https://docs.rs/syn/2.0.18")] #![cfg_attr(doc_cfg, feature(doc_cfg))] #![allow(non_camel_case_types)] #![allow( @@ -290,15 +290,13 @@ clippy::too_many_lines, clippy::trivially_copy_pass_by_ref, clippy::uninlined_format_args, + clippy::unnecessary_box_returns, clippy::unnecessary_unwrap, clippy::used_underscore_binding, clippy::wildcard_imports, )] -#[cfg(all( - not(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "wasi"))), - feature = "proc-macro" -))] +#[cfg(feature = "proc-macro")] extern crate proc_macro; #[macro_use] @@ -421,11 +419,7 @@ pub use crate::op::{BinOp, UnOp}; #[cfg_attr(doc_cfg, doc(cfg(feature = "parsing")))] pub mod parse; -#[cfg(all( - not(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "wasi"))), - feature = "parsing", - feature = "proc-macro" -))] +#[cfg(all(feature = "parsing", feature = "proc-macro"))] mod parse_macro_input; #[cfg(all(feature = "parsing", feature = "printing"))] @@ -859,11 +853,7 @@ pub mod __private; /// expanded.into() /// } /// ``` -#[cfg(all( - not(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "wasi"))), - feature = "parsing", - feature = "proc-macro" -))] +#[cfg(all(feature = "parsing", feature = "proc-macro"))] #[cfg_attr(doc_cfg, doc(cfg(all(feature = "parsing", feature = "proc-macro"))))] pub fn parse<T: parse::Parse>(tokens: proc_macro::TokenStream) -> Result<T> { parse::Parser::parse(T::parse, tokens) |