<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_parse/src/parser, branch 1.57.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.57.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.57.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2021-10-07T20:31:33+00:00</updated>
<entry>
<title>some clippy::perf fixes</title>
<updated>2021-10-07T20:31:33+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2021-10-07T20:31:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ff6601e0fc4dd05e337ebc4e0d3c741a0ef26078'/>
<id>urn:sha1:ff6601e0fc4dd05e337ebc4e0d3c741a0ef26078</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use `TokenKind::similar_tokens()`</title>
<updated>2021-10-04T20:13:00+00:00</updated>
<author>
<name>Fabian Wolff</name>
<email>fabian.wolff@alumni.ethz.ch</email>
</author>
<published>2021-10-04T20:13:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=079c075f24d2aae84cd6715f350cf56420816f63'/>
<id>urn:sha1:079c075f24d2aae84cd6715f350cf56420816f63</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Try to recover from a `=&gt;` -&gt; `=` or `-&gt;` typo in a match arm</title>
<updated>2021-10-03T12:14:35+00:00</updated>
<author>
<name>Fabian Wolff</name>
<email>fabian.wolff@alumni.ethz.ch</email>
</author>
<published>2021-10-03T12:14:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cf19131cb356591d27dded5bdb1d00df1bd077c9'/>
<id>urn:sha1:cf19131cb356591d27dded5bdb1d00df1bd077c9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #89029 - notriddle:notriddle/issue-89013, r=estebank</title>
<updated>2021-10-01T16:18:17+00:00</updated>
<author>
<name>Manish Goregaokar</name>
<email>manishsmail@gmail.com</email>
</author>
<published>2021-10-01T16:18:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1708219940806d3620fb1cc10a0a673f7bfbbe45'/>
<id>urn:sha1:1708219940806d3620fb1cc10a0a673f7bfbbe45</id>
<content type='text'>
feat(rustc_parse): recover from pre-RFC-2000 const generics syntax

Fixes #89013
</content>
</entry>
<entry>
<title>Improve error messages for bad type constraints</title>
<updated>2021-09-28T20:02:45+00:00</updated>
<author>
<name>Michael Howell</name>
<email>michael@notriddle.com</email>
</author>
<published>2021-09-28T19:48:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=befdfb5c7113b3d82d973b1acfdcc2b0d9c14ab1'/>
<id>urn:sha1:befdfb5c7113b3d82d973b1acfdcc2b0d9c14ab1</id>
<content type='text'>
Co-authored-by: Esteban Kuber &lt;esteban@kuber.com.ar&gt;
</content>
</entry>
<entry>
<title>Rollup merge of #89221 - aDotInTheVoid:macro-error-1, r=estebank</title>
<updated>2021-09-24T18:40:17+00:00</updated>
<author>
<name>Jubilee</name>
<email>46493976+workingjubilee@users.noreply.github.com</email>
</author>
<published>2021-09-24T18:40:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6f31fa58fd0c4c045f4dd71170868750739e1135'/>
<id>urn:sha1:6f31fa58fd0c4c045f4dd71170868750739e1135</id>
<content type='text'>
Give better error for `macro_rules! name!`

r? ``@estebank``

``@rustbot`` modify labels: +A-diagnostics +A-parser
</content>
</entry>
<entry>
<title>Give better error for `macro_rules! name!`</title>
<updated>2021-09-24T15:21:34+00:00</updated>
<author>
<name>Nixon Enraght-Moony</name>
<email>nixon.emoony@gmail.com</email>
</author>
<published>2021-09-24T12:31:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ed3b751799b0d9a754846bd754d9b43cf6c7394b'/>
<id>urn:sha1:ed3b751799b0d9a754846bd754d9b43cf6c7394b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Auto merge of #88835 - FabianWolff:issue-88770, r=petrochenkov</title>
<updated>2021-09-24T11:54:29+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2021-09-24T11:54:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a0648eab3686f100c7ab9b0d38472c740079cce4'/>
<id>urn:sha1:a0648eab3686f100c7ab9b0d38472c740079cce4</id>
<content type='text'>
Fix error recovery in format macro parsing

Fixes #88770. Basically, the assumption in the following comment is incorrect:
https://github.com/rust-lang/rust/blob/b69fe57261086e70aea9d5b58819a1794bf7c121/compiler/rustc_builtin_macros/src/format.rs#L167-L172

This is only true in the first iteration of the loop, when [`p.clear_expected_tokens()`](https://github.com/rust-lang/rust/blob/b69fe57261086e70aea9d5b58819a1794bf7c121/compiler/rustc_builtin_macros/src/format.rs#L164) is called. In subsequent iterations, `p.expected_tokens` won't be empty, so `p.expect()` won't actually call `unexpected_try_recover()`:
https://github.com/rust-lang/rust/blob/b69fe57261086e70aea9d5b58819a1794bf7c121/compiler/rustc_parse/src/parser/mod.rs#L487-L498

Instead, it will call `expect_one_of()`, which _can_ recover and return `Ok()`. This PR handles this case to fix the ICE in #88770.
</content>
</entry>
<entry>
<title>Rollup merge of #89023 - Wardenfar:issue-85066, r=nagisa</title>
<updated>2021-09-24T00:31:42+00:00</updated>
<author>
<name>Jubilee</name>
<email>46493976+workingjubilee@users.noreply.github.com</email>
</author>
<published>2021-09-24T00:31:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5da2f460b36988d5e0226412080769bafd94eb3c'/>
<id>urn:sha1:5da2f460b36988d5e0226412080769bafd94eb3c</id>
<content type='text'>
Resolve issue : Somewhat confusing error with extended_key_value_attributes

Fixes #85066
</content>
</entry>
<entry>
<title>Rollup merge of #89046 - oli-obk:fix_oflo, r=estebank</title>
<updated>2021-09-22T17:03:22+00:00</updated>
<author>
<name>the8472</name>
<email>the8472@users.noreply.github.com</email>
</author>
<published>2021-09-22T17:03:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5948a7b40799d0c0ab4dd171375a335402686ff6'/>
<id>urn:sha1:5948a7b40799d0c0ab4dd171375a335402686ff6</id>
<content type='text'>
"Fix" an overflow in byte position math

r? `@estebank`

help! I fixed the ICE only to brick the diagnostic.

I mean, it was wrong previously (using an already expanded macro span), but it is really bad now XD
</content>
</entry>
</feed>
