<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_errors/src, branch 1.79.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.79.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.79.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2024-04-27T18:46:07+00:00</updated>
<entry>
<title>Rollup merge of #124370 - ShE3py:substitution-part-offset, r=fee1-dead</title>
<updated>2024-04-27T18:46:07+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2024-04-27T18:46:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=52ce43e9ac31efda1450a10470a4245284cba83e'/>
<id>urn:sha1:52ce43e9ac31efda1450a10470a4245284cba83e</id>
<content type='text'>
Fix substitution parts having a shifted underline in some cases

If two suggestions parts are side by side, the underline's offset:
(WIP PR as an example, not yet pushed)
```
error: expected a pattern, found an expression
 --&gt; ./main.rs:4:9
  |
4 |         1 + 2 =&gt; 3
  |         ^^^^^ arbitrary expressions are not allowed in patterns
  |
help: check the value in an arm guard
  |
4 |         n if n == 1 + 2 =&gt; 3
  |         ~     +++++++++++++
```
The emitter didn't take into account that the string had shrunk/grown if two substitution parts were side-by-side (surprisingly, there was only one case in the ui testsuite.)

```
help: check the value in an arm guard
  |
4 |         n if n == 1 + 2 =&gt; 3
  |         ~ +++++++++++++
```

``@rustbot`` label +A-suggestion-diagnostics
</content>
</entry>
<entry>
<title>Format stash message correctly</title>
<updated>2024-04-25T14:03:17+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2024-04-06T02:14:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=487cdeb039741600f5547d0c619a4cbd4039815d'/>
<id>urn:sha1:487cdeb039741600f5547d0c619a4cbd4039815d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix substitution parts having a shifted underline in some cases</title>
<updated>2024-04-25T11:09:13+00:00</updated>
<author>
<name>Lieselotte</name>
<email>52315535+she3py@users.noreply.github.com</email>
</author>
<published>2024-04-25T11:09:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b52e4bd99709fdf3c9b709f285d0ab4278fbcf8f'/>
<id>urn:sha1:b52e4bd99709fdf3c9b709f285d0ab4278fbcf8f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #124218 - Xiretza:subsubdiagnostics, r=davidtwco</title>
<updated>2024-04-23T15:25:17+00:00</updated>
<author>
<name>León Orell Valerian Liehr</name>
<email>me@fmease.dev</email>
</author>
<published>2024-04-23T15:25:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6e423e1651e807ee3a07aa2f188fefadcb464071'/>
<id>urn:sha1:6e423e1651e807ee3a07aa2f188fefadcb464071</id>
<content type='text'>
Allow nesting subdiagnostics in #[derive(Subdiagnostic)]
</content>
</entry>
<entry>
<title>Stabilize generic `NonZero`.</title>
<updated>2024-04-22T16:48:47+00:00</updated>
<author>
<name>Markus Reiter</name>
<email>me@reitermark.us</email>
</author>
<published>2024-04-21T16:41:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=33e68aadc975c60bf975789f70156e67082e8910'/>
<id>urn:sha1:33e68aadc975c60bf975789f70156e67082e8910</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move "elided lifetime in path" to subdiagnostic struct</title>
<updated>2024-04-21T07:45:03+00:00</updated>
<author>
<name>Xiretza</name>
<email>xiretza@xiretza.xyz</email>
</author>
<published>2024-04-20T13:21:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6974e9cf7012b0f3e2a58a8accde23007274f9a9'/>
<id>urn:sha1:6974e9cf7012b0f3e2a58a8accde23007274f9a9</id>
<content type='text'>
This requires nested subdiagnostics.
</content>
</entry>
<entry>
<title>Fix source ordering of IntoDiagArg impls</title>
<updated>2024-04-21T07:45:03+00:00</updated>
<author>
<name>Xiretza</name>
<email>xiretza@xiretza.xyz</email>
</author>
<published>2024-04-20T12:57:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b220b741c6d4e16e34d183b38d6384d369c9a620'/>
<id>urn:sha1:b220b741c6d4e16e34d183b38d6384d369c9a620</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Pass translation closure to add_to_diag_with() as reference</title>
<updated>2024-04-21T07:45:03+00:00</updated>
<author>
<name>Xiretza</name>
<email>xiretza@xiretza.xyz</email>
</author>
<published>2024-04-18T19:18:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5646b65cf58123679fdf4ef489f690d1b21e1436'/>
<id>urn:sha1:5646b65cf58123679fdf4ef489f690d1b21e1436</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Print note with closure signature on type mismatch</title>
<updated>2024-04-20T13:48:27+00:00</updated>
<author>
<name>Daniel Sedlak</name>
<email>daniel@sedlak.dev</email>
</author>
<published>2024-04-02T17:53:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=be564a8add9b05624274af0d729afdb16674a97d'/>
<id>urn:sha1:be564a8add9b05624274af0d729afdb16674a97d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Simplify `static_assert_size`s.</title>
<updated>2024-04-18T05:36:25+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-04-16T07:02:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0d97669a171d3d5c9c9c2d3437421d2d35d9bbb5'/>
<id>urn:sha1:0d97669a171d3d5c9c9c2d3437421d2d35d9bbb5</id>
<content type='text'>
We want to run them on all 64-bit platforms.
</content>
</entry>
</feed>
