<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_parse/src/parser, branch 1.67.1</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.67.1</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.67.1'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2022-12-06T12:27:41+00:00</updated>
<entry>
<title>Rollup merge of #105098 - lyming2007:issue-103869-fix, r=eholk</title>
<updated>2022-12-06T12:27:41+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2022-12-06T12:27:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=48172ff64b17b3e927e97af0b1f19a8754cade83'/>
<id>urn:sha1:48172ff64b17b3e927e97af0b1f19a8754cade83</id>
<content type='text'>
propagate the error from parsing enum variant to the parser and emit out

While parsing enum variant, the error message always disappear
Because the error message that emit out is from main error of parser
The information of enum variant disappears while parsing enum variant with error
We only check the syntax of expecting token, i.e, in case https://github.com/rust-lang/rust/issues/103869
It will error it without telling the message that this error is from pasring enum variant.
Propagate the sub-error from parsing enum variant to the main error of parser by chaining it with map_err
Check the sub-error before emitting the main error of parser and attach it.
Fix https://github.com/rust-lang/rust/issues/103869
</content>
</entry>
<entry>
<title>Rollup merge of #105223 - lukas-code:(ExprWithBlock), r=petrochenkov</title>
<updated>2022-12-05T19:43:44+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2022-12-05T19:43:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=66a4cb5368873fd793c53884e30dd543c4cad04c'/>
<id>urn:sha1:66a4cb5368873fd793c53884e30dd543c4cad04c</id>
<content type='text'>
suggest parenthesis around ExprWithBlock BinOp ExprWithBlock

fix https://github.com/rust-lang/rust/issues/105179
fix https://github.com/rust-lang/rust/issues/102171
</content>
</entry>
<entry>
<title>Rollup merge of #105141 - ohno418:fix-ice-on-invalid-var-decl-in-macro-call, r=compiler-errors</title>
<updated>2022-12-04T15:25:32+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2022-12-04T15:25:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b1816833bd9f0d38c1866e883c261aafe1767485'/>
<id>urn:sha1:b1816833bd9f0d38c1866e883c261aafe1767485</id>
<content type='text'>
Fix ICE on invalid variable declarations in macro calls

This fixes ICE that happens with invalid variable declarations in macro calls like:

```rust
macro_rules! m { ($s:stmt) =&gt; {} }
m! { var x }
m! { auto x }
m! { mut x }
```

Found this is because of not collecting tokens on recovery, so I changed to force collect them.

Fixes https://github.com/rust-lang/rust/issues/103529.
</content>
</entry>
<entry>
<title>more comments</title>
<updated>2022-12-03T22:54:06+00:00</updated>
<author>
<name>Lukas Markeffsky</name>
<email>@</email>
</author>
<published>2022-12-03T22:54:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c808d0b289c1f8e0f26885bf44cb2ba1873ba10e'/>
<id>urn:sha1:c808d0b289c1f8e0f26885bf44cb2ba1873ba10e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>suggest parenthesis around ExprWithBlock BinOp ExprWithBlock</title>
<updated>2022-12-03T19:02:39+00:00</updated>
<author>
<name>Lukas Markeffsky</name>
<email>@</email>
</author>
<published>2022-12-03T19:02:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=35c00a9731809292959e98b1e7da3c6e2673f3cc'/>
<id>urn:sha1:35c00a9731809292959e98b1e7da3c6e2673f3cc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #104199 - SarthakSingh31:issue-97417-1, r=cjgillot</title>
<updated>2022-12-03T16:37:41+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2022-12-03T16:37:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c89bff29e562540c14497aa8cc8490e6a2cdeb73'/>
<id>urn:sha1:c89bff29e562540c14497aa8cc8490e6a2cdeb73</id>
<content type='text'>
Keep track of the start of the argument block of a closure

This removes a call to `tcx.sess.source_map()` from [compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs](https://github.com/rust-lang/rust/compare/master...SarthakSingh31:issue-97417-1?expand=1#diff-8406bbc0d0b43d84c91b1933305df896ecdba0d1f9269e6744f13d87a2ab268a) as required by #97417.

VsCode automatically applied `rustfmt` to the files I edited under `src/tools`. I can undo that if its a problem.

r? `@cjgillot`
</content>
</entry>
<entry>
<title>parser: refactoring on recovery from invalid variable declarations</title>
<updated>2022-12-03T14:41:42+00:00</updated>
<author>
<name>Yutaro Ohno</name>
<email>yutaro.ono.418@gmail.com</email>
</author>
<published>2022-12-03T14:37:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e4812583c70db2259b952829a7412dea96c5afdd'/>
<id>urn:sha1:e4812583c70db2259b952829a7412dea96c5afdd</id>
<content type='text'>
Previously, the `recover_local_after_let` function was called from the
body of the `recover_stmt_local` function. Unifying these two functions
make it more simple and more readable.
</content>
</entry>
<entry>
<title>parser: fix ICE with invalid variable declaration in macro call</title>
<updated>2022-12-03T14:24:49+00:00</updated>
<author>
<name>Yutaro Ohno</name>
<email>yutaro.ono.418@gmail.com</email>
</author>
<published>2022-12-03T14:24:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=690addc6ecc575f6b9df5e2fc09bd119e51e6194'/>
<id>urn:sha1:690addc6ecc575f6b9df5e2fc09bd119e51e6194</id>
<content type='text'>
Fix ICE on parsing an invalid variable declaration as a statement like:

```
macro_rules! m { ($s:stmt) =&gt; {} }
m! { var x }
```
</content>
</entry>
<entry>
<title>While parsing enum variant, the error message always disappear</title>
<updated>2022-12-02T06:48:52+00:00</updated>
<author>
<name>Yiming Lei</name>
<email>yiming.lei@futurewei.com</email>
</author>
<published>2022-11-30T20:01:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0e19fb92e1eb7f91aa5570b2ac782c9a42a6e329'/>
<id>urn:sha1:0e19fb92e1eb7f91aa5570b2ac782c9a42a6e329</id>
<content type='text'>
Because the error message that emit out is from main error of parser
The information of enum variant disappears while parsing enum variant with error
We only check the syntax of expecting token, i.e, in case #103869
It will error it without telling the message that this error is from pasring enum variant.
Propagate the sub-error from parsing enum variant to the main error of parser by chaining it with map_err
Check the sub-error before emitting the main error of parser and attach it.
Fix #103869
</content>
</entry>
<entry>
<title>rustc_ast_lowering: Stop lowering imports into multiple items</title>
<updated>2022-12-01T15:51:20+00:00</updated>
<author>
<name>Vadim Petrochenkov</name>
<email>vadim.petrochenkov@gmail.com</email>
</author>
<published>2022-12-01T15:51:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b32a4edb2078ca61ebcd9bad993905873f4a990a'/>
<id>urn:sha1:b32a4edb2078ca61ebcd9bad993905873f4a990a</id>
<content type='text'>
Lower them into a single item with multiple resolutions instead.
This also allows to remove additional `NodId`s and `DefId`s related to those additional items.
</content>
</entry>
</feed>
