<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_parse/src/parser/path.rs, branch 1.65.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.65.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.65.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2022-09-01T14:54:27+00:00</updated>
<entry>
<title>Always import all tracing macros for the entire crate instead of piecemeal by module</title>
<updated>2022-09-01T14:54:27+00:00</updated>
<author>
<name>Oli Scherer</name>
<email>git-spam-no-reply9815368754983@oli-obk.de</email>
</author>
<published>2022-08-31T13:09:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ee3c8350189de045ec71997874eaa6cebf99fbf3'/>
<id>urn:sha1:ee3c8350189de045ec71997874eaa6cebf99fbf3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Avoid unnecessary cloning in `Parser::get_ident_from_generic_arg`.</title>
<updated>2022-08-16T02:14:52+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2022-08-16T02:14:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9619a2e3a3d24f34f2b8e86d652665af594a709c'/>
<id>urn:sha1:9619a2e3a3d24f34f2b8e86d652665af594a709c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Simplify attribute handling in `parse_bottom_expr`.</title>
<updated>2022-08-15T03:29:28+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2022-08-14T23:58:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2ef04795681837153df7613192305a2ddbf13497'/>
<id>urn:sha1:2ef04795681837153df7613192305a2ddbf13497</id>
<content type='text'>
`Parser::parse_bottom_expr` currently constructs an empty `attrs` and
then passes it to a large number of other functions. This makes the code
harder to read than it should be, because it's not clear that many
`attrs` arguments are always empty.

This commit removes `attrs` and the passing, simplifying a lot of
functions. The commit also renames `Parser::mk_expr` (which takes an
`attrs` argument) as `mk_expr_with_attrs`, and introduces a new
`mk_expr` which creates an expression with no attributes, which is the
more common case.
</content>
</entry>
<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>
</feed>
