<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_errors/src, branch 1.82.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.82.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.82.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2024-08-27T02:03:37+00:00</updated>
<entry>
<title>Add `warn(unreachable_pub)` to `rustc_errors`.</title>
<updated>2024-08-27T02:03:37+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-08-27T02:03:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5fd503ab445b2a70897026e495dd4df4343333eb'/>
<id>urn:sha1:5fd503ab445b2a70897026e495dd4df4343333eb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix `elided_named_lifetimes` in code</title>
<updated>2024-08-24T16:21:32+00:00</updated>
<author>
<name>Pavel Grigorenko</name>
<email>GrigorenkoPV@ya.ru</email>
</author>
<published>2024-08-22T22:12:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=53ce92770d0b1005cfc07cc8f14011339e2abc26'/>
<id>urn:sha1:53ce92770d0b1005cfc07cc8f14011339e2abc26</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update annotate-snippets to 0.11</title>
<updated>2024-08-19T20:22:07+00:00</updated>
<author>
<name>Xiretza</name>
<email>xiretza@xiretza.xyz</email>
</author>
<published>2024-08-19T20:20:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c864238baf2d44e1634c754451d69e66ef56201b'/>
<id>urn:sha1:c864238baf2d44e1634c754451d69e66ef56201b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add `|` to make the html doc of `Level` rendered correctly</title>
<updated>2024-08-14T05:38:03+00:00</updated>
<author>
<name>Jaic1</name>
<email>506933131@qq.com</email>
</author>
<published>2024-08-14T05:38:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8557b56ec7ed3b9d94d0fcbbec97547ffb45e568'/>
<id>urn:sha1:8557b56ec7ed3b9d94d0fcbbec97547ffb45e568</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #128978 - compiler-errors:assert-matches, r=jieyouxu</title>
<updated>2024-08-12T15:09:19+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume1.gomez@gmail.com</email>
</author>
<published>2024-08-12T15:09:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7c6dca90509fe94e775bfd5d2c7132fb210f57b4'/>
<id>urn:sha1:7c6dca90509fe94e775bfd5d2c7132fb210f57b4</id>
<content type='text'>
Use `assert_matches` around the compiler more

It's a useful assertion, especially since it actually prints out the LHS.
</content>
</entry>
<entry>
<title>Use assert_matches around the compiler</title>
<updated>2024-08-11T16:25:39+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2024-08-11T16:10:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c361c924a08c2e34c705ec3ee1ad2099315338d8'/>
<id>urn:sha1:c361c924a08c2e34c705ec3ee1ad2099315338d8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #128762 - fmease:use-more-slice-pats, r=compiler-errors</title>
<updated>2024-08-11T05:51:51+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2024-08-11T05:51:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=32e0fe129d495d3d4dacdcd066d9e339534a8338'/>
<id>urn:sha1:32e0fe129d495d3d4dacdcd066d9e339534a8338</id>
<content type='text'>
Use more slice patterns inside the compiler

Nothing super noteworthy. Just replacing the common 'fragile' pattern of "length check followed by indexing or unwrap" with slice patterns for legibility and 'robustness'.

r? ghost
</content>
</entry>
<entry>
<title>Update std and compiler</title>
<updated>2024-08-10T10:07:17+00:00</updated>
<author>
<name>Nadrieril</name>
<email>nadrieril+git@gmail.com</email>
</author>
<published>2024-03-20T18:49:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c256de2253315d4668c417291b9ea5115b49667c'/>
<id>urn:sha1:c256de2253315d4668c417291b9ea5115b49667c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #128852 - folkertdev:multipart-suggestion-stable-sort, r=compiler-errors</title>
<updated>2024-08-09T16:24:58+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2024-08-09T16:24:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2066002b86062d57771f1c0f63871d825f4f201c'/>
<id>urn:sha1:2066002b86062d57771f1c0f63871d825f4f201c</id>
<content type='text'>
use stable sort to sort multipart diagnostics

I think a stable sort should be used to sort the different parts of a multipart selection. The current unstable sort uses the text of the suggestion as a tie-breaker. That just doesn't seem right, and the order of the input is a better choice I think, because it gives the diagnostic author more control.

This came up when I was building a suggestion where

```rust
fn foo() {}
```

must be turned into an unsafe function, and an attribute must be added

```rust
#[target_feature(enable = "...")]
unsafe fn foo() {}
```

In this example, the two suggestions occur at the same position, but the order is extremely important: unsafe must come after the attribute. But the situation changes if there is a pub/pub(crate), and if the unsafe is already present. It just out that because of the suggestion text, there is no way for me to order the suggestions correctly.

This change probably should be tested, but are there tests of the diagnostics code itself in the tests?

r? ```@estebank```
</content>
</entry>
<entry>
<title>use stable sort to sort multipart diagnostics</title>
<updated>2024-08-09T07:45:01+00:00</updated>
<author>
<name>Folkert</name>
<email>folkert@folkertdev.nl</email>
</author>
<published>2024-08-08T21:55:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=38874a692738f23b17d20a81bb906701303c0474'/>
<id>urn:sha1:38874a692738f23b17d20a81bb906701303c0474</id>
<content type='text'>
</content>
</entry>
</feed>
