Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Rust crate syn to 2.0.99 #271

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update Rust crate syn to 2.0.99 #271

wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 15, 2025

This PR contains the following updates:

Package Type Update Change
syn build-dependencies patch 2.0 -> 2.0.99

Release Notes

dtolnay/syn (syn)

v2.0.99

Compare Source

  • Documentation improvements

v2.0.98

Compare Source

  • Allow lifetimes in function pointer return values in ParseStream::call and Punctuated parsers (#​1847)

v2.0.97

Compare Source

  • Documentation improvements

v2.0.96

Compare Source

v2.0.95

Compare Source

  • Fix parenthesization of struct literals in let-chains (#​1832)

v2.0.94

Compare Source

v2.0.93

Compare Source

v2.0.92

Compare Source

  • Fix parenthesization of jumps inside ranges (#​1798)

v2.0.91

Compare Source

v2.0.90

Compare Source

  • Fix automatic parenthesization of subexpressions containing outer attributes, such as (#[attr] thing).field (#​1785)
  • Fix automatic parenthesization of function calls via a struct field, such as (thing.field)() and thing.0() (#​1786)

v2.0.89

Compare Source

v2.0.88

Compare Source

  • Improve error recovery in parse_str (#​1783)

v2.0.87

Compare Source

v2.0.86

Compare Source

  • Support peeking the end of a parse stream (#​1689)
  • Allow parse_quote! to produce Vec<Attribute> (#​1775)

v2.0.85

Compare Source

  • Preserve extern static unsafety in ForeignItem::Verbatim (#​1773)

v2.0.84

Compare Source

v2.0.83

Compare Source

  • Documentation improvements

v2.0.82

Compare Source

  • Provide Parse impls for PreciseCapture and CapturedParam (#​1757, #​1758)
  • Support parsing unsafe attributes (#​1759)
  • Add Fold and VisitMut methods for Vec<Attribute> (#​1762)

v2.0.81

Compare Source

  • Add TypeParamBound::PreciseCapture to represent precise capture syntax impl Trait + use<'a, T> (#​1752, #​1753, #​1754)

v2.0.80

Compare Source

  • Add Expr::RawAddr (#​1743)
  • Reject precise captures and ~const in inappropriate syntax positions (#​1747)
  • Reject trait bound containing only precise capture (#​1748)

v2.0.79

Compare Source

  • Fix infinite loop on parsing chained ranges (#​1741)
  • Fix panic in parsing use items containing absolute paths (#​1742)

v2.0.78

Compare Source

  • Fix infinite loop on chained comparison (#​1739)

v2.0.77

Compare Source

  • Support parsing Expr::Tuple in non-"full" mode (#​1727)

v2.0.76

Compare Source

  • Enforce that tail call become keyword is followed by an expression (#​1725)

v2.0.75

Compare Source

  • Automatically fill in missing turbofish when printing ExprPath and other paths in expression position (#​1722)

v2.0.74

Compare Source

  • Fix "temporary is dropped and runs the destructor for type `impl Iterator`" regression affecting certain use of Generics iterator methods (#​1719)

v2.0.73

Compare Source

v2.0.72

Compare Source

v2.0.71

Compare Source

v2.0.70

Compare Source

v2.0.69

Compare Source

  • Correctly parenthesize labeled loops inside a break value (#​1692)
  • Add Punctuated::get and get_mut (#​1693)

v2.0.68

Compare Source

  • Improve panic location when parse_quote! parses invalid syntax (#​1690, thanks @​stepancheg)
  • More efficient peek implementation for Group and Lifetime (#​1687)

v2.0.67

Compare Source

  • Produce more accurate error message locations for errors located at the end of a nested group (#​1679, #​1680)
  • Support peeking LitCStr in ParseStream::peek (#​1682)

v2.0.66

Compare Source

  • Allow braced structs when parsing ExprLet (#​1671)

v2.0.65

Compare Source

v2.0.64

Compare Source

  • Support using ParseBuffer across catch_unwind (#​1646)
  • Validate that the expression in a let-else ends in brace as required by rustc (#​1648, #​1649)
  • Legalize invalid const generic arguments by wrapping in braces (#​1654, #​1655)
  • Fix some expression precedence edge cases involving break and return in loop headers (#​1656)
  • Always print closure bodies with a brace when the closure has an explicit return type (#​1658)
  • Automatically insert necessary parentheses in ToTokens for Expr when required by expression precedence (#​1659)
  • Support struct literal syntax in match guard expressions (#​1662)

v2.0.63

Compare Source

  • Parse and print long if-else-if chains without reliance on deep recursion to avoid overflowing stack (#​1644, #​1645)

v2.0.62

Compare Source

  • Reject invalid unparenthesized range and comparison operator expressions (#​1642, #​1643)

v2.0.61

Compare Source

  • Check for legal binding name in the ident of Pat::Ident (#​1627)
  • Resolve unexpected_cfgs warning (#​1635)

v2.0.60

Compare Source

  • Improve how None-delimited groups are counted by peek (#​1625)

v2.0.59

Compare Source

  • Parse c"…" and cr"…" C-string literal syntax as Lit::CStr (#​1502)

v2.0.58

Compare Source

  • Support $ in custom_punctuation! macro (#​1611)

v2.0.57

Compare Source

  • Eliminate dependency on quote when built with default-features disabled and the "proc-macro" feature enabled (#​1608, thanks @​BD103)

v2.0.56

Compare Source

  • Apply RUSTC_WORKSPACE_WRAPPER when deciding whether to run nightly-only tests (#​1605)

v2.0.55

Compare Source

  • Restore compatibility with rustc 1.56 through 1.59 (#​1603)

v2.0.54

Compare Source

  • Fix dead code warning in generated code when using custom_keyword! with syn's "printing" feature disabled (#​1602)

v2.0.53

Compare Source

  • Implement Copy, Clone, and ToTokens for syn::parse::Nothing (#​1597)

v2.0.52

Compare Source

  • Add an expression parser that uses match-arm's boundary rules (#​1593)

v2.0.51

Compare Source

  • Resolve non_local_definitions warnings in generated code under rustc 1.78-nightly

v2.0.50

Compare Source

  • Fix unused_imports warnings when compiled by rustc 1.78

v2.0.49

Compare Source

  • Improve error location when parsing from an empty string literal using LitStr::parse (#​1590)

v2.0.48

Compare Source

  • Improve error message on unexpected token after else (#​1578)

v2.0.47

Compare Source

  • Improve error messages related to proc_macro::LexError (#​1575)

v2.0.46

Compare Source

  • Update proc-macro2 to fix caching issue when using a rustc-wrapper such as sccache

v2.0.45

Compare Source

  • Parse unsupported expressions in enum discriminants of DeriveInput as Expr::Verbatim in non-"full" mode, instead of error (#​1513)
  • Support parsing PatType with parse_quote! (#​1573)

v2.0.44

Compare Source

  • Documentation improvements

v2.0.43

Compare Source

  • Insert trailing comma if not already present when printing a 1-tuple in pattern position (#​1553)

v2.0.42

Compare Source

  • Documentation improvements

v2.0.41

Compare Source

  • Support parsing syn::Field in parse_quote! (#​1548)

v2.0.40

Compare Source

v2.0.39

Compare Source

  • Fix parsing of return expression in match guards (#​1528)
  • Improve error message on labeled loop as value expression for break (#​1531)

v2.0.38

Compare Source

  • Fix "method 'peek' has an incompatible type for trait" error when defining bool as a custom keyword (#​1518, thanks @​Vanille-N)

v2.0.37

Compare Source

  • Work around incorrect future compatibility warning in rustc 1.74.0-nightly

v2.0.36

Compare Source

  • Restore compatibility with --generate-link-to-definition documentation builds (#​1514)

v2.0.35

Compare Source

  • Make rust-analyzer produce preferred brackets for invocations of Token! macro (#​1510, #​1512)

v2.0.34

Compare Source

  • Documentation improvements

v2.0.33

Compare Source

  • Special handling for the (/*ERROR*/) placeholder that rustc uses for macros that fail to expand

v2.0.32

Compare Source

v2.0.31

Compare Source

v2.0.30

Compare Source

v2.0.29

Compare Source

v2.0.28

Compare Source

  • Fix inconsistency between full and non-full expression parse errors (#​1491)

v2.0.27

Compare Source

v2.0.26

Compare Source

  • Implement Spanned for QSelf (#​1465)

v2.0.25

Compare Source

  • Support single identifier as unbraced const generic argument (#​1483)
  • Produce error message when LitStr::parse is used on a suffixed string literal (#​1484)

v2.0.24

Compare Source

  • Fix duplication of braces around const generic argument in non-full mode (#​1482)

v2.0.23

Compare Source

  • Preserve attributes on verbatim Item in statement position (#​1476)
  • Support generic_const_exprs where-clauses such as where [(); { T::COUNT }]: in non-"full" mode (#​1478)

v2.0.22

Compare Source

v2.0.21

Compare Source

  • Fix value computed by LitByteStr::value in the case of a cooked byte string literal containing form feed or vertical tab characters following an escaped newline (#​1474)

v2.0.20

Compare Source

  • Documentation improvements

v2.0.19

Compare Source

v2.0.18

Compare Source

  • Permit empty attr in syn::meta::parser (#​1460)

v2.0.17

Compare Source

  • Enable proc_macro support on wasm targets (#​1459)

v2.0.16

Compare Source

v2.0.15

Compare Source

  • Ensure Type::Tuple of length 1 prints as a tuple even if trailing comma is not provided in the Punctuated (#​1444, thanks @​Fancyflame)

v2.0.14

Compare Source

v2.0.13

Compare Source

v2.0.12

Compare Source

  • Refer to compile_error! by absolute path in token stream produced by syn::Error::to_compile_error (#​1431, thanks @​smoelius)

v2.0.11

Compare Source

  • Improve error message on empty parens inside parse_nested_meta (#​1428)

v2.0.10

Compare Source

  • Fix visibility being parsed incorrectly on macro invocations inside of a trait

v2.0.9

Compare Source

  • Disallow type items in an extern block, trait, or module from being marked default
  • Disallow ImplItemFn from having an omitted function body, as in impl T { fn f(&self); } — omitted function bodies are allowed by TraitItemFn, but in impl blocks this syntax is now parsed as ImplItem::Verbatim rather than ImplItem::Fn

v2.0.8

Compare Source

  • Treat try keyword as 2015-edition identifier in definition of try macro (#​1422)

v2.0.7

Compare Source

  • Fix parsing of mut self inside of Type::BareFn

v2.0.6

Compare Source

  • Improve error message on missing ';' between statements (#​1419)
  • Keep non-brace macro invocations in trailing expr position as Expr::Macro (#​1420)

v2.0.5

Compare Source

  • Expose ExprMacro data structure even when features="full" is not used (#​1417)

v2.0.4

Compare Source

  • Improve error reporting when parsing identifiers and paths (#​1415, #​1416)

v2.0.3

Compare Source

  • Expose ExprGroup data structure even when features="full" is not used (#​1412)

v2.0.2

Compare Source

  • Documentation improvements

v2.0.1

Compare Source

  • Add methods on syn::Meta for reporting error on an incorrect kind of attribute (#​1409)

Configuration

📅 Schedule: Branch creation - "before 8am" in timezone Europe/Berlin, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/syn-2.x branch from 68ce83e to d86a7c7 Compare March 3, 2025 11:29
@renovate renovate bot changed the title Update Rust crate syn to 2.0.98 Update Rust crate syn to 2.0.99 Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants