<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_parse/src/parser/path.rs, branch 1.64.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.64.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.64.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2022-06-13T22:47:22+00:00</updated>
<entry>
<title>Rollup merge of #95211 - terrarier2111:improve-parser, r=compiler-errors</title>
<updated>2022-06-13T22:47:22+00:00</updated>
<author>
<name>Yuki Okushi</name>
<email>jtitor@2k36.org</email>
</author>
<published>2022-06-13T22:47:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e3a3c00be805c265e5be3b478d76423371459c3b'/>
<id>urn:sha1:e3a3c00be805c265e5be3b478d76423371459c3b</id>
<content type='text'>
Improve parser diagnostics

This pr fixes https://github.com/rust-lang/rust/issues/93867 and contains a couple of diagnostics related changes to the parser.
Here is a short list with some of the changes:
- don't suggest the same thing that is the current token
- suggest removing the current token if the following token is one of the suggestions (maybe incorrect)
- tell the user to put a type or lifetime after where if there is none (as a warning)
- reduce the amount of tokens suggested (via the new eat_noexpect and check_noexpect methods)

If any of these changes are undesirable, i can remove them, thanks!
</content>
</entry>
<entry>
<title>remove unnecessary `to_string` and `String::new`</title>
<updated>2022-06-13T06:48:40+00:00</updated>
<author>
<name>Takayuki Maeda</name>
<email>takoyaki0316@gmail.com</email>
</author>
<published>2022-06-13T06:48:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=77d6176e69de8bcdc15a12402ce7245f06ca2329'/>
<id>urn:sha1:77d6176e69de8bcdc15a12402ce7245f06ca2329</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Improves parser diagnostics, fixes #93867</title>
<updated>2022-06-12T15:48:52+00:00</updated>
<author>
<name>threadexception</name>
<email>hannes.gaumann@outlook.de</email>
</author>
<published>2022-05-01T17:05:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=21fdd549f63499a6f15160c22175cc9c3bbeb473'/>
<id>urn:sha1:21fdd549f63499a6f15160c22175cc9c3bbeb473</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustc_ast: Harmonize delimiter naming with `proc_macro::Delimiter`</title>
<updated>2022-04-28T07:04:29+00:00</updated>
<author>
<name>Vadim Petrochenkov</name>
<email>vadim.petrochenkov@gmail.com</email>
</author>
<published>2022-04-26T12:40:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2733ec1be34b1ae9f22c70c901bb89229adf9def'/>
<id>urn:sha1:2733ec1be34b1ae9f22c70c901bb89229adf9def</id>
<content type='text'>
</content>
</entry>
<entry>
<title>better error for binder on associated type bound</title>
<updated>2022-04-10T23:41:15+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2022-04-07T06:08:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b65265b5e1c70d8c1685efc3a899ce3d89362ad7'/>
<id>urn:sha1:b65265b5e1c70d8c1685efc3a899ce3d89362ad7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Shrink `Nonterminal`.</title>
<updated>2022-04-07T02:51:50+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2022-04-06T02:08:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d9592c2d9f0db851b090c10c0cc3560b87fc7789'/>
<id>urn:sha1:d9592c2d9f0db851b090c10c0cc3560b87fc7789</id>
<content type='text'>
By heap allocating the argument within `NtPath`, `NtVis`, and `NtStmt`.
This slightly reduces cumulative and peak allocation amounts, most
notably on `deep-vector`.
</content>
</entry>
<entry>
<title>Handle `,` to `;` substitution in arg params</title>
<updated>2022-03-27T06:05:18+00:00</updated>
<author>
<name>Esteban Kuber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2022-03-27T06:05:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=157c67b7a8c47de44b47eed9611e5a97981553eb'/>
<id>urn:sha1:157c67b7a8c47de44b47eed9611e5a97981553eb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Provide suggestion for missing `&gt;` in a type parameter list</title>
<updated>2022-03-27T02:50:04+00:00</updated>
<author>
<name>Esteban Kuber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2022-03-01T19:40:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6874bd27f527b6c5f40e8fd866d91813da2df35a'/>
<id>urn:sha1:6874bd27f527b6c5f40e8fd866d91813da2df35a</id>
<content type='text'>
When encountering an inproperly terminated type parameter list, provide
a suggestion to close it after the last non-constraint type parameter
that was successfully parsed.

Fix #94058.
</content>
</entry>
<entry>
<title>cancel a not emitted error after parsing const generic args</title>
<updated>2022-03-22T07:06:56+00:00</updated>
<author>
<name>Takayuki Maeda</name>
<email>takoyaki0316@gmail.com</email>
</author>
<published>2022-03-22T07:06:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=62ded071d588b92b394c4561d19d517d87074728'/>
<id>urn:sha1:62ded071d588b92b394c4561d19d517d87074728</id>
<content type='text'>
</content>
</entry>
<entry>
<title>replace `self.clone()` with `self.create_snapshot_for_diagnostic()`</title>
<updated>2022-03-10T13:11:00+00:00</updated>
<author>
<name>Takayuki Maeda</name>
<email>takoyaki0316@gmail.com</email>
</author>
<published>2022-03-10T13:11:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9a6532276ec45e22695f0a012a0782c97bf39a2d'/>
<id>urn:sha1:9a6532276ec45e22695f0a012a0782c97bf39a2d</id>
<content type='text'>
</content>
</entry>
</feed>
