]> git.proxmox.com Git - rustc.git/blobdiff - vendor/syn/src/lib.rs
New upstream version 1.57.0+dfsg1
[rustc.git] / vendor / syn / src / lib.rs
index b8390953718714e9966b94ad234f12044112d7fb..deeb9d3027e31ab1c7421d450922aeeac7a22475 100644 (file)
 //!   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/1.0.74")]
+#![doc(html_root_url = "https://docs.rs/syn/1.0.77")]
 #![cfg_attr(doc_cfg, feature(doc_cfg))]
 #![allow(non_camel_case_types)]
 // Ignored clippy lints.
 #![allow(
+    clippy::collapsible_match, // https://github.com/rust-lang/rust-clippy/issues/7575
     clippy::doc_markdown,
     clippy::eval_order_dependence,
     clippy::inherent_to_string,
@@ -890,6 +891,9 @@ pub fn parse<T: parse::Parse>(tokens: proc_macro::TokenStream) -> Result<T> {
 
 /// Parse a proc-macro2 token stream into the chosen syntax tree node.
 ///
+/// 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.
+///
 /// This function parses a `proc_macro2::TokenStream` which is commonly useful
 /// when the input comes from a node of the Syn syntax tree, for example the
 /// body tokens of a [`Macro`] node. When in a procedural macro parsing the