| { | ||
| "git": { | ||
| "sha1": "bb9e7a46b3105e11c73416bd59b4455a71068949" | ||
| "sha1": "635ee674bf2cac1f30ab0ca4afb9d30cbf620ecc" | ||
| }, | ||
| "path_in_vcs": "" | ||
| } |
@@ -30,3 +30,3 @@ name: CI | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - uses: actions/checkout@v6 | ||
| - uses: dtolnay/rust-toolchain@master | ||
@@ -43,3 +43,3 @@ with: | ||
| - run: cargo run --manifest-path benches/Cargo.toml | ||
| - uses: actions/upload-artifact@v4 | ||
| - uses: actions/upload-artifact@v6 | ||
| if: matrix.rust == 'nightly' && always() | ||
@@ -58,3 +58,3 @@ with: | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - uses: actions/checkout@v6 | ||
| - uses: dtolnay/rust-toolchain@nightly | ||
@@ -73,3 +73,3 @@ - run: cargo generate-lockfile -Z minimal-versions | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - uses: actions/checkout@v6 | ||
| - uses: dtolnay/rust-toolchain@nightly | ||
@@ -87,3 +87,3 @@ with: | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - uses: actions/checkout@v6 | ||
| - uses: dtolnay/rust-toolchain@nightly | ||
@@ -101,3 +101,3 @@ with: | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - uses: actions/checkout@v6 | ||
| - uses: dtolnay/rust-toolchain@miri | ||
@@ -115,5 +115,5 @@ - run: cargo miri setup | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - uses: actions/checkout@v6 | ||
| - uses: dtolnay/rust-toolchain@stable | ||
| - uses: dtolnay/install@cargo-outdated | ||
| - run: cargo outdated --workspace --exit-code 1 |
+38
-38
@@ -25,11 +25,11 @@ # This file is automatically @generated by Cargo. | ||
| name = "hashbrown" | ||
| version = "0.16.0" | ||
| version = "0.16.1" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "5419bdc4f6a9207fbeba6d11b604d481addf78ecd10c11ad51e76c2f6482748d" | ||
| checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" | ||
| [[package]] | ||
| name = "indexmap" | ||
| version = "2.12.0" | ||
| version = "2.12.1" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "6717a8d2a5a929a1a2eb43a12812498ed141a0bcfb7e8f7844fbdbe4303bba9f" | ||
| checksum = "0ad4bb2b565bca0645f4d68c5c9af97fba094e9791da685bf83cb5f3ce74acf2" | ||
| dependencies = [ | ||
@@ -42,5 +42,5 @@ "equivalent", | ||
| name = "itoa" | ||
| version = "1.0.15" | ||
| version = "1.0.17" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c" | ||
| checksum = "92ecc6618181def0457392ccd0ee51198e065e016d1d527a7ac1b6dc7c1f09d2" | ||
@@ -55,5 +55,5 @@ [[package]] | ||
| name = "proc-macro2" | ||
| version = "1.0.103" | ||
| version = "1.0.105" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "5ee95bc4ef87b8d5ba32e8b7714ccc834865276eab0aed5c9958d00ec45f49e8" | ||
| checksum = "535d180e0ecab6268a3e718bb9fd44db66bbbc256257165fc699dadf70d16fe7" | ||
| dependencies = [ | ||
@@ -65,5 +65,5 @@ "unicode-ident", | ||
| name = "quote" | ||
| version = "1.0.41" | ||
| version = "1.0.42" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "ce25767e7b499d1b604768e7cde645d14cc8584231ea6b295e9c9eb22c02e1d1" | ||
| checksum = "a338cc41d27e6cc6dce6cefc13a0729dfbb81c262b1f519331575dd80ef3067f" | ||
| dependencies = [ | ||
@@ -75,3 +75,3 @@ "proc-macro2", | ||
| name = "quote" | ||
| version = "1.0.42" | ||
| version = "1.0.43" | ||
| dependencies = [ | ||
@@ -90,8 +90,2 @@ "proc-macro2", | ||
| [[package]] | ||
| name = "ryu" | ||
| version = "1.0.20" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f" | ||
| [[package]] | ||
| name = "serde" | ||
@@ -121,3 +115,3 @@ version = "1.0.228" | ||
| "proc-macro2", | ||
| "quote 1.0.41", | ||
| "quote 1.0.42", | ||
| "syn", | ||
@@ -128,11 +122,11 @@ ] | ||
| name = "serde_json" | ||
| version = "1.0.145" | ||
| version = "1.0.148" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "402a6f66d8c709116cf22f558eab210f5a50187f702eb4d7e5ef38d9a7f1c79c" | ||
| checksum = "3084b546a1dd6289475996f182a22aba973866ea8e8b02c51d9f46b1336a22da" | ||
| dependencies = [ | ||
| "itoa", | ||
| "memchr", | ||
| "ryu", | ||
| "serde", | ||
| "serde_core", | ||
| "zmij", | ||
| ] | ||
@@ -142,5 +136,5 @@ | ||
| name = "serde_spanned" | ||
| version = "1.0.3" | ||
| version = "1.0.4" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "e24345aa0fe688594e73770a5f6d1b216508b4f93484c0026d521acd30134392" | ||
| checksum = "f8bbf91e5a4d6315eee45e704372590b30e260ee83af6639d64557f51b067776" | ||
| dependencies = [ | ||
@@ -152,8 +146,8 @@ "serde_core", | ||
| name = "syn" | ||
| version = "2.0.109" | ||
| version = "2.0.113" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "2f17c7e013e88258aa9543dcbe81aca68a667a9ac37cd69c9fbc07858bfe0e2f" | ||
| checksum = "678faa00651c9eb72dd2020cbdf275d92eccb2400d568e419efdd64838145cb4" | ||
| dependencies = [ | ||
| "proc-macro2", | ||
| "quote 1.0.41", | ||
| "quote 1.0.42", | ||
| "unicode-ident", | ||
@@ -179,5 +173,5 @@ ] | ||
| name = "toml" | ||
| version = "0.9.8" | ||
| version = "0.9.10+spec-1.1.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "f0dc8b1fb61449e27716ec0e1bdf0f6b8f3e8f6b05391e8497b8b6d7804ea6d8" | ||
| checksum = "0825052159284a1a8b4d6c0c86cbc801f2da5afd2b225fa548c72f2e74002f48" | ||
| dependencies = [ | ||
@@ -195,5 +189,5 @@ "indexmap", | ||
| name = "toml_datetime" | ||
| version = "0.7.3" | ||
| version = "0.7.5+spec-1.1.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "f2cdb639ebbc97961c51720f858597f7f24c4fc295327923af55b74c3c724533" | ||
| checksum = "92e1cfed4a3038bc5a127e35a2d360f145e1f4b971b551a2ba5fd7aedf7e1347" | ||
| dependencies = [ | ||
@@ -205,5 +199,5 @@ "serde_core", | ||
| name = "toml_parser" | ||
| version = "1.0.4" | ||
| version = "1.0.6+spec-1.1.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "c0cbe268d35bdb4bb5a56a2de88d0ad0eb70af5384a99d648cd4b3d04039800e" | ||
| checksum = "a3198b4b0a8e11f09dd03e133c0280504d0801269e9afa46362ffde1cbeebf44" | ||
| dependencies = [ | ||
@@ -215,11 +209,11 @@ "winnow", | ||
| name = "toml_writer" | ||
| version = "1.0.4" | ||
| version = "1.0.6+spec-1.1.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "df8b2b54733674ad286d16267dcfc7a71ed5c776e4ac7aa3c3e2561f7c637bf2" | ||
| checksum = "ab16f14aed21ee8bfd8ec22513f7287cd4a91aa92e44edfe2c17ddd004e92607" | ||
| [[package]] | ||
| name = "trybuild" | ||
| version = "1.0.113" | ||
| version = "1.0.114" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "559b6a626c0815c942ac98d434746138b4f89ddd6a1b8cbb168c6845fb3376c5" | ||
| checksum = "3e17e807bff86d2a06b52bca4276746584a78375055b6e45843925ce2802b335" | ||
| dependencies = [ | ||
@@ -268,4 +262,10 @@ "dissimilar", | ||
| name = "winnow" | ||
| version = "0.7.13" | ||
| version = "0.7.14" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "21a0236b59786fed61e2a80582dd500fe61f18b5dca67a4a067d0bc9039339cf" | ||
| checksum = "5a5364e9d77fcdeeaa6062ced926ee3381faa2ee02d3eb83a5c27a8825540829" | ||
| [[package]] | ||
| name = "zmij" | ||
| version = "1.0.11" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "dcb2c125bd7365735bebeb420ccb880265ed2d2bddcbcd49f597fdfe6bd5e577" |
+2
-2
@@ -13,6 +13,6 @@ # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO | ||
| [package] | ||
| edition = "2018" | ||
| edition = "2021" | ||
| rust-version = "1.68" | ||
| name = "quote" | ||
| version = "1.0.42" | ||
| version = "1.0.43" | ||
| authors = ["David Tolnay <dtolnay@gmail.com>"] | ||
@@ -19,0 +19,0 @@ build = "build.rs" |
+4
-2
@@ -99,6 +99,8 @@ use super::ToTokens; | ||
| { | ||
| for (i, token) in iter.into_iter().enumerate() { | ||
| if i > 0 { | ||
| let mut first = true; | ||
| for token in iter { | ||
| if !first { | ||
| op.to_tokens(stream); | ||
| } | ||
| first = false; | ||
| token.to_tokens(stream); | ||
@@ -105,0 +107,0 @@ } |
+7
-7
@@ -7,4 +7,4 @@ /// Formatting macro for constructing `Ident`s. | ||
| /// | ||
| /// Syntax is copied from the [`format!`] macro, supporting both positional and | ||
| /// named arguments. | ||
| /// Syntax is copied from the [`format_args!`] macro, supporting both positional | ||
| /// and named arguments. | ||
| /// | ||
@@ -15,8 +15,8 @@ /// Only a limited set of formatting traits are supported. The current mapping | ||
| /// * `{}` ⇒ [`IdentFragment`] | ||
| /// * `{:o}` ⇒ [`Octal`](std::fmt::Octal) | ||
| /// * `{:x}` ⇒ [`LowerHex`](std::fmt::LowerHex) | ||
| /// * `{:X}` ⇒ [`UpperHex`](std::fmt::UpperHex) | ||
| /// * `{:b}` ⇒ [`Binary`](std::fmt::Binary) | ||
| /// * `{:o}` ⇒ [`Octal`](core::fmt::Octal) | ||
| /// * `{:x}` ⇒ [`LowerHex`](core::fmt::LowerHex) | ||
| /// * `{:X}` ⇒ [`UpperHex`](core::fmt::UpperHex) | ||
| /// * `{:b}` ⇒ [`Binary`](core::fmt::Binary) | ||
| /// | ||
| /// See [`std::fmt`] for more information. | ||
| /// See [`core::fmt`] for more information. | ||
| /// | ||
@@ -23,0 +23,0 @@ /// <br> |
@@ -1,2 +0,3 @@ | ||
| use alloc::borrow::Cow; | ||
| use alloc::borrow::{Cow, ToOwned}; | ||
| use alloc::string::{String, ToString}; | ||
| use core::fmt; | ||
@@ -3,0 +4,0 @@ use proc_macro2::{Ident, Span}; |
+37
-15
@@ -91,4 +91,4 @@ //! [![github]](https://github.com/dtolnay/quote) [![crates-io]](https://crates.io/crates/quote) [![docs-rs]](https://docs.rs/quote) | ||
| // Quote types in rustdoc of other crates get linked to here. | ||
| #![doc(html_root_url = "https://docs.rs/quote/1.0.42")] | ||
| #![no_std] | ||
| #![doc(html_root_url = "https://docs.rs/quote/1.0.43")] | ||
| #![allow( | ||
@@ -107,2 +107,3 @@ clippy::doc_markdown, | ||
| extern crate alloc; | ||
| extern crate std; | ||
@@ -278,3 +279,3 @@ #[cfg(feature = "proc-macro")] | ||
| /// | ||
| /// ``` | ||
| /// ```edition2018 | ||
| /// # use proc_macro2::{self as syn, Span}; | ||
@@ -917,3 +918,3 @@ /// # use quote::quote; | ||
| use $crate::__private::ext::*; | ||
| let mut _i = 0usize; | ||
| let mut _first = true; | ||
| let has_iter = $crate::__private::HasIterator::<false>; | ||
@@ -924,6 +925,6 @@ $crate::pounded_var_names!{quote_bind_into_iter!(has_iter) () $($inner)*} | ||
| $crate::pounded_var_names!{quote_bind_next_or_break!() () $($inner)*} | ||
| if _i > 0 { | ||
| if !_first { | ||
| $crate::quote_token!{$sep $tokens} | ||
| } | ||
| _i += 1; | ||
| _first = false; | ||
| $crate::quote_each_token!{$tokens $($inner)*} | ||
@@ -980,3 +981,3 @@ } | ||
| use $crate::__private::ext::*; | ||
| let mut _i = 0usize; | ||
| let mut _first = true; | ||
| let has_iter = $crate::__private::HasIterator::<false>; | ||
@@ -987,6 +988,6 @@ $crate::pounded_var_names!{quote_bind_into_iter!(has_iter) () $($inner)*} | ||
| $crate::pounded_var_names!{quote_bind_next_or_break!() () $($inner)*} | ||
| if _i > 0 { | ||
| if !_first { | ||
| $crate::quote_token_spanned!{$sep $tokens $span} | ||
| } | ||
| _i += 1; | ||
| _first = false; | ||
| $crate::quote_each_token_spanned!{$tokens $span $($inner)*} | ||
@@ -1024,3 +1025,6 @@ } | ||
| ($ident:ident $tokens:ident) => { | ||
| $crate::__private::push_ident(&mut $tokens, stringify!($ident)); | ||
| $crate::__private::push_ident( | ||
| &mut $tokens, | ||
| $crate::__private::stringify!($ident), | ||
| ); | ||
| }; | ||
@@ -1229,3 +1233,6 @@ | ||
| ($lifetime:lifetime $tokens:ident) => { | ||
| $crate::__private::push_lifetime(&mut $tokens, stringify!($lifetime)); | ||
| $crate::__private::push_lifetime( | ||
| &mut $tokens, | ||
| $crate::__private::stringify!($lifetime), | ||
| ); | ||
| }; | ||
@@ -1238,3 +1245,6 @@ | ||
| ($other:tt $tokens:ident) => { | ||
| $crate::__private::parse(&mut $tokens, stringify!($other)); | ||
| $crate::__private::parse( | ||
| &mut $tokens, | ||
| $crate::__private::stringify!($other), | ||
| ); | ||
| }; | ||
@@ -1248,3 +1258,7 @@ } | ||
| ($ident:ident $tokens:ident $span:ident) => { | ||
| $crate::__private::push_ident_spanned(&mut $tokens, $span, stringify!($ident)); | ||
| $crate::__private::push_ident_spanned( | ||
| &mut $tokens, | ||
| $span, | ||
| $crate::__private::stringify!($ident), | ||
| ); | ||
| }; | ||
@@ -1456,3 +1470,7 @@ | ||
| ($lifetime:lifetime $tokens:ident $span:ident) => { | ||
| $crate::__private::push_lifetime_spanned(&mut $tokens, $span, stringify!($lifetime)); | ||
| $crate::__private::push_lifetime_spanned( | ||
| &mut $tokens, | ||
| $span, | ||
| $crate::__private::stringify!($lifetime), | ||
| ); | ||
| }; | ||
@@ -1465,4 +1483,8 @@ | ||
| ($other:tt $tokens:ident $span:ident) => { | ||
| $crate::__private::parse_spanned(&mut $tokens, $span, stringify!($other)); | ||
| $crate::__private::parse_spanned( | ||
| &mut $tokens, | ||
| $span, | ||
| $crate::__private::stringify!($other), | ||
| ); | ||
| }; | ||
| } |
+3
-0
@@ -12,2 +12,4 @@ use self::get_span::{GetSpan, GetSpanBase, GetSpanInner}; | ||
| pub use core::option::Option; | ||
| #[doc(hidden)] | ||
| pub use core::stringify; | ||
@@ -77,2 +79,3 @@ #[doc(hidden)] | ||
| use alloc::collections::btree_set::{self, BTreeSet}; | ||
| use alloc::vec::Vec; | ||
| use core::slice; | ||
@@ -79,0 +82,0 @@ |
+5
-2
| use super::TokenStreamExt; | ||
| use alloc::borrow::Cow; | ||
| use alloc::borrow::{Cow, ToOwned}; | ||
| use alloc::boxed::Box; | ||
| use alloc::ffi::CString; | ||
| use alloc::rc::Rc; | ||
| use alloc::string::String; | ||
| use core::ffi::CStr; | ||
| use core::iter; | ||
| use proc_macro2::{Group, Ident, Literal, Punct, Span, TokenStream, TokenTree}; | ||
| use std::ffi::{CStr, CString}; | ||
@@ -8,0 +11,0 @@ /// Types that can be interpolated inside a `quote!` invocation. |
+1
-0
@@ -564,2 +564,3 @@ #![allow( | ||
| #[cfg(feature = "proc-macro")] | ||
| if false { | ||
@@ -566,0 +567,0 @@ let proc_macro_span = proc_macro::Span::call_site(); |
Sorry, the diff of this file is not supported yet