<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/test/ui/parser/attr-stmt-expr-attr-bad.rs, branch 1.45.2</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.45.2</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.45.2'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2020-03-10T07:55:18+00:00</updated>
<entry>
<title>parse_if_expr: recover on attributes</title>
<updated>2020-03-10T07:55:18+00:00</updated>
<author>
<name>Mazdak Farrokhzad</name>
<email>twingoow@gmail.com</email>
</author>
<published>2020-03-07T16:16:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=458383dd337f276d091fa2de81bb7c1d31dde5fa'/>
<id>urn:sha1:458383dd337f276d091fa2de81bb7c1d31dde5fa</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Permit attributes on 'if' expressions</title>
<updated>2020-03-04T21:43:13+00:00</updated>
<author>
<name>Aaron Hill</name>
<email>aa1ronham@gmail.com</email>
</author>
<published>2020-02-16T00:04:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f63b88c761f935d9b2c220a1b4e3abf0c0681c69'/>
<id>urn:sha1:f63b88c761f935d9b2c220a1b4e3abf0c0681c69</id>
<content type='text'>
Previously, attributes on 'if' expressions (e.g. #[attr] if true {})
were disallowed during parsing. This made it impossible for macros to
perform any custom handling of such attributes (e.g. stripping them
away), since a compilation error would be emitted before they ever had a
chance to run.

This PR permits attributes on 'if' expressions ('if-attrs' from here on).
Both built-in attributes (e.g. `#[allow]`, `#[cfg]`) are supported.

We still do *not* accept attributes on 'other parts' of an if-else
chain. That is, the following code snippet still fails to parse:

```rust
if true {} #[attr] else if false {} else #[attr] if false {} #[attr]
else {}
```
</content>
</entry>
<entry>
<title>Introduce `#![feature(half_open_range_patterns)]`.</title>
<updated>2020-01-10T06:29:04+00:00</updated>
<author>
<name>Mazdak Farrokhzad</name>
<email>twingoow@gmail.com</email>
</author>
<published>2019-12-11T09:04:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d5598aa7a07b324789576585f4f035c93993fea4'/>
<id>urn:sha1:d5598aa7a07b324789576585f4f035c93993fea4</id>
<content type='text'>
This feature adds `X..`, `..X`, and `..=X` patterns.
</content>
</entry>
<entry>
<title>de-fatalize some errors</title>
<updated>2019-12-31T03:33:34+00:00</updated>
<author>
<name>Mazdak Farrokhzad</name>
<email>twingoow@gmail.com</email>
</author>
<published>2019-12-30T14:09:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b6fc87c5b9af5d626e2b85d008c7146a29733536'/>
<id>urn:sha1:b6fc87c5b9af5d626e2b85d008c7146a29733536</id>
<content type='text'>
</content>
</entry>
<entry>
<title>extract error_unexpected_after_dot and de-fatalize</title>
<updated>2019-12-23T12:45:13+00:00</updated>
<author>
<name>Mazdak Farrokhzad</name>
<email>twingoow@gmail.com</email>
</author>
<published>2019-12-06T23:59:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9c6bbf125277cf8e9b8374bfbf95f2bc12456f23'/>
<id>urn:sha1:9c6bbf125277cf8e9b8374bfbf95f2bc12456f23</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ast_stmt_expr_attr -&gt; pretty &amp; ui tests</title>
<updated>2019-12-20T21:53:40+00:00</updated>
<author>
<name>Mazdak Farrokhzad</name>
<email>twingoow@gmail.com</email>
</author>
<published>2019-12-04T10:16:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=19db2d2fed4de5a480bca028458f616d21db92a9'/>
<id>urn:sha1:19db2d2fed4de5a480bca028458f616d21db92a9</id>
<content type='text'>
</content>
</entry>
</feed>
