<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_parse/src/parser/expr.rs, branch 1.62.1</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.62.1</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.62.1'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2022-05-01T00:40:27+00:00</updated>
<entry>
<title>Add `do yeet` expressions to allow experimentation in nightly</title>
<updated>2022-05-01T00:40:27+00:00</updated>
<author>
<name>Scott McMurray</name>
<email>scottmcm@users.noreply.github.com</email>
</author>
<published>2022-03-26T06:43:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e094ee5f102dfea8e99137d3818510cd178e8817'/>
<id>urn:sha1:e094ee5f102dfea8e99137d3818510cd178e8817</id>
<content type='text'>
Using an obviously-placeholder syntax.  An RFC would still be needed before this could have any chance at stabilization, and it might be removed at any point.

But I'd really like to have it in nightly at least to ensure it works well with try_trait_v2, especially as we refactor the traits.
</content>
</entry>
<entry>
<title>errors: `span_suggestion` takes `impl ToString`</title>
<updated>2022-04-29T01:05:20+00:00</updated>
<author>
<name>David Wood</name>
<email>david.wood@huawei.com</email>
</author>
<published>2022-04-26T05:17:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=73fa217bc11fbac76f730223f6766c8e03513b5e'/>
<id>urn:sha1:73fa217bc11fbac76f730223f6766c8e03513b5e</id>
<content type='text'>
Change `span_suggestion` (and variants) to take `impl ToString` rather
than `String` for the suggested code, as this simplifies the
requirements on the diagnostic derive.

Signed-off-by: David Wood &lt;david.wood@huawei.com&gt;
</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>Avoid producing `NoDelim` values in `TokenCursorFrame`.</title>
<updated>2022-04-26T22:15:05+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2022-04-26T03:14:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f0bbc782ac11de6001eeec63e347427dbc639c04'/>
<id>urn:sha1:f0bbc782ac11de6001eeec63e347427dbc639c04</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>errors: implement fallback diagnostic translation</title>
<updated>2022-04-05T06:01:02+00:00</updated>
<author>
<name>David Wood</name>
<email>david.wood@huawei.com</email>
</author>
<published>2022-03-26T07:27:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7f91697b5035f8620df4de47057024c3539b55a6'/>
<id>urn:sha1:7f91697b5035f8620df4de47057024c3539b55a6</id>
<content type='text'>
This commit updates the signatures of all diagnostic functions to accept
types that can be converted into a `DiagnosticMessage`. This enables
existing diagnostic calls to continue to work as before and Fluent
identifiers to be provided. The `SessionDiagnostic` derive just
generates normal diagnostic calls, so these APIs had to be modified to
accept Fluent identifiers.

In addition, loading of the "fallback" Fluent bundle, which contains the
built-in English messages, has been implemented.

Each diagnostic now has "arguments" which correspond to variables in the
Fluent messages (necessary to render a Fluent message) but no API for
adding arguments has been added yet. Therefore, diagnostics (that do not
require interpolation) can be converted to use Fluent identifiers and
will be output as before.
</content>
</entry>
<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>
</feed>
