<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_parse/src/parser/expr.rs, branch 1.61.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.61.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.61.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2022-04-03T05:24:20+00:00</updated>
<entry>
<title>Auto merge of #88672 - camelid:inc-parser-sugg, r=davidtwco</title>
<updated>2022-04-03T05:24:20+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2022-04-03T05:24:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=133859d680ffe31072b80f518377fa0c487359d9'/>
<id>urn:sha1:133859d680ffe31072b80f518377fa0c487359d9</id>
<content type='text'>
Suggest `i += 1` when we see `i++` or `++i`

Closes #83502 (for `i++` and `++i`; `--i` should be covered by #82987, and `i--`
is tricky to handle).

This is a continuation of #83536.

r? `@estebank`
</content>
</entry>
<entry>
<title>Rollup merge of #95293 - compiler-errors:braces, r=davidtwco</title>
<updated>2022-04-01T04:59:42+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2022-04-01T04:59:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8f493fd46a99c1c9255b684d8a7e61991e59a923'/>
<id>urn:sha1:8f493fd46a99c1c9255b684d8a7e61991e59a923</id>
<content type='text'>
suggest wrapping single-expr blocks in square brackets

Suggests a fix in cases like:

```diff
- const A: [i32; 1] = { 1 };

+ const A: [i32; 1] = [ 1 ];
                      ^   ^
```

Also edit the message for the same suggestion in the parser (e.g. `{ 1, 2 }`).

Fixes #95289
</content>
</entry>
<entry>
<title>Addressed comments by @compiler-errors and @bjorn3</title>
<updated>2022-03-30T21:04:46+00:00</updated>
<author>
<name>Yuri Astrakhan</name>
<email>YuriAstrakhan@gmail.com</email>
</author>
<published>2022-03-30T21:04:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a6dd6582540ad20e385bcf8326968aa94f33694b'/>
<id>urn:sha1:a6dd6582540ad20e385bcf8326968aa94f33694b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Spellchecking compiler comments</title>
<updated>2022-03-30T19:14:15+00:00</updated>
<author>
<name>Yuri Astrakhan</name>
<email>YuriAstrakhan@gmail.com</email>
</author>
<published>2022-03-30T19:14:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5160f8f843e1dbd43cf341cc8aa5d917d22c98b9'/>
<id>urn:sha1:5160f8f843e1dbd43cf341cc8aa5d917d22c98b9</id>
<content type='text'>
This PR cleans up the rest of the spelling mistakes in the compiler comments. This PR does not change any literal or code spelling issues.
</content>
</entry>
<entry>
<title>suggest wrapping single-expr blocks in square brackets</title>
<updated>2022-03-25T04:40:20+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2022-03-25T04:34:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=91ac9cf5952ef00218c215c564ec7f56c479019d'/>
<id>urn:sha1:91ac9cf5952ef00218c215c564ec7f56c479019d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add heuristic to avoid treating `x + +2` as increment</title>
<updated>2022-03-24T05:31:57+00:00</updated>
<author>
<name>Noah Lev</name>
<email>camelidcamel@gmail.com</email>
</author>
<published>2022-02-18T00:30:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4212835d993537158aa39406a489351a4efdda71'/>
<id>urn:sha1:4212835d993537158aa39406a489351a4efdda71</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Improve function names</title>
<updated>2022-03-24T05:31:57+00:00</updated>
<author>
<name>Noah Lev</name>
<email>camelidcamel@gmail.com</email>
</author>
<published>2022-02-18T00:24:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=29a5c363c7af619c1264c8b1e80241e503b27b47'/>
<id>urn:sha1:29a5c363c7af619c1264c8b1e80241e503b27b47</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Emit both subexp and standalone sugg for postfix</title>
<updated>2022-03-24T05:31:57+00:00</updated>
<author>
<name>Noah Lev</name>
<email>camelidcamel@gmail.com</email>
</author>
<published>2022-02-17T22:52:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=62b8ea67b79de77fca36ca82de4b934307b6de30'/>
<id>urn:sha1:62b8ea67b79de77fca36ca82de4b934307b6de30</id>
<content type='text'>
This solves the TODO.
</content>
</entry>
<entry>
<title>Refactor, handle fields better, add field tests</title>
<updated>2022-03-24T05:31:57+00:00</updated>
<author>
<name>Noah Lev</name>
<email>camelidcamel@gmail.com</email>
</author>
<published>2022-02-17T20:28:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=67a9adbb541f7c62e993d05ff3687a8695d5d349'/>
<id>urn:sha1:67a9adbb541f7c62e993d05ff3687a8695d5d349</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move increment checks to improve errors</title>
<updated>2022-03-24T05:31:57+00:00</updated>
<author>
<name>Noah Lev</name>
<email>camelidcamel@gmail.com</email>
</author>
<published>2021-09-06T23:16:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c9cc43aa66911b38e9da68de6c2c7ee1f37911ea'/>
<id>urn:sha1:c9cc43aa66911b38e9da68de6c2c7ee1f37911ea</id>
<content type='text'>
</content>
</entry>
</feed>
