<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_parse/src/parser, branch 1.68.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.68.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.68.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2023-02-14T11:47:56+00:00</updated>
<entry>
<title>Do not eagerly recover for bad impl-trait in macros</title>
<updated>2023-02-14T11:47:56+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2023-02-08T17:56:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=792a9a2eb349af3b1cf919cbd07259282e86c502'/>
<id>urn:sha1:792a9a2eb349af3b1cf919cbd07259282e86c502</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #106783 - WaffleLapkin:break-my-ident, r=wesleywiser</title>
<updated>2023-01-20T06:16:08+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2023-01-20T06:16:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=df88f7e02c1e9a1e543e5c4767f0d5212c00182d'/>
<id>urn:sha1:df88f7e02c1e9a1e543e5c4767f0d5212c00182d</id>
<content type='text'>
Recover labels written as identifiers

This adds recovery for `break label expr` and `continue label`, as well as a test for `break label`.
</content>
</entry>
<entry>
<title>Rollup merge of #104505 - WaffleLapkin:no-double-spaces-in-comments, r=jackh726</title>
<updated>2023-01-17T19:21:25+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2023-01-17T19:21:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=68f12338afed4162317225850719f558cefad71f'/>
<id>urn:sha1:68f12338afed4162317225850719f558cefad71f</id>
<content type='text'>
Remove double spaces after dots in comments

Most of the comments do not have double spaces, so I assume these are typos.
</content>
</entry>
<entry>
<title>Remove double spaces after dots in comments</title>
<updated>2023-01-17T08:09:33+00:00</updated>
<author>
<name>Maybe Waffle</name>
<email>waffle.lapkin@gmail.com</email>
</author>
<published>2022-11-16T20:34:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6a28fb42a8b8f1f67fe854c2206148171e434d73'/>
<id>urn:sha1:6a28fb42a8b8f1f67fe854c2206148171e434d73</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #106712 - Ezrashaw:impl-ref-trait, r=estebank</title>
<updated>2023-01-17T04:25:21+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2023-01-17T04:25:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9cda9e0ab62467199e09644258618343bd40d52e'/>
<id>urn:sha1:9cda9e0ab62467199e09644258618343bd40d52e</id>
<content type='text'>
make error emitted on `impl &amp;Trait` nicer

Fixes #106694

Turned out to be simpler than I thought, also added UI test.

Before: ([playground](https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2021&amp;gist=9bda53271ef3a8886793cf427b8cea91))
```text
error: expected one of `:`, ``@`,` or `|`, found `)`
 --&gt; src/main.rs:2:22
  |
2 | fn foo(_: impl &amp;Trait) {}
  |                      ^ expected one of `:`, ``@`,` or `|`
  |
  = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
help: if this is a parameter name, give it a type
  |
2 | fn foo(_: impl Trait: &amp;TypeName) {}
  |                ~~~~~~~~~~~~~~~~
help: if this is a type, explicitly ignore the parameter name
  |
2 | fn foo(_: impl _: &amp;Trait) {}
  |                ++

error: expected one of `!`, `(`, `)`, `,`, `?`, `for`, `~`, lifetime, or path, found `&amp;`
 --&gt; src/main.rs:2:16
  |
2 | fn foo(_: impl &amp;Trait) {}
  |               -^ expected one of 9 possible tokens
  |               |
  |               help: missing `,`

error: expected one of `!`, `(`, `,`, `=`, `&gt;`, `?`, `for`, `~`, lifetime, or path, found `&amp;`
 --&gt; src/main.rs:3:11
  |
3 | fn bar&lt;T: &amp;Trait&gt;(_: T) {}
  |           ^ expected one of 10 possible tokens
```

After:
```text
error: expected a trait, found type
 --&gt; &lt;anon&gt;:2:16
  |
2 | fn foo(_: impl &amp;Trait) {}
  |                -^^^^^
  |                |
  |                help: consider removing the indirection

error: expected a trait, found type
 --&gt; &lt;anon&gt;:3:11
  |
3 | fn bar&lt;T: &amp;Trait&gt;(_: T) {}
  |           -^^^^^
  |           |
  |           help: consider removing the indirection
```
</content>
</entry>
<entry>
<title>fix dropping diagnostic without emit</title>
<updated>2023-01-16T03:18:56+00:00</updated>
<author>
<name>Ezra Shaw</name>
<email>ezrasure@outlook.com</email>
</author>
<published>2023-01-16T03:18:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fcd5ed21b77dd1d72696e43dd70e60b1ad458f55'/>
<id>urn:sha1:fcd5ed21b77dd1d72696e43dd70e60b1ad458f55</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #106863 - anden3:compiler-double-spaces, r=Nilstrieb</title>
<updated>2023-01-15T00:01:37+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2023-01-15T00:01:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cc02ecc0101ab91627bf470166df10cd85ae8ec3'/>
<id>urn:sha1:cc02ecc0101ab91627bf470166df10cd85ae8ec3</id>
<content type='text'>
Remove various double spaces in compiler source comments.

Was asked to do it by `@Nilstrieb`
</content>
</entry>
<entry>
<title>make error emitted on `impl &amp;Trait` nicer</title>
<updated>2023-01-14T23:23:46+00:00</updated>
<author>
<name>Ezra Shaw</name>
<email>ezrasure@outlook.com</email>
</author>
<published>2023-01-14T08:20:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e590b934998c85175b85cb13842163a27a221dc7'/>
<id>urn:sha1:e590b934998c85175b85cb13842163a27a221dc7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #106849 - WaffleLapkin:unvec, r=Nilstrieb</title>
<updated>2023-01-14T17:45:28+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2023-01-14T17:45:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9db8e6d5e9d6a4e87105ee556c54a4d30d1b261b'/>
<id>urn:sha1:9db8e6d5e9d6a4e87105ee556c54a4d30d1b261b</id>
<content type='text'>
Allocate one less vec while parsing arrays

Probably does not matter, but imo a little bit nicer.
</content>
</entry>
<entry>
<title>Fix some missed double spaces.</title>
<updated>2023-01-14T17:23:40+00:00</updated>
<author>
<name>André Vennberg</name>
<email>andre.vennberg@gmail.com</email>
</author>
<published>2023-01-14T17:23:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0e65003c9e0ea97d7fcfbdb01cca181558b5fa15'/>
<id>urn:sha1:0e65003c9e0ea97d7fcfbdb01cca181558b5fa15</id>
<content type='text'>
</content>
</entry>
</feed>
