<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_parse/src/parser/expr.rs, branch 1.81.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.81.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.81.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2024-07-18T07:28:49+00:00</updated>
<entry>
<title>Remove `TrailingToken`.</title>
<updated>2024-07-18T07:28:49+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-07-16T14:12:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=487802d6c8a74ee375d2f71e3ff97cea11cc9c18'/>
<id>urn:sha1:487802d6c8a74ee375d2f71e3ff97cea11cc9c18</id>
<content type='text'>
It's used in `Parser::collect_tokens_trailing_token` to decide whether
to capture a trailing token. But the callers actually know whether to
capture a trailing token, so it's simpler for them to just pass in a
bool.

Also, the `TrailingToken::Gt` case was weird, because it didn't result
in a trailing token being captured. It could have been subsumed by the
`TrailingToken::MaybeComma` case, and it effectively is in the new code.
</content>
</entry>
<entry>
<title>Rollup merge of #127806 - nnethercote:parser-improvements, r=spastorino</title>
<updated>2024-07-18T00:53:27+00:00</updated>
<author>
<name>Trevor Gross</name>
<email>t.gross35@gmail.com</email>
</author>
<published>2024-07-18T00:53:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fa1303662a004c82be810abad9befd5c8e5f24fd'/>
<id>urn:sha1:fa1303662a004c82be810abad9befd5c8e5f24fd</id>
<content type='text'>
Some parser improvements

I was looking closely at attribute handling in the parser while debugging some issues relating to #124141, and found a few small improvements.

``@spastorino``
</content>
</entry>
<entry>
<title>Deny keyword lifetimes pre-expansion</title>
<updated>2024-07-16T16:06:25+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2024-06-20T20:36:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d0a1851ec2cf84bdb41bc4d788b3995a8463c543'/>
<id>urn:sha1:d0a1851ec2cf84bdb41bc4d788b3995a8463c543</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix a comment.</title>
<updated>2024-07-16T06:39:19+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-07-16T06:39:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8cb6bc3b5a33cbd7d9b131fad2f63cc243b26ea0'/>
<id>urn:sha1:8cb6bc3b5a33cbd7d9b131fad2f63cc243b26ea0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Inline and remove `Parser::parse_expr_dot_or_call_with_`.</title>
<updated>2024-07-16T06:16:38+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-07-16T06:12:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=96b39f1204992368f059b44b56362a91e1e27ef9'/>
<id>urn:sha1:96b39f1204992368f059b44b56362a91e1e27ef9</id>
<content type='text'>
It only has two call sites, and it extremely similar to
`Parser::parse_expr_dot_or_call_with`, in both name and behaviour. The
only difference is the latter has an `attrs` argument and an
`ensure_sufficient_stack` call. We can pass in an empty `attrs` as
necessary, as is already done at some `parse_expr_dot_or_call_with` call
sites.
</content>
</entry>
<entry>
<title>Inline and remove `Parser::parse_and_disallow_postfix_after_cast`.</title>
<updated>2024-07-16T06:09:36+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-07-16T06:02:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=96cc9c99b29c373db41093dee3170f36dc15543b'/>
<id>urn:sha1:96cc9c99b29c373db41093dee3170f36dc15543b</id>
<content type='text'>
It has a single call site. Removing it removes the need for an
`ExprKind` check. The commit also clarifies the relevant comment.
</content>
</entry>
<entry>
<title>Reorder `Parser::parse_expr_dot_or_call_with` arguments.</title>
<updated>2024-07-16T05:54:34+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-07-16T05:54:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d247489ac280147b48c72ed739ea9056e0ca6ff2'/>
<id>urn:sha1:d247489ac280147b48c72ed739ea9056e0ca6ff2</id>
<content type='text'>
Put `attrs` before `e0` because that matches the order in the source
code, where outer attributes appear before expressions.
</content>
</entry>
<entry>
<title>Make parse error suggestions verbose and fix spans</title>
<updated>2024-07-12T03:02:57+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-07-06T03:07:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=692bc344d55cf9d86c60b06c92a70684d013c89f'/>
<id>urn:sha1:692bc344d55cf9d86c60b06c92a70684d013c89f</id>
<content type='text'>
Go over all structured parser suggestions and make them verbose style.

When suggesting to add or remove delimiters, turn them into multiple suggestion parts.
</content>
</entry>
<entry>
<title>Rollup merge of #127103 - compiler-errors:tighten-trait-bound-parsing, r=fmease</title>
<updated>2024-06-29T07:14:59+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2024-06-29T07:14:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a4e92bfef003a5760602260bbd5e0273e4aef1a4'/>
<id>urn:sha1:a4e92bfef003a5760602260bbd5e0273e4aef1a4</id>
<content type='text'>
Move binder and polarity parsing into `parse_generic_ty_bound`

Let's pull out the parts of #127054 which just:
1. Make the parsing code less confusing
2. Fix `?use&lt;&gt;` (to correctly be denied)
3. Improve `T: for&lt;'a&gt; 'a` diagnostics

This should have no user-facing effects on stable parsing.

r? fmease
</content>
</entry>
<entry>
<title>Move binder and polarity parsing into parse_generic_ty_bound</title>
<updated>2024-06-28T23:40:31+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2024-06-28T23:37:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3bc32472008387ab2adca98dcfd0bef6207357c1'/>
<id>urn:sha1:3bc32472008387ab2adca98dcfd0bef6207357c1</id>
<content type='text'>
</content>
</entry>
</feed>
