<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_parse/src/parser, branch 1.78.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.78.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.78.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2024-03-14T11:42:04+00:00</updated>
<entry>
<title>Rename `ast::StmtKind::Local` into `ast::StmtKind::Let`</title>
<updated>2024-03-14T11:42:04+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume.gomez@huawei.com</email>
</author>
<published>2024-03-14T10:25:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ca9f0630a93a12abb9a4a35f3bb1948c54515c2d'/>
<id>urn:sha1:ca9f0630a93a12abb9a4a35f3bb1948c54515c2d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix ICE in diagnostics for parenthesized type arguments</title>
<updated>2024-03-12T20:32:21+00:00</updated>
<author>
<name>Daniel Sedlak</name>
<email>daniel@sedlak.dev</email>
</author>
<published>2024-03-12T18:23:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=eab1f30c297027f2349ecd1322573ae3b5c9d668'/>
<id>urn:sha1:eab1f30c297027f2349ecd1322573ae3b5c9d668</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #122152 - wutchzone:120892, r=fmease</title>
<updated>2024-03-11T16:29:35+00:00</updated>
<author>
<name>Jubilee</name>
<email>46493976+workingjubilee@users.noreply.github.com</email>
</author>
<published>2024-03-11T16:29:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=05ff86c389c206c668c27d4bba531a21d9c12065'/>
<id>urn:sha1:05ff86c389c206c668c27d4bba531a21d9c12065</id>
<content type='text'>
Improve diagnostics for parenthesized type arguments

Fixes #120892

r? fmease
</content>
</entry>
<entry>
<title>Rename `AddToDiagnostic` as `Subdiagnostic`.</title>
<updated>2024-03-10T23:04:49+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-03-06T03:00:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=541d7cc65c56402f31335e41075838c0da5fbe01'/>
<id>urn:sha1:541d7cc65c56402f31335e41075838c0da5fbe01</id>
<content type='text'>
To match `derive(Subdiagnostic)`.

Also rename `add_to_diagnostic{,_with}` as `add_to_diag{,_with}`.
</content>
</entry>
<entry>
<title>Rename `IntoDiagnosticArg` as `IntoDiagArg`.</title>
<updated>2024-03-10T22:12:19+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-03-05T05:53:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a09b1d33a703d4ed412e70d3197e73ba7e0937f9'/>
<id>urn:sha1:a09b1d33a703d4ed412e70d3197e73ba7e0937f9</id>
<content type='text'>
Also rename `into_diagnostic_arg` as `into_diag_arg`, and
`NotIntoDiagnosticArg` as `NotInotDiagArg`.
</content>
</entry>
<entry>
<title>Improve diagnostics for parenthesized type arguments</title>
<updated>2024-03-09T21:15:50+00:00</updated>
<author>
<name>Daniel Sedlak</name>
<email>daniel@sedlak.dev</email>
</author>
<published>2024-03-07T18:06:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=58f6aaa710916865253482ff99ef9c87e52d763a'/>
<id>urn:sha1:58f6aaa710916865253482ff99ef9c87e52d763a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #122160 - jieyouxu:eager-translate-help-use-latest-edition, r=cjgillot</title>
<updated>2024-03-09T15:21:16+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2024-03-09T15:21:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=985befe036f84d1df43dac66e0e78d2e0ec083b2'/>
<id>urn:sha1:985befe036f84d1df43dac66e0e78d2e0ec083b2</id>
<content type='text'>
Eagerly translate `HelpUseLatestEdition` in parser diagnostics

Fixes #122130.

This makes me suspicious of these other two usage of  `add_to_diagnostic()`. Would they *also* crash? I haven't attempted to construct test cases for them.

```
compiler/rustc_parse/src/parser/expr.rs
3453:            errors::HelpUseLatestEdition::new().add_to_diagnostic(e);

compiler/rustc_hir_typeck/src/expr.rs
2603:            HelpUseLatestEdition::new().add_to_diagnostic(&amp;mut err);
```

This also seems like a footgun?
</content>
</entry>
<entry>
<title>Rollup merge of #121563 - Jarcho:use_cf, r=petrochenkov</title>
<updated>2024-03-08T12:22:26+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2024-03-08T12:22:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3e634f8c5c461f2377ea74d69ef8b669f7f28c24'/>
<id>urn:sha1:3e634f8c5c461f2377ea74d69ef8b669f7f28c24</id>
<content type='text'>
Use `ControlFlow` in visitors.

Follow up to #121256

This does have a few small behaviour changes in some diagnostic output where the visitor will now find the first match rather than the last match. The change in `find_anon_types.rs` has the only affected test. I don't see this being an issue as the last occurrence isn't any better of a choice than the first.
</content>
</entry>
<entry>
<title>Rollup merge of #119365 - nbdd0121:asm-goto, r=Amanieu</title>
<updated>2024-03-08T07:19:17+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2024-03-08T07:19:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d774fbea7c6cff6e929864f2e3fac4ae6cc88b44'/>
<id>urn:sha1:d774fbea7c6cff6e929864f2e3fac4ae6cc88b44</id>
<content type='text'>
Add asm goto support to `asm!`

Tracking issue: #119364

This PR implements asm-goto support, using the syntax described in "future possibilities" section of [RFC2873](https://rust-lang.github.io/rfcs/2873-inline-asm.html#asm-goto).

Currently I have only implemented the `label` part, not the `fallthrough` part (i.e. fallthrough is implicit). This doesn't reduce the expressive though, since you can use label-break to get arbitrary control flow or simply set a value and rely on jump threading optimisation to get the desired control flow. I can add that later if deemed necessary.

r? ``@Amanieu``
cc ``@ojeda``
</content>
</entry>
<entry>
<title>Eagerly translate HelpUseLatestEdition in parser diagnostics</title>
<updated>2024-03-07T23:03:42+00:00</updated>
<author>
<name>许杰友 Jieyou Xu (Joe)</name>
<email>jieyouxu@outlook.com</email>
</author>
<published>2024-03-07T23:03:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4663fbb2cb6922c28c4bd4e4947d8213f00382b3'/>
<id>urn:sha1:4663fbb2cb6922c28c4bd4e4947d8213f00382b3</id>
<content type='text'>
</content>
</entry>
</feed>
