You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "dependabot[bot] (via GitHub)" <gi...@apache.org> on 2023/03/21 18:00:07 UTC

[GitHub] [avro] dependabot[bot] opened a new pull request, #2158: Bump syn from 1.0.109 to 2.0.3 in /lang/rust

dependabot[bot] opened a new pull request, #2158:
URL: https://github.com/apache/avro/pull/2158

   Bumps [syn](https://github.com/dtolnay/syn) from 1.0.109 to 2.0.3.
   <details>
   <summary>Release notes</summary>
   <p><em>Sourced from <a href="https://github.com/dtolnay/syn/releases">syn's releases</a>.</em></p>
   <blockquote>
   <h2>2.0.3</h2>
   <ul>
   <li>Expose <code>ExprGroup</code> data structure even when <code>features=&quot;full&quot;</code> is not used (<a href="https://redirect.github.com/dtolnay/syn/issues/1412">#1412</a>)</li>
   </ul>
   <h2>2.0.2</h2>
   <ul>
   <li>Documentation improvements</li>
   </ul>
   <h2>2.0.1</h2>
   <ul>
   <li>Add methods on syn::Meta for reporting error on an incorrect kind of attribute (<a href="https://redirect.github.com/dtolnay/syn/issues/1409">#1409</a>)</li>
   </ul>
   <h2>2.0.0</h2>
   <p>This release contains a batch of syntax tree improvements to incorporate ongoing Rust language development from the past 3.5 years since syn 1.</p>
   <p>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, …</p>
   <p>The plan continues to be the same as laid out originally in the 1.0.0 release announcement:</p>
   <blockquote>
   <p>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 <code>Verbatim</code> 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.</p>
   </blockquote>
   <p>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.</p>
   <!-- raw HTML omitted -->
   <!-- raw HTML omitted -->
   <h1>Breaking changes</h1>
   <ul>
   <li>Minimum required Rust version is raised from rustc 1.31 to 1.56.</li>
   </ul>
   <h3>Expressions</h3>
   <ul>
   <li>
   <p>Support for <code>box expr</code> syntax has been deleted, as it has been deleted recently from rustc.</p>
   </li>
   <li>
   <p>Support for type ascription syntax <code>expr: Type</code> in expression position has been deleted.</p>
   </li>
   <li>
   <p>Support for unstable <code>&amp;raw const expr</code> raw-pointer reference syntax has been deleted.</p>
   </li>
   <li>
   <p>The representation of generic arguments has been unified between method calls and non-method paths into a single <code>GenericArgument</code> type, which supersedes the previous <code>GenericMethodArgument</code> and <code>MethodTurbofish</code>.</p>
   </li>
   <li>
   <p>Generic arguments now distinguish between associated types (<code>AssocType</code>) and associated constant values (<code>AssocConst</code>). Previously these would be parsed ambiguously as <code>Binding</code>.</p>
   </li>
   <li>
   <p>The binary assignment operators in <code>BinOp</code> have been renamed to align with the naming used by the standard library's <code>core::ops</code> module's traits. For example <code>BinOp::AddEq</code> is now called <code>BinOp::AddAssign</code>.</p>
   </li>
   <li>
   <p><code>Expr::Struct</code> struct construction expressions now support structs which are a variant of an enum associated type of a trait, as in <code>&lt;Type as Trait&gt;::Assoc::Variant { ... }</code>, which has recently been added to Rust.</p>
   </li>
   <li>
   <p><code>Expr::Range</code> now follows the <code>start</code> and <code>end</code> naming used by the standard library's <code>RangeBounds</code> trait, rather than <code>from</code>/<code>to</code> or <code>lo</code>/<code>hi</code>.</p>
   </li>
   <li>
   <p><code>Expr::AssignOp</code> has been merged into <code>Expr::Binary</code>, which now represents both non-assignment and assignment binary operators.</p>
   </li>
   <li>
   <p>Stricter parsing of ranges. None of the following are valid expressions, but were previously accepted by syn: <code>..=</code>, <code>lo..=</code>, <code>...</code>, <code>...hi</code>, <code>lo...</code>, <code>lo...hi</code>.</p>
   </li>
   </ul>
   <!-- raw HTML omitted -->
   </blockquote>
   <p>... (truncated)</p>
   </details>
   <details>
   <summary>Commits</summary>
   <ul>
   <li><a href="https://github.com/dtolnay/syn/commit/25def51081b68538547f34a3494744a807be4203"><code>25def51</code></a> Release 2.0.3</li>
   <li><a href="https://github.com/dtolnay/syn/commit/4f3803d2a936d42a3277e7bcd53efc777a4b13d5"><code>4f3803d</code></a> Merge pull request <a href="https://redirect.github.com/dtolnay/syn/issues/1412">#1412</a> from dtolnay/exprgroup</li>
   <li><a href="https://github.com/dtolnay/syn/commit/516a5b5fbce8bb5679e1e38dcc4480aaba3aa8db"><code>516a5b5</code></a> Provide Expr::Group even with features=&quot;full&quot; off</li>
   <li><a href="https://github.com/dtolnay/syn/commit/cac5cc640700ace3af3eac52c672b04e49e390cf"><code>cac5cc6</code></a> Release 2.0.2</li>
   <li><a href="https://github.com/dtolnay/syn/commit/8f826ef67b583dae63150fff970c0f8c24939cb7"><code>8f826ef</code></a> Touch up spacing in example for parse_multi_with_leading_vert</li>
   <li><a href="https://github.com/dtolnay/syn/commit/fc58fcf9ed026d5a587d6938c2ef5c980735b1c2"><code>fc58fcf</code></a> Fix typo in Stmt::Macro documentation</li>
   <li><a href="https://github.com/dtolnay/syn/commit/e29815224c5e738607503db2ed2dedab37b3f9e3"><code>e298152</code></a> Release 2.0.1</li>
   <li><a href="https://github.com/dtolnay/syn/commit/b87a0a1d02984df4ccb2d2e725cde3134ef369a8"><code>b87a0a1</code></a> Merge pull request <a href="https://redirect.github.com/dtolnay/syn/issues/1409">#1409</a> from dtolnay/requiremeta</li>
   <li><a href="https://github.com/dtolnay/syn/commit/59dd7ccbf2a78809f95061952146af9ed7244b31"><code>59dd7cc</code></a> Add methods on Meta for error reporting an incorrect kind of attribute</li>
   <li><a href="https://github.com/dtolnay/syn/commit/11c0b6c7add560d0b7a97ef0d95ab6005ff1d01b"><code>11c0b6c</code></a> Build attribute parse errors using std::fmt system</li>
   <li>Additional commits viewable in <a href="https://github.com/dtolnay/syn/compare/1.0.109...2.0.3">compare view</a></li>
   </ul>
   </details>
   <br />
   
   
   [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=syn&package-manager=cargo&previous-version=1.0.109&new-version=2.0.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
   
   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-automerge-start)
   [//]: # (dependabot-automerge-end)
   
   ---
   
   <details>
   <summary>Dependabot commands and options</summary>
   <br />
   
   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)
   
   
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@avro.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [avro] dependabot[bot] closed pull request #2158: Bump syn from 1.0.109 to 2.0.3 in /lang/rust

Posted by "dependabot[bot] (via GitHub)" <gi...@apache.org>.
dependabot[bot] closed pull request #2158: Bump syn from 1.0.109 to 2.0.3 in /lang/rust
URL: https://github.com/apache/avro/pull/2158


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@avro.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [avro] dependabot[bot] commented on pull request #2158: Bump syn from 1.0.109 to 2.0.3 in /lang/rust

Posted by "dependabot[bot] (via GitHub)" <gi...@apache.org>.
dependabot[bot] commented on PR #2158:
URL: https://github.com/apache/avro/pull/2158#issuecomment-1548303642

   Superseded by #2235.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@avro.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org