<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_parse/src/parser/expr.rs, branch 1.74.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.74.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.74.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2023-09-13T15:00:31+00:00</updated>
<entry>
<title>Address review comments</title>
<updated>2023-09-13T15:00:31+00:00</updated>
<author>
<name>Matthew Jasper</name>
<email>mjjasper1@gmail.com</email>
</author>
<published>2023-09-13T15:00:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e324a59eb6ba1a7883bf23ff42d425ca96960f2a'/>
<id>urn:sha1:e324a59eb6ba1a7883bf23ff42d425ca96960f2a</id>
<content type='text'>
- Add doc comment to new type
- Restore "only supported directly in conditions of `if` and `while` expressions" note
- Rename variant with clearer name
</content>
</entry>
<entry>
<title>Reduce double errors for invalid let expressions</title>
<updated>2023-09-11T16:17:06+00:00</updated>
<author>
<name>Matthew Jasper</name>
<email>mjjasper1@gmail.com</email>
</author>
<published>2023-09-11T16:16:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b011a0a13b4354080b3add0bb3f4445ddb8fd13b'/>
<id>urn:sha1:b011a0a13b4354080b3add0bb3f4445ddb8fd13b</id>
<content type='text'>
Previously some invalid let expressions would result in both a feature
error and a parsing error. Avoid this and ensure that we only emit the
parsing error when this happens.
</content>
</entry>
<entry>
<title>Move let expression checking to parsing</title>
<updated>2023-09-11T15:51:18+00:00</updated>
<author>
<name>Matthew Jasper</name>
<email>mjjasper1@gmail.com</email>
</author>
<published>2023-09-08T10:14:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=333388fd3c9fa03362a3c2a2675ab521c4ddb1ff'/>
<id>urn:sha1:333388fd3c9fa03362a3c2a2675ab521c4ddb1ff</id>
<content type='text'>
There was an incomplete version of the check in parsing and a second
version in AST validation. This meant that some, but not all, invalid
uses were allowed inside macros/disabled cfgs. It also means that later
passes have a hard time knowing when the let expression is in a valid
location, sometimes causing ICEs.

- Add a field to ExprKind::Let in AST/HIR to mark whether it's in a
  valid location.
- Suppress later errors and MIR construction for invalid let
  expressions.
</content>
</entry>
<entry>
<title>Allow stuct literals in if let guards</title>
<updated>2023-08-28T09:31:45+00:00</updated>
<author>
<name>Matthew Jasper</name>
<email>mjjasper1@gmail.com</email>
</author>
<published>2023-08-28T09:31:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=89235fd8379d6b1b0bcea704e162ba3d314906da'/>
<id>urn:sha1:89235fd8379d6b1b0bcea704e162ba3d314906da</id>
<content type='text'>
This is consistent with normal match guards.
</content>
</entry>
<entry>
<title>Fix a stack overflow with long else if chains</title>
<updated>2023-08-19T11:11:16+00:00</updated>
<author>
<name>John Kåre Alsaker</name>
<email>john.kare.alsaker@gmail.com</email>
</author>
<published>2023-08-19T10:55:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1e87ef66f4695d650672c8db0f60128f5024df18'/>
<id>urn:sha1:1e87ef66f4695d650672c8db0f60128f5024df18</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use `interpolated_or_expr_span` in one suitable place.</title>
<updated>2023-08-18T06:50:41+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2023-08-15T00:35:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9167eea553d00a790c10ebc0a821e3fa1b13d93c'/>
<id>urn:sha1:9167eea553d00a790c10ebc0a821e3fa1b13d93c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refactor `interpolated_or_expr_span`.</title>
<updated>2023-08-18T06:50:41+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2023-08-14T23:01:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=dee6c9241f7402b5122266f8f59f6b731678b50a'/>
<id>urn:sha1:dee6c9241f7402b5122266f8f59f6b731678b50a</id>
<content type='text'>
It's much more complicated than it needs to be, and it doesn't modify
the expression. We can do the `Result` handling outside of it, and
change it to just return a span.

Also fix an errant comma that makes the comment hard to read.
</content>
</entry>
<entry>
<title>Rollup merge of #114434 - Nilstrieb:indexing-spans, r=est31</title>
<updated>2023-08-04T19:31:57+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2023-08-04T19:31:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=99e4127d8506656b0a414728a809e64e3414886c'/>
<id>urn:sha1:99e4127d8506656b0a414728a809e64e3414886c</id>
<content type='text'>
Improve spans for indexing expressions

fixes #114388

Indexing is similar to method calls in having an arbitrary left-hand-side and then something on the right, which is the main part of the expression. Method calls already have a span for that right part, but indexing does not. This means that long method chains that use indexing have really bad spans, especially when the indexing panics and that span in coverted into a panic location.

This does the same thing as method calls for the AST and HIR, storing an extra span which is then put into the `fn_span` field in THIR.

r? compiler-errors
</content>
</entry>
<entry>
<title>Improve spans for indexing expressions</title>
<updated>2023-08-04T11:17:39+00:00</updated>
<author>
<name>Nilstrieb</name>
<email>48135649+Nilstrieb@users.noreply.github.com</email>
</author>
<published>2023-08-03T19:43:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5706be1854db74d0aafcc4658423884689f139e9'/>
<id>urn:sha1:5706be1854db74d0aafcc4658423884689f139e9</id>
<content type='text'>
Indexing is similar to method calls in having an arbitrary
left-hand-side and then something on the right, which is the main part
of the expression. Method calls already have a span for that right part,
but indexing does not. This means that long method chains that use
indexing have really bad spans, especially when the indexing panics and
that span in coverted into a panic location.

This does the same thing as method calls for the AST and HIR, storing an
extra span which is then put into the `fn_span` field in THIR.
</content>
</entry>
<entry>
<title>Rollup merge of #114300 - MU001999:fix/turbofish-pat, r=estebank</title>
<updated>2023-08-03T15:29:07+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2023-08-03T15:29:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=51d1dacdc20d83cc4573d4f6226f422a3e725672'/>
<id>urn:sha1:51d1dacdc20d83cc4573d4f6226f422a3e725672</id>
<content type='text'>
Suggests turbofish in patterns

Fixes #114112

r? ```@estebank```
</content>
</entry>
</feed>
