0

Roll syn: 2.0.99 => 2.0.100 in //third_party/rust.

This CL has been created semi-automatically.  The expected review
process and other details can be found at
//tools/crates/create_update_cl.md

Updated crates:

* syn: 2.0.99 => 2.0.100

Chromium `supply-chain/config.toml` policy requires that the following
audit criteria are met (note that these are the *minimum* required
criteria and `supply-chain/audits.toml` can and should record a stricter
certification if possible;  see also //docs/rust-unsafe.md):

* syn@2.0.100: crypto-safe, safe-to-deploy, ub-risk-2

R=chrome-unsafe-rust-reviews@google.com

Bug: None
Change-Id: I3b5ca17416bd07fc40060ee4e6693c8fb0ceb9dd
Cq-Include-Trybots: chromium/try:android-rust-arm32-rel
Cq-Include-Trybots: chromium/try:android-rust-arm64-dbg
Cq-Include-Trybots: chromium/try:android-rust-arm64-rel
Cq-Include-Trybots: chromium/try:linux-rust-x64-dbg
Cq-Include-Trybots: chromium/try:linux-rust-x64-rel
Cq-Include-Trybots: chromium/try:win-rust-x64-dbg
Cq-Include-Trybots: chromium/try:win-rust-x64-rel
Disable-Rts: True
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6352390
Reviewed-by: Jonathan Hao <phao@chromium.org>
Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1432704}
This commit is contained in:
Lukasz Anforowicz
2025-03-14 07:21:43 -07:00
committed by Chromium LUCI CQ
parent 8ec10d77b6
commit d6feed66da
112 changed files with 195 additions and 178 deletions

@@ -758,8 +758,8 @@ third_party/rust/chromium_crates_io/vendor/static_assertions-1.1.0 5 2
third_party/rust/chromium_crates_io/vendor/static_assertions-1.1.0/src 2 1
third_party/rust/chromium_crates_io/vendor/strum-0.25.0/src 1 1
third_party/rust/chromium_crates_io/vendor/strum_macros-0.25.3 1 1
third_party/rust/chromium_crates_io/vendor/syn-2.0.99 1 1
third_party/rust/chromium_crates_io/vendor/syn-2.0.99/src 2 1
third_party/rust/chromium_crates_io/vendor/syn-2.0.100 1 1
third_party/rust/chromium_crates_io/vendor/syn-2.0.100/src 2 1
third_party/rust/chromium_crates_io/vendor/synstructure-0.13.1 1 1
third_party/rust/chromium_crates_io/vendor/termcolor-1.4.1/.github/workflows 3 1
third_party/rust/chromium_crates_io/vendor/unicode-ident-1.0.18 1 1

@@ -1287,7 +1287,7 @@ dependencies = [
[[package]]
name = "syn"
version = "2.0.99"
version = "2.0.100"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"proc-macro2",

@@ -455,7 +455,7 @@ criteria = ["crypto-safe", "safe-to-deploy", "ub-risk-2"]
[policy."strum_macros:0.25.3"]
criteria = ["crypto-safe", "safe-to-deploy", "ub-risk-2"]
[policy."syn:2.0.99"]
[policy."syn:2.0.100"]
criteria = ["crypto-safe", "safe-to-deploy", "ub-risk-2"]
[policy."synstructure:0.13.1"]
@@ -722,7 +722,7 @@ This feature is banned in gnrt_config.toml.
"""
[[exemptions.syn]]
version = "2.0.99"
version = "2.0.100"
criteria = ["safe-to-deploy", "crypto-safe", "ub-risk-2"]
notes = """
Grandparented-in when setting up `cargo vet` in Jan 2024
@@ -757,6 +757,7 @@ Exemption updated to 2.0.95 when updating the crate in January 2025.
Exemption updated to 2.0.96 when updating the crate in January 2025.
Exemption updated to 2.0.98 when updating the crate in February 2025.
Exemption updated to 2.0.99 when updating the crate in February 2025.
Exemption updated to 2.0.100 when updating the crate in March 2025.
"""
[[exemptions.tinystr]]

@@ -0,0 +1,6 @@
{
"git": {
"sha1": "5357c8fb6bd29fd7c829e0aede1dab4b45a6e00f"
},
"path_in_vcs": ""
}

@@ -37,13 +37,13 @@ checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
[[package]]
name = "automod"
version = "1.0.14"
version = "1.0.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "edf3ee19dbc0a46d740f6f0926bde8c50f02bdbc7b536842da28f6ac56513a8b"
checksum = "ebb4bd301db2e2ca1f5be131c24eb8ebf2d9559bc3744419e93baf8ddea7e670"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.98",
"syn 2.0.99",
]
[[package]]
@@ -81,9 +81,9 @@ checksum = "1628fb46dfa0b37568d12e5edd512553eccf6a22a78e8bde00bb4aed84d5bdbf"
[[package]]
name = "bytes"
version = "1.10.0"
version = "1.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f61dac84819c6588b558454b194026eb1f09c293b9036ae9b159e74e73ab6cf9"
checksum = "d71b6127be86fdcfddb610f7182ac57211d4b18a3e9c82eb2d17662f2227ad6a"
[[package]]
name = "cc"
@@ -170,14 +170,14 @@ checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.98",
"syn 2.0.99",
]
[[package]]
name = "either"
version = "1.14.0"
version = "1.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b7914353092ddf589ad78f25c5c1c21b7f80b0ff8621e7c814c3485b5306da9d"
checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
[[package]]
name = "encode_unicode"
@@ -408,9 +408,9 @@ dependencies = [
[[package]]
name = "httparse"
version = "1.10.0"
version = "1.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f2d708df4e7140240a16cd6ab0ab65c972d7433ab77819ea693fde9c43811e2a"
checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"
[[package]]
name = "hyper"
@@ -599,7 +599,7 @@ checksum = "1ec89e9337638ecdc08744df490b221a7399bf8d164eb52a665454e60e075ad6"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.98",
"syn 2.0.99",
]
[[package]]
@@ -654,9 +654,9 @@ checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130"
[[package]]
name = "itoa"
version = "1.0.14"
version = "1.0.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674"
checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c"
[[package]]
name = "js-sys"
@@ -693,9 +693,9 @@ checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f"
[[package]]
name = "linux-raw-sys"
version = "0.4.15"
version = "0.9.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab"
checksum = "6db9c683daf087dc577b7506e9695b3d556a9f3849903fa28186283afd6809e9"
[[package]]
name = "litemap"
@@ -796,7 +796,7 @@ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.98",
"syn 2.0.99",
]
[[package]]
@@ -825,22 +825,22 @@ checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e"
[[package]]
name = "pin-project"
version = "1.1.9"
version = "1.1.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dfe2e71e1471fe07709406bf725f710b02927c9c54b2b5b2ec0e8087d97c327d"
checksum = "677f1add503faace112b9f1373e43e9e054bfdd22ff1a63c1bc485eaec6a6a8a"
dependencies = [
"pin-project-internal",
]
[[package]]
name = "pin-project-internal"
version = "1.1.9"
version = "1.1.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f6e859e6e5bd50440ab63c47e3ebabc90f26251f7c73c3d3e837b74a1cc3fa67"
checksum = "6e918e4ff8c4549eb882f14b3a4bc8c8bc93de829416eacf579f1207a8fbf861"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.98",
"syn 2.0.99",
]
[[package]]
@@ -857,9 +857,9 @@ checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
[[package]]
name = "pkg-config"
version = "0.3.31"
version = "0.3.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "953ec861398dccce10c670dfeaf3ec4911ca479e9c02154b3a215178c5f566f2"
checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c"
[[package]]
name = "proc-macro2"
@@ -872,9 +872,9 @@ dependencies = [
[[package]]
name = "quote"
version = "1.0.38"
version = "1.0.39"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0e4dccaaaf89514f546c693ddc140f729f958c247918a13380cccc6078391acc"
checksum = "c1f1914ce909e1658d9907913b4b91947430c7d9be598b15a1912935b8c04801"
dependencies = [
"proc-macro2",
]
@@ -901,9 +901,9 @@ dependencies = [
[[package]]
name = "redox_syscall"
version = "0.5.9"
version = "0.5.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "82b568323e98e49e2a0899dcee453dd679fae22d69adf9b11dd508d1549b7e2f"
checksum = "0b8c0c260b63a8219631167be35e6a988e9554dbd323f8bd08439c8ed1302bd1"
dependencies = [
"bitflags",
]
@@ -925,7 +925,7 @@ checksum = "1165225c21bff1f3bbce98f5a1f889949bc902d3575308cc7b0de30b4f6d27c7"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.98",
"syn 2.0.99",
]
[[package]]
@@ -975,9 +975,9 @@ dependencies = [
[[package]]
name = "ring"
version = "0.17.11"
version = "0.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "da5349ae27d3887ca812fb375b45a4fbb36d8d12d2df394968cd86e35683fe73"
checksum = "70ac5d832aa16abd7d1def883a8545280c20a60f523a370aa3a9617c2b8550ee"
dependencies = [
"cc",
"cfg-if",
@@ -995,9 +995,9 @@ checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f"
[[package]]
name = "rustix"
version = "0.38.44"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154"
checksum = "dade4812df5c384711475be5fcd8c162555352945401aed22a35bffeab61f657"
dependencies = [
"bitflags",
"errno",
@@ -1047,15 +1047,15 @@ dependencies = [
[[package]]
name = "rustversion"
version = "1.0.19"
version = "1.0.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f7c45b9784283f1b2e7fb61b42047c2fd678ef0960d4f6f1eba131594cc369d4"
checksum = "eded382c5f5f786b989652c49544c4877d9f015cc22e145a5ea8ea66c2921cd2"
[[package]]
name = "ryu"
version = "1.0.19"
version = "1.0.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6ea1a2d0a644769cc99faa24c3ad26b379b786fe7c36fd3c546254801650e6dd"
checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f"
[[package]]
name = "same-file"
@@ -1100,29 +1100,29 @@ dependencies = [
[[package]]
name = "serde"
version = "1.0.218"
version = "1.0.219"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e8dfc9d19bdbf6d17e22319da49161d5d0108e4188e8b680aef6299eed22df60"
checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6"
dependencies = [
"serde_derive",
]
[[package]]
name = "serde_derive"
version = "1.0.218"
version = "1.0.219"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f09503e191f4e797cb8aac08e9a4a4695c5edf6a2e70e376d961ddd5c969f82b"
checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.98",
"syn 2.0.99",
]
[[package]]
name = "serde_json"
version = "1.0.139"
version = "1.0.140"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "44f86c3acccc9c65b153fe1b85a3be07fe5515274ec9f0653b4a0875731c72a6"
checksum = "20068b6e96dc6c9bd23e01df8827e6c7e1f2fddd43c21810382803c136b99373"
dependencies = [
"itoa",
"memchr",
@@ -1193,9 +1193,9 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
[[package]]
name = "syn"
version = "2.0.98"
version = "2.0.99"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "36147f1a48ae0ec2b5b3bc5b537d267457555a10dc06f3dbc8cb11ba3006d3b1"
checksum = "e02e925281e18ffd9d640e234264753c43edc62d64b2d4cf898f1bc5e75f3fc2"
dependencies = [
"proc-macro2",
"quote",
@@ -1204,7 +1204,7 @@ dependencies = [
[[package]]
name = "syn"
version = "2.0.99"
version = "2.0.100"
dependencies = [
"anyhow",
"automod",
@@ -1246,7 +1246,7 @@ checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.98",
"syn 2.0.99",
]
[[package]]
@@ -1283,9 +1283,9 @@ dependencies = [
[[package]]
name = "tempfile"
version = "3.17.1"
version = "3.18.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "22e5a0acb1f3f55f65cc4a866c361b2fb2a0ff6366785ae6fbb5f85df07ba230"
checksum = "2c317e0a526ee6120d8dabad239c8dadca62b24b6f168914bbbc8e2fb1f0e567"
dependencies = [
"cfg-if",
"fastrand",
@@ -1316,9 +1316,9 @@ dependencies = [
[[package]]
name = "tokio"
version = "1.43.0"
version = "1.44.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3d61fa4ffa3de412bfea335c6ecff681de2b609ba3c77ef3e00e521813a9ed9e"
checksum = "9975ea0f48b5aa3972bf2d888c238182458437cc2a19374b81b25cdf1023fb3a"
dependencies = [
"backtrace",
"bytes",
@@ -1416,9 +1416,9 @@ checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
[[package]]
name = "unicode-ident"
version = "1.0.17"
version = "1.0.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "00e2473a93778eb0bad35909dff6a10d28e63f792f16ed15e404fca9d5eeedbe"
checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
[[package]]
name = "untrusted"
@@ -1511,7 +1511,7 @@ dependencies = [
"log",
"proc-macro2",
"quote",
"syn 2.0.98",
"syn 2.0.99",
"wasm-bindgen-shared",
]
@@ -1546,7 +1546,7 @@ checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.98",
"syn 2.0.99",
"wasm-bindgen-backend",
"wasm-bindgen-shared",
]
@@ -1714,12 +1714,11 @@ checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51"
[[package]]
name = "xattr"
version = "1.4.0"
version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e105d177a3871454f754b33bb0ee637ecaaac997446375fd3e5d43a2ed00c909"
checksum = "0d65cbf2f12c15564212d48f4e3dfb87923d25d611f2aed18f4cb23f0413d89e"
dependencies = [
"libc",
"linux-raw-sys",
"rustix",
]
@@ -1743,7 +1742,7 @@ checksum = "2380878cad4ac9aac1e2435f3eb4020e8374b5f13c296cb75b4620ff8e229154"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.98",
"syn 2.0.99",
"synstructure",
]
@@ -1764,7 +1763,7 @@ checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.98",
"syn 2.0.99",
"synstructure",
]
@@ -1793,5 +1792,5 @@ checksum = "6eafa6dfb17584ea3e2bd6e76e0cc15ad7af12b09abdd1ca55961bed9b1063c6"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.98",
"syn 2.0.99",
]

@@ -13,7 +13,7 @@
edition = "2021"
rust-version = "1.61"
name = "syn"
version = "2.0.99"
version = "2.0.100"
authors = ["David Tolnay <dtolnay@gmail.com>"]
build = false
include = [

@@ -1,6 +1,6 @@
[package]
name = "syn"
version = "2.0.99"
version = "2.0.100"
authors = ["David Tolnay <dtolnay@gmail.com>"]
categories = ["development-tools::procedural-macro-helpers", "parser-implementations"]
description = "Parser for Rust source code"

@@ -793,7 +793,7 @@ pub trait Fold {
fold_signature(self, i)
}
fn fold_span(&mut self, i: proc_macro2::Span) -> proc_macro2::Span {
fold_span(self, i)
i
}
#[cfg(feature = "full")]
#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
@@ -813,6 +813,12 @@ pub trait Fold {
fn fold_stmt_macro(&mut self, i: crate::StmtMacro) -> crate::StmtMacro {
fold_stmt_macro(self, i)
}
fn fold_token_stream(
&mut self,
i: proc_macro2::TokenStream,
) -> proc_macro2::TokenStream {
i
}
#[cfg(any(feature = "derive", feature = "full"))]
#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
fn fold_trait_bound(&mut self, i: crate::TraitBound) -> crate::TraitBound {
@@ -1418,7 +1424,9 @@ where
crate::Expr::Unsafe(_binding_0) => {
crate::Expr::Unsafe(full!(f.fold_expr_unsafe(_binding_0)))
}
crate::Expr::Verbatim(_binding_0) => crate::Expr::Verbatim(_binding_0),
crate::Expr::Verbatim(_binding_0) => {
crate::Expr::Verbatim(f.fold_token_stream(_binding_0))
}
crate::Expr::While(_binding_0) => {
crate::Expr::While(full!(f.fold_expr_while(_binding_0)))
}
@@ -2089,7 +2097,7 @@ where
crate::ForeignItem::Macro(f.fold_foreign_item_macro(_binding_0))
}
crate::ForeignItem::Verbatim(_binding_0) => {
crate::ForeignItem::Verbatim(_binding_0)
crate::ForeignItem::Verbatim(f.fold_token_stream(_binding_0))
}
}
}
@@ -2251,7 +2259,9 @@ where
crate::ImplItem::Macro(_binding_0) => {
crate::ImplItem::Macro(f.fold_impl_item_macro(_binding_0))
}
crate::ImplItem::Verbatim(_binding_0) => crate::ImplItem::Verbatim(_binding_0),
crate::ImplItem::Verbatim(_binding_0) => {
crate::ImplItem::Verbatim(f.fold_token_stream(_binding_0))
}
}
}
#[cfg(feature = "full")]
@@ -2389,7 +2399,9 @@ where
crate::Item::Union(f.fold_item_union(_binding_0))
}
crate::Item::Use(_binding_0) => crate::Item::Use(f.fold_item_use(_binding_0)),
crate::Item::Verbatim(_binding_0) => crate::Item::Verbatim(_binding_0),
crate::Item::Verbatim(_binding_0) => {
crate::Item::Verbatim(f.fold_token_stream(_binding_0))
}
}
}
#[cfg(feature = "full")]
@@ -2812,7 +2824,7 @@ where
path: f.fold_path(node.path),
bang_token: node.bang_token,
delimiter: f.fold_macro_delimiter(node.delimiter),
tokens: node.tokens,
tokens: f.fold_token_stream(node.tokens),
}
}
#[cfg(any(feature = "derive", feature = "full"))]
@@ -2874,7 +2886,7 @@ where
crate::MetaList {
path: f.fold_path(node.path),
delimiter: f.fold_macro_delimiter(node.delimiter),
tokens: node.tokens,
tokens: f.fold_token_stream(node.tokens),
}
}
#[cfg(any(feature = "derive", feature = "full"))]
@@ -2935,7 +2947,9 @@ where
crate::Pat::TupleStruct(f.fold_pat_tuple_struct(_binding_0))
}
crate::Pat::Type(_binding_0) => crate::Pat::Type(f.fold_pat_type(_binding_0)),
crate::Pat::Verbatim(_binding_0) => crate::Pat::Verbatim(_binding_0),
crate::Pat::Verbatim(_binding_0) => {
crate::Pat::Verbatim(f.fold_token_stream(_binding_0))
}
crate::Pat::Wild(_binding_0) => crate::Pat::Wild(f.fold_pat_wild(_binding_0)),
}
}
@@ -3366,7 +3380,9 @@ where
crate::TraitItem::Macro(_binding_0) => {
crate::TraitItem::Macro(f.fold_trait_item_macro(_binding_0))
}
crate::TraitItem::Verbatim(_binding_0) => crate::TraitItem::Verbatim(_binding_0),
crate::TraitItem::Verbatim(_binding_0) => {
crate::TraitItem::Verbatim(f.fold_token_stream(_binding_0))
}
}
}
#[cfg(feature = "full")]
@@ -3482,7 +3498,9 @@ where
crate::Type::Tuple(_binding_0) => {
crate::Type::Tuple(f.fold_type_tuple(_binding_0))
}
crate::Type::Verbatim(_binding_0) => crate::Type::Verbatim(_binding_0),
crate::Type::Verbatim(_binding_0) => {
crate::Type::Verbatim(f.fold_token_stream(_binding_0))
}
}
}
#[cfg(any(feature = "derive", feature = "full"))]
@@ -3607,7 +3625,7 @@ where
)
}
crate::TypeParamBound::Verbatim(_binding_0) => {
crate::TypeParamBound::Verbatim(_binding_0)
crate::TypeParamBound::Verbatim(f.fold_token_stream(_binding_0))
}
}
}

@@ -740,9 +740,7 @@ pub trait Visit<'ast> {
fn visit_signature(&mut self, i: &'ast crate::Signature) {
visit_signature(self, i);
}
fn visit_span(&mut self, i: &proc_macro2::Span) {
visit_span(self, i);
}
fn visit_span(&mut self, i: &proc_macro2::Span) {}
#[cfg(feature = "full")]
#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
fn visit_static_mutability(&mut self, i: &'ast crate::StaticMutability) {
@@ -758,6 +756,7 @@ pub trait Visit<'ast> {
fn visit_stmt_macro(&mut self, i: &'ast crate::StmtMacro) {
visit_stmt_macro(self, i);
}
fn visit_token_stream(&mut self, i: &'ast proc_macro2::TokenStream) {}
#[cfg(any(feature = "derive", feature = "full"))]
#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
fn visit_trait_bound(&mut self, i: &'ast crate::TraitBound) {
@@ -1421,7 +1420,7 @@ where
full!(v.visit_expr_unsafe(_binding_0));
}
crate::Expr::Verbatim(_binding_0) => {
skip!(_binding_0);
v.visit_token_stream(_binding_0);
}
crate::Expr::While(_binding_0) => {
full!(v.visit_expr_while(_binding_0));
@@ -2137,7 +2136,7 @@ where
v.visit_foreign_item_macro(_binding_0);
}
crate::ForeignItem::Verbatim(_binding_0) => {
skip!(_binding_0);
v.visit_token_stream(_binding_0);
}
}
}
@@ -2288,7 +2287,7 @@ where
v.visit_impl_item_macro(_binding_0);
}
crate::ImplItem::Verbatim(_binding_0) => {
skip!(_binding_0);
v.visit_token_stream(_binding_0);
}
}
}
@@ -2426,7 +2425,7 @@ where
v.visit_item_use(_binding_0);
}
crate::Item::Verbatim(_binding_0) => {
skip!(_binding_0);
v.visit_token_stream(_binding_0);
}
}
}
@@ -2845,7 +2844,7 @@ where
v.visit_path(&node.path);
skip!(node.bang_token);
v.visit_macro_delimiter(&node.delimiter);
skip!(node.tokens);
v.visit_token_stream(&node.tokens);
}
#[cfg(any(feature = "derive", feature = "full"))]
#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
@@ -2906,7 +2905,7 @@ where
{
v.visit_path(&node.path);
v.visit_macro_delimiter(&node.delimiter);
skip!(node.tokens);
v.visit_token_stream(&node.tokens);
}
#[cfg(any(feature = "derive", feature = "full"))]
#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
@@ -2987,7 +2986,7 @@ where
v.visit_pat_type(_binding_0);
}
crate::Pat::Verbatim(_binding_0) => {
skip!(_binding_0);
v.visit_token_stream(_binding_0);
}
crate::Pat::Wild(_binding_0) => {
v.visit_pat_wild(_binding_0);
@@ -3438,7 +3437,7 @@ where
v.visit_trait_item_macro(_binding_0);
}
crate::TraitItem::Verbatim(_binding_0) => {
skip!(_binding_0);
v.visit_token_stream(_binding_0);
}
}
}
@@ -3562,7 +3561,7 @@ where
v.visit_type_tuple(_binding_0);
}
crate::Type::Verbatim(_binding_0) => {
skip!(_binding_0);
v.visit_token_stream(_binding_0);
}
}
}
@@ -3683,7 +3682,7 @@ where
full!(v.visit_precise_capture(_binding_0));
}
crate::TypeParamBound::Verbatim(_binding_0) => {
skip!(_binding_0);
v.visit_token_stream(_binding_0);
}
}
}

@@ -748,9 +748,7 @@ pub trait VisitMut {
fn visit_signature_mut(&mut self, i: &mut crate::Signature) {
visit_signature_mut(self, i);
}
fn visit_span_mut(&mut self, i: &mut proc_macro2::Span) {
visit_span_mut(self, i);
}
fn visit_span_mut(&mut self, i: &mut proc_macro2::Span) {}
#[cfg(feature = "full")]
#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
fn visit_static_mutability_mut(&mut self, i: &mut crate::StaticMutability) {
@@ -766,6 +764,7 @@ pub trait VisitMut {
fn visit_stmt_macro_mut(&mut self, i: &mut crate::StmtMacro) {
visit_stmt_macro_mut(self, i);
}
fn visit_token_stream_mut(&mut self, i: &mut proc_macro2::TokenStream) {}
#[cfg(any(feature = "derive", feature = "full"))]
#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
fn visit_trait_bound_mut(&mut self, i: &mut crate::TraitBound) {
@@ -1419,7 +1418,7 @@ where
full!(v.visit_expr_unsafe_mut(_binding_0));
}
crate::Expr::Verbatim(_binding_0) => {
skip!(_binding_0);
v.visit_token_stream_mut(_binding_0);
}
crate::Expr::While(_binding_0) => {
full!(v.visit_expr_while_mut(_binding_0));
@@ -2049,7 +2048,7 @@ where
v.visit_foreign_item_macro_mut(_binding_0);
}
crate::ForeignItem::Verbatim(_binding_0) => {
skip!(_binding_0);
v.visit_token_stream_mut(_binding_0);
}
}
}
@@ -2191,7 +2190,7 @@ where
v.visit_impl_item_macro_mut(_binding_0);
}
crate::ImplItem::Verbatim(_binding_0) => {
skip!(_binding_0);
v.visit_token_stream_mut(_binding_0);
}
}
}
@@ -2321,7 +2320,7 @@ where
v.visit_item_use_mut(_binding_0);
}
crate::Item::Verbatim(_binding_0) => {
skip!(_binding_0);
v.visit_token_stream_mut(_binding_0);
}
}
}
@@ -2706,7 +2705,7 @@ where
v.visit_path_mut(&mut node.path);
skip!(node.bang_token);
v.visit_macro_delimiter_mut(&mut node.delimiter);
skip!(node.tokens);
v.visit_token_stream_mut(&mut node.tokens);
}
#[cfg(any(feature = "derive", feature = "full"))]
#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
@@ -2767,7 +2766,7 @@ where
{
v.visit_path_mut(&mut node.path);
v.visit_macro_delimiter_mut(&mut node.delimiter);
skip!(node.tokens);
v.visit_token_stream_mut(&mut node.tokens);
}
#[cfg(any(feature = "derive", feature = "full"))]
#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
@@ -2848,7 +2847,7 @@ where
v.visit_pat_type_mut(_binding_0);
}
crate::Pat::Verbatim(_binding_0) => {
skip!(_binding_0);
v.visit_token_stream_mut(_binding_0);
}
crate::Pat::Wild(_binding_0) => {
v.visit_pat_wild_mut(_binding_0);
@@ -3270,7 +3269,7 @@ where
v.visit_trait_item_macro_mut(_binding_0);
}
crate::TraitItem::Verbatim(_binding_0) => {
skip!(_binding_0);
v.visit_token_stream_mut(_binding_0);
}
}
}
@@ -3386,7 +3385,7 @@ where
v.visit_type_tuple_mut(_binding_0);
}
crate::Type::Verbatim(_binding_0) => {
skip!(_binding_0);
v.visit_token_stream_mut(_binding_0);
}
}
}
@@ -3505,7 +3504,7 @@ where
full!(v.visit_precise_capture_mut(_binding_0));
}
crate::TypeParamBound::Verbatim(_binding_0) => {
skip!(_binding_0);
v.visit_token_stream_mut(_binding_0);
}
}
}

@@ -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.99")]
#![doc(html_root_url = "https://docs.rs/syn/2.0.100")]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![deny(unsafe_op_in_unsafe_fn)]
#![allow(non_camel_case_types)]

@@ -557,7 +557,7 @@ spanless_eq_struct!(Visibility; kind span tokens);
spanless_eq_struct!(WhereBoundPredicate; bound_generic_params bounded_ty bounds);
spanless_eq_struct!(WhereClause; has_where_token predicates span);
spanless_eq_struct!(WhereEqPredicate; lhs_ty rhs_ty);
spanless_eq_struct!(WherePredicate; kind id span);
spanless_eq_struct!(WherePredicate; attrs kind id span is_placeholder);
spanless_eq_struct!(WhereRegionPredicate; lifetime bounds);
spanless_eq_enum!(AngleBracketedArg; Arg(0) Constraint(0));
spanless_eq_enum!(AsmMacro; Asm GlobalAsm NakedAsm);
@@ -573,7 +573,7 @@ spanless_eq_enum!(BoundAsyncness; Normal Async(0));
spanless_eq_enum!(BoundConstness; Never Always(0) Maybe(0));
spanless_eq_enum!(BoundPolarity; Positive Negative(0) Maybe(0));
spanless_eq_enum!(ByRef; Yes(0) No);
spanless_eq_enum!(CaptureBy; Value(move_kw) Ref);
spanless_eq_enum!(CaptureBy; Value(move_kw) Ref Use(use_kw));
spanless_eq_enum!(ClosureBinder; NotPresent For(span generic_params));
spanless_eq_enum!(Const; Yes(0) No);
spanless_eq_enum!(Defaultness; Default(0) Final);
@@ -638,8 +638,8 @@ spanless_eq_enum!(CoroutineKind; Async(span closure_id return_impl_trait_id)
spanless_eq_enum!(ExprKind; Array(0) ConstBlock(0) Call(0 1) MethodCall(0)
Tup(0) Binary(0 1 2) Unary(0 1) Lit(0) Cast(0 1) Type(0 1) Let(0 1 2 3)
If(0 1 2) While(0 1 2) ForLoop(pat iter body label kind) Loop(0 1 2)
Match(0 1 2) Closure(0) Block(0 1) Gen(0 1 2 3) Await(0 1) TryBlock(0)
Assign(0 1 2) AssignOp(0 1 2) Field(0 1) Index(0 1 2) Underscore
Match(0 1 2) Closure(0) Block(0 1) Gen(0 1 2 3) Await(0 1) Use(0 1)
TryBlock(0) Assign(0 1 2) AssignOp(0 1 2) Field(0 1) Index(0 1 2) Underscore
Range(0 1 2) Path(0 1) AddrOf(0 1 2) Break(0 1) Continue(0) Ret(0)
InlineAsm(0) OffsetOf(0 1) MacCall(0) Struct(0) Repeat(0 1) Paren(0) Try(0)
Yield(0) Yeet(0) Become(0) IncludedBytes(0) FormatArgs(0)
@@ -775,7 +775,7 @@ fn doc_comment<'a>(
match trees.next() {
Some(TokenTree::Token(
Token {
kind: TokenKind::Not,
kind: TokenKind::Bang,
span: _,
},
_spacing,

Some files were not shown because too many files have changed in this diff Show More