<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_trait_selection/src/errors, branch perf-tmp</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=perf-tmp</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=perf-tmp'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-07-04T18:26:09+00:00</updated>
<entry>
<title>Fix elided lifetimes in rustdoc</title>
<updated>2025-07-04T18:26:09+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2025-06-25T22:32:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0ad96c1e1f12a21f4cb734acd76d94a27066700e'/>
<id>urn:sha1:0ad96c1e1f12a21f4cb734acd76d94a27066700e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove Symbol for Named LateParam/Bound variants</title>
<updated>2025-07-04T18:14:22+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2025-04-11T04:17:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=42c9bfd2b96f2e6cd0e4e6fab21c2d5499883089'/>
<id>urn:sha1:42c9bfd2b96f2e6cd0e4e6fab21c2d5499883089</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add runtime check to avoid overwrite arg easily in diag and store and restore snapshot when set subdiag arg</title>
<updated>2025-06-25T13:07:16+00:00</updated>
<author>
<name>xizheyin</name>
<email>xizheyin@smail.nju.edu.cn</email>
</author>
<published>2025-06-21T16:12:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d2d17c60bd62c03b91f6ded31b34da90addf2fc0'/>
<id>urn:sha1:d2d17c60bd62c03b91f6ded31b34da90addf2fc0</id>
<content type='text'>
Signed-off-by: xizheyin &lt;xizheyin@smail.nju.edu.cn&gt;
</content>
</entry>
<entry>
<title>Move eager translation to a method on `Diag`</title>
<updated>2025-04-17T01:38:59+00:00</updated>
<author>
<name>Jake Goulding</name>
<email>jake.goulding@gmail.com</email>
</author>
<published>2025-03-21T14:09:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=01178849174bdff3e3e951827d9ea4884c23b758'/>
<id>urn:sha1:01178849174bdff3e3e951827d9ea4884c23b758</id>
<content type='text'>
This will allow us to eagerly translate messages on a top-level
diagnostic, such as a `LintDiagnostic`. As a bonus, we can remove the
awkward closure passed into Subdiagnostic and make better use of
`Into`.
</content>
</entry>
<entry>
<title>clean code: remove Deref&lt;Target=RegionKind&gt; impl for Region and use `.kind()`</title>
<updated>2025-04-08T02:51:41+00:00</updated>
<author>
<name>xizheyin</name>
<email>xizheyin@smail.nju.edu.cn</email>
</author>
<published>2025-04-08T02:51:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c7272a6cbc999a187d564624594889532e47ffa0'/>
<id>urn:sha1:c7272a6cbc999a187d564624594889532e47ffa0</id>
<content type='text'>
Signed-off-by: xizheyin &lt;xizheyin@smail.nju.edu.cn&gt;
</content>
</entry>
<entry>
<title>Teach structured errors to display short `Ty`</title>
<updated>2025-02-25T16:56:03+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2025-02-18T01:15:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d12ecaed558426ec7998816d64b240ea685a2a8f'/>
<id>urn:sha1:d12ecaed558426ec7998816d64b240ea685a2a8f</id>
<content type='text'>
Make it so that every structured error annotated with `#[derive(Diagnostic)]` that has a field of type `Ty&lt;'_&gt;`, the printing of that value into a `String` will look at the thread-local storage `TyCtxt` in order to shorten to a length appropriate with the terminal width. When this happen, the resulting error will have a note with the file where the full type name was written to.

```
error[E0618]: expected function, found `((..., ..., ..., ...), ..., ..., ...)``
 --&gt; long.rs:7:5
  |
6 | fn foo(x: D) { //~ `x` has type `(...
  |        - `x` has type `((..., ..., ..., ...), ..., ..., ...)`
7 |     x(); //~ ERROR expected function, found `(...
  |     ^--
  |     |
  |     call expression requires function
  |
  = note: the full name for the type has been written to 'long.long-type-14182675702747116984.txt'
  = note: consider using `--verbose` to print the full type name to the console
```
</content>
</entry>
<entry>
<title>Move some `Map` methods onto `TyCtxt`.</title>
<updated>2025-02-17T02:21:02+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2025-02-02T23:45:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f86f7ad5f2d3eb6631e5fab57630a4fee9a50d01'/>
<id>urn:sha1:f86f7ad5f2d3eb6631e5fab57630a4fee9a50d01</id>
<content type='text'>
The end goal is to eliminate `Map` altogether.

I added a `hir_` prefix to all of them, that seemed simplest. The
exceptions are `module_items` which became `hir_module_free_items` because
there was already a `hir_module_items`, and `items` which became
`hir_free_items` for consistency with `hir_module_free_items`.
</content>
</entry>
<entry>
<title>introduce `LateParamRegionKind`</title>
<updated>2024-12-18T15:05:44+00:00</updated>
<author>
<name>lcnr</name>
<email>rust@lcnr.de</email>
</author>
<published>2024-12-06T13:46:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=085d93181093c1daf9ef595cd08d73633062e635'/>
<id>urn:sha1:085d93181093c1daf9ef595cd08d73633062e635</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Re-export more `rustc_span::symbol` things from `rustc_span`.</title>
<updated>2024-12-18T02:38:53+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-12-12T23:29:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2620eb42d72d24baa1ca1056a769862b92c85f7f'/>
<id>urn:sha1:2620eb42d72d24baa1ca1056a769862b92c85f7f</id>
<content type='text'>
`rustc_span::symbol` defines some things that are re-exported from
`rustc_span`, such as `Symbol` and `sym`. But it doesn't re-export some
closely related things such as `Ident` and `kw`. So you can do `use
rustc_span::{Symbol, sym}` but you have to do `use
rustc_span::symbol::{Ident, kw}`, which is inconsistent for no good
reason.

This commit re-exports `Ident`, `kw`, and `MacroRulesNormalizedIdent`,
and changes many `rustc_span::symbol::` qualifiers in `compiler/` to
`rustc_span::`. This is a 200+ net line of code reduction, mostly
because many files with two `use rustc_span` items can be reduced to
one.
</content>
</entry>
<entry>
<title>small refactor to region error handling</title>
<updated>2024-12-17T08:00:29+00:00</updated>
<author>
<name>lcnr</name>
<email>rust@lcnr.de</email>
</author>
<published>2024-12-06T13:23:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e6349b414e61111cdd9c97602490d8fbfab003e7'/>
<id>urn:sha1:e6349b414e61111cdd9c97602490d8fbfab003e7</id>
<content type='text'>
</content>
</entry>
</feed>
