Wulf / tsync

Synchronize rust and typescript types!
Other
116 stars 10 forks source link

Bump syn from 1.0.75 to 2.0.8 #20

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Bumps syn from 1.0.75 to 2.0.8.

Release notes

Sourced from syn's releases.

2.0.8

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

2.0.7

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

2.0.6

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

2.0.5

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

2.0.4

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

2.0.3

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

2.0.2

  • Documentation improvements

2.0.1

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

2.0.0

This release contains a batch of syntax tree improvements to incorporate ongoing Rust language development from the past 3.5 years since syn 1.

It never seems like an ideal time to finalize a syntax tree design, considering the frankly alarming number of syntax-disrupting language features currently in flight: keyword generics, restrictions, capabilities and contexts, conditional constness, new varieties of literals, dyn revamp such as explicitly dyn-safe traits and dyn-star, expression syntax in various phases of being added or being torn out (const blocks, try blocks, raw references), auto traits and negative impls, generalizations to higher rank trait bounds, async closures and static async trait methods, postfix keywords, pattern types, return type notation, unsafe attributes, …

The plan continues to be the same as laid out originally in the 1.0.0 release announcement:

Be aware that the underlying Rust language will continue to evolve. Syn is able to accommodate most kinds of Rust grammar changes via the nonexhaustive enums and Verbatim variants in the syntax tree, but we will plan to put out new major versions on a 12 to 24 month cadence to incorporate ongoing language changes as needed.

If anything, the takeaway from the 3.5 year longevity of syn 1 is that this period was tamer from a language development perspective than anticipated, but that is unlikely to last and I think around 24 months is still the correct cadence to expect between releases going forward.

Breaking changes

  • Minimum required Rust version is raised from rustc 1.31 to 1.56.

Expressions

  • Support for box expr syntax has been deleted, as it has been deleted recently from rustc.

  • Support for type ascription syntax expr: Type in expression position has been deleted.

... (truncated)

Commits
  • 2fea56f Release 2.0.8
  • 40aa291 Merge pull request #1422 from dtolnay/trymacro
  • f3a4a4c Treat try keyword as 2015 ident in definition of try macro
  • b862eff Release 2.0.7
  • e6b1bdf Disallow consecutive path separator in use paths
  • 8ae37b7 Fix duplicated name of mut self bare fn arg
  • 7840102 Release 2.0.6
  • e76d644 Merge pull request #1420 from dtolnay/nonbracemacro
  • 6dcc480 Keep non-brace macro invocations in trailing expr position as Expr::Macro
  • d12db40 Merge pull request #1419 from dtolnay/expectedsemi
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 1 year ago

Superseded by #22.