<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_parse/src/parser/expr.rs, branch 1.52.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.52.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.52.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2021-03-16T08:41:24+00:00</updated>
<entry>
<title>ast: Reduce size of `ExprKind` by boxing fields of `ExprKind::Struct`</title>
<updated>2021-03-16T08:41:24+00:00</updated>
<author>
<name>Vadim Petrochenkov</name>
<email>vadim.petrochenkov@gmail.com</email>
</author>
<published>2021-03-16T00:15:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d1522b39dded68a3c442bed0b0a231020c6e2291'/>
<id>urn:sha1:d1522b39dded68a3c442bed0b0a231020c6e2291</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ast/hir: Rename field-related structures</title>
<updated>2021-03-16T08:41:24+00:00</updated>
<author>
<name>Vadim Petrochenkov</name>
<email>vadim.petrochenkov@gmail.com</email>
</author>
<published>2021-03-15T21:36:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b25d3ba78118033b3f25b6de7a32e210d113872c'/>
<id>urn:sha1:b25d3ba78118033b3f25b6de7a32e210d113872c</id>
<content type='text'>
StructField -&gt; FieldDef ("field definition")
Field -&gt; ExprField ("expression field", not "field expression")
FieldPat -&gt; PatField ("pattern field", not "field pattern")

Also rename visiting and other methods working on them.
</content>
</entry>
<entry>
<title>Detect match arm body without braces</title>
<updated>2021-03-03T20:17:26+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2021-02-26T03:29:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ae494d147af627537097f10f21cf961e4c1c6f38'/>
<id>urn:sha1:ae494d147af627537097f10f21cf961e4c1c6f38</id>
<content type='text'>
Fix #82524.
</content>
</entry>
<entry>
<title>remove unneccessary wrapping of return value in mk_await_expr()</title>
<updated>2021-02-21T12:01:01+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2021-02-21T12:01:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=00bc134e43f30142ea5208dc70dce8ef1e6ac3ca'/>
<id>urn:sha1:00bc134e43f30142ea5208dc70dce8ef1e6ac3ca</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustc_parse: remove unneccessary wrapping of return value in fn mk_range() which would always return Ok(..)</title>
<updated>2021-02-21T11:54:49+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2021-02-21T11:54:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=12080dc3a3ebee0e343d528ca15835ac2d4c75c7'/>
<id>urn:sha1:12080dc3a3ebee0e343d528ca15835ac2d4c75c7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #82236 - matthiaskrgr:useless_conv, r=jyn514</title>
<updated>2021-02-18T15:57:40+00:00</updated>
<author>
<name>Dylan DPC</name>
<email>dylan.dpc@gmail.com</email>
</author>
<published>2021-02-18T15:57:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=04df75a4292a8bbf096fd316d0544a5a95b51e9b'/>
<id>urn:sha1:04df75a4292a8bbf096fd316d0544a5a95b51e9b</id>
<content type='text'>
avoid converting types into themselves (clippy::useless_conversion)
</content>
</entry>
<entry>
<title>avoid converting types into themselves (clippy::useless_conversion)</title>
<updated>2021-02-17T19:37:09+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2021-02-17T19:37:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ec50a2086a7263b24795f70cfefb3a83737599f7'/>
<id>urn:sha1:ec50a2086a7263b24795f70cfefb3a83737599f7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Simplify pattern grammar by allowing nested leading vert</title>
<updated>2021-02-15T18:07:54+00:00</updated>
<author>
<name>mark</name>
<email>markm@cs.wisc.edu</email>
</author>
<published>2021-02-08T02:40:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=aee1e59e6f00876a881e9d8c2ff00e0f11f896eb'/>
<id>urn:sha1:aee1e59e6f00876a881e9d8c2ff00e0f11f896eb</id>
<content type='text'>
Along the way, we also implement a handful of diagnostics improvements
and fixes, particularly with respect to the special handling of `||` in
place of `|` and when there are leading verts in function params, which
don't allow top-level or-patterns anyway.
</content>
</entry>
<entry>
<title>Address review comments</title>
<updated>2021-02-13T18:04:54+00:00</updated>
<author>
<name>Aaron Hill</name>
<email>aa1ronham@gmail.com</email>
</author>
<published>2021-02-13T17:42:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3321d701617d5ba3ef348d9273f5fcca126d8f04'/>
<id>urn:sha1:3321d701617d5ba3ef348d9273f5fcca126d8f04</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Require passing an `AttrWrapper` to `collect_tokens_trailing_token`</title>
<updated>2021-02-13T17:07:15+00:00</updated>
<author>
<name>Aaron Hill</name>
<email>aa1ronham@gmail.com</email>
</author>
<published>2021-01-22T18:28:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0b411f56e1a539e2388e9a983feb45f362923dc5'/>
<id>urn:sha1:0b411f56e1a539e2388e9a983feb45f362923dc5</id>
<content type='text'>
This is a pure refactoring split out from #80689.
It represents the most invasive part of that PR, requiring changes in
every caller of `parse_outer_attributes`

In order to eagerly expand `#[cfg]` attributes while preserving the
original `TokenStream`, we need to know the range of tokens that
corresponds to every attribute target. This is accomplished by making
`parse_outer_attributes` return an opaque `AttrWrapper` struct. An
`AttrWrapper` must be converted to a plain `AttrVec` by passing it to
`collect_tokens_trailing_token`. This makes it difficult to accidentally
construct an AST node with attributes without calling `collect_tokens_trailing_token`,
since AST nodes store an `AttrVec`, not an `AttrWrapper`.

As a result, we now call `collect_tokens_trailing_token` for attribute
targets which only support inert attributes, such as generic arguments
and struct fields. Currently, the constructed `LazyTokenStream` is
simply discarded. Future PRs will record the token range corresponding
to the attribute target, allowing those tokens to be removed from an
enclosing `collect_tokens_trailing_token` call if necessary.
</content>
</entry>
</feed>
