<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_parse/src/parser/expr.rs, branch 1.67.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.67.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.67.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2022-12-05T19:43:44+00:00</updated>
<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>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>Keep track of the start of the argument block of a closure</title>
<updated>2022-11-28T08:39:00+00:00</updated>
<author>
<name>Sarthak Singh</name>
<email>ss269@uw.edu</email>
</author>
<published>2022-11-09T15:09:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8f705e2425ff459566cd1da0f2c79060fdad9091'/>
<id>urn:sha1:8f705e2425ff459566cd1da0f2c79060fdad9091</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rename `ast::Lit` as `ast::MetaItemLit`.</title>
<updated>2022-11-28T04:18:49+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2022-11-23T04:39:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e4a9150872a08db286208d07f5a6a90e466ca39c'/>
<id>urn:sha1:e4a9150872a08db286208d07f5a6a90e466ca39c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Suggest `.clone()` or `ref binding` on E0382</title>
<updated>2022-11-23T20:17:47+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2022-11-03T04:22:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9e72e35ceb2af024e8ca6a74442269f7ec739173'/>
<id>urn:sha1:9e72e35ceb2af024e8ca6a74442269f7ec739173</id>
<content type='text'>
</content>
</entry>
<entry>
<title>`rustc_parse`: remove `ref` patterns</title>
<updated>2022-11-22T18:49:16+00:00</updated>
<author>
<name>Maybe Waffle</name>
<email>waffle.lapkin@gmail.com</email>
</author>
<published>2022-11-22T09:42:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=616df0f03ba343588ccc7894758f89825012d711'/>
<id>urn:sha1:616df0f03ba343588ccc7894758f89825012d711</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Split `MacArgs` in two.</title>
<updated>2022-11-21T22:04:15+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2022-11-18T00:24:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3e3a4192d8cda0c308ea87b2e8f6f1e8dcc74739'/>
<id>urn:sha1:3e3a4192d8cda0c308ea87b2e8f6f1e8dcc74739</id>
<content type='text'>
`MacArgs` is an enum with three variants: `Empty`, `Delimited`, and `Eq`. It's
used in two ways:
- For representing attribute macro arguments (e.g. in `AttrItem`), where all
  three variants are used.
- For representing function-like macros (e.g. in `MacCall` and `MacroDef`),
  where only the `Delimited` variant is used.

In other words, `MacArgs` is used in two quite different places due to them
having partial overlap. I find this makes the code hard to read. It also leads
to various unreachable code paths, and allows invalid values (such as
accidentally using `MacArgs::Empty` in a `MacCall`).

This commit splits `MacArgs` in two:
- `DelimArgs` is a new struct just for the "delimited arguments" case. It is
  now used in `MacCall` and `MacroDef`.
- `AttrArgs` is a renaming of the old `MacArgs` enum for the attribute macro
  case. Its `Delimited` variant now contains a `DelimArgs`.

Various other related things are renamed as well.

These changes make the code clearer, avoids several unreachable paths, and
disallows the invalid values.
</content>
</entry>
<entry>
<title>Cleanup macro matching recovery</title>
<updated>2022-11-19T16:46:04+00:00</updated>
<author>
<name>Nilstrieb</name>
<email>48135649+Nilstrieb@users.noreply.github.com</email>
</author>
<published>2022-11-19T16:46:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=825b8db34ad908298fd8200a8fecfb7bdc146bdc'/>
<id>urn:sha1:825b8db34ad908298fd8200a8fecfb7bdc146bdc</id>
<content type='text'>
The retry has been implemented already.
</content>
</entry>
</feed>
