<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/tests/ui/methods, branch lcnr/rustc-dev-guide</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=lcnr/rustc-dev-guide</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=lcnr/rustc-dev-guide'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-08-07T21:18:00+00:00</updated>
<entry>
<title>Use `tcx.short_string()` in more diagnostics</title>
<updated>2025-08-07T21:18:00+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2025-07-16T19:45:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=99196657fcb5c1e20c13e76166c7f52d35584e88'/>
<id>urn:sha1:99196657fcb5c1e20c13e76166c7f52d35584e88</id>
<content type='text'>
`TyCtxt::short_string` ensures that user visible type paths aren't overwhelming on the terminal output, and properly saves the long name to disk as a side-channel. We already use these throughout the compiler and have been using them as needed when users find cases where the output is verbose. This is a proactive search of some cases to use `short_string`.

We add support for shortening the path of "trait path only".

Every manual use of `short_string` is a bright marker that that error should be using structured diagnostics instead (as they have proper handling of long types without the maintainer having to think abou tthem).

When we don't actually print out a shortened type we don't need the "use `--verbose`" note.

On E0599 show type identity to avoid expanding the receiver's generic parameters.

Unify wording on `long_ty_path` everywhere.
</content>
</entry>
<entry>
<title>Rollup merge of #137831 - estebank:auto-trait-err, r=compiler-errors</title>
<updated>2025-08-07T10:49:36+00:00</updated>
<author>
<name>Stuart Cook</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2025-08-07T10:49:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=bcd50fd45fb92a6c96af7e91893488bd4499153c'/>
<id>urn:sha1:bcd50fd45fb92a6c96af7e91893488bd4499153c</id>
<content type='text'>
Tweak auto trait errors

Make suggestions to remove params and super traits verbose and make spans more accurate.

```
error[E0567]: auto traits cannot have generic parameters
  --&gt; $DIR/auto-trait-validation.rs:6:19
   |
LL | auto trait Generic&lt;T&gt; {}
   |            -------^^^
   |            |
   |            auto trait cannot have generic parameters

error[E0568]: auto traits cannot have super traits or lifetime bounds
  --&gt; $DIR/auto-trait-validation.rs:8:20
   |
LL | auto trait Bound : Copy {}
   |            -----   ^^^^
   |            |
   |            auto traits cannot have super traits or lifetime bounds
```

```
error[E0380]: auto traits cannot have associated items
  --&gt; $DIR/issue-23080.rs:5:8
   |
LL | unsafe auto trait Trait {
   |                   ----- auto traits cannot have associated items
LL |     fn method(&amp;self) {
   |        ^^^^^^
```
</content>
</entry>
<entry>
<title>Rehome tests/ui/issues/ tests [3/?]</title>
<updated>2025-08-04T20:43:53+00:00</updated>
<author>
<name>Oneirical</name>
<email>manchot@videotron.ca</email>
</author>
<published>2025-07-13T20:25:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7196d8cd661b875401126a81641d2effc40b3d85'/>
<id>urn:sha1:7196d8cd661b875401126a81641d2effc40b3d85</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Tweak auto trait errors</title>
<updated>2025-08-04T17:20:07+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2025-02-28T23:37:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=91e606b715ac4e8f59fac86d42ec2ad23f4ef169'/>
<id>urn:sha1:91e606b715ac4e8f59fac86d42ec2ad23f4ef169</id>
<content type='text'>
Make suggestions to remove params and super traits tool-only, and make
the suggestion span more accurate.

```
error[E0567]: auto traits cannot have generic parameters
  --&gt; $DIR/auto-trait-validation.rs:6:19
   |
LL | auto trait Generic&lt;T&gt; {}
   |            -------^^^
   |            |
   |            auto trait cannot have generic parameters

error[E0568]: auto traits cannot have super traits or lifetime bounds
  --&gt; $DIR/auto-trait-validation.rs:8:20
   |
LL | auto trait Bound : Copy {}
   |            -----   ^^^^
   |            |
   |            auto traits cannot have super traits or lifetime bounds
```

```
error[E0380]: auto traits cannot have associated items
  --&gt; $DIR/issue-23080.rs:5:8
   |
LL | unsafe auto trait Trait {
   |                   ----- auto traits cannot have associated items
LL |     fn method(&amp;self) {
   |        ^^^^^^
```
</content>
</entry>
<entry>
<title>Rehome tests/ui/issues/ tests [1/?]</title>
<updated>2025-07-24T21:01:44+00:00</updated>
<author>
<name>Oneirical</name>
<email>manchot@videotron.ca</email>
</author>
<published>2025-07-13T19:56:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a924d44115b632775ef0d2e12382e285953b0c2c'/>
<id>urn:sha1:a924d44115b632775ef0d2e12382e285953b0c2c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix: fix issue 143740, Wrong messages from compiler confusing methods with the same name from different traits</title>
<updated>2025-07-17T11:26:39+00:00</updated>
<author>
<name>codedump</name>
<email>lichuang1982@gmail.com</email>
</author>
<published>2025-07-16T15:21:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f2048019718409885ac57c480f010bdfbfe5bfd0'/>
<id>urn:sha1:f2048019718409885ac57c480f010bdfbfe5bfd0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use predicate spans instead of whole item spans</title>
<updated>2025-06-30T08:45:43+00:00</updated>
<author>
<name>Oli Scherer</name>
<email>github333195615777966@oli-obk.de</email>
</author>
<published>2025-06-04T11:32:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=28f023c75194fdd61b12b64a33e7e0ba877eb3c9'/>
<id>urn:sha1:28f023c75194fdd61b12b64a33e7e0ba877eb3c9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #142417 - Kivooeo:tf12, r=jieyouxu</title>
<updated>2025-06-29T10:29:55+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume1.gomez@gmail.com</email>
</author>
<published>2025-06-29T10:29:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=05b209d3a2f398c834cd9ecbe5eb095a49c26f02'/>
<id>urn:sha1:05b209d3a2f398c834cd9ecbe5eb095a49c26f02</id>
<content type='text'>
`tests/ui`: A New Order [12/N]

Some `tests/ui/` housekeeping, to trim down number of tests directly under `tests/ui/`. Part of rust-lang/rust#133895.

r? `@jieyouxu`
</content>
</entry>
<entry>
<title>cleaned up some tests</title>
<updated>2025-06-28T11:24:17+00:00</updated>
<author>
<name>Kivooeo</name>
<email>Kivooeo123@gmail.com</email>
</author>
<published>2025-06-12T13:29:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=aac948b702737e8ead5e800bd9f5dd03b5b6b534'/>
<id>urn:sha1:aac948b702737e8ead5e800bd9f5dd03b5b6b534</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make missing lifetime suggestion verbose</title>
<updated>2025-06-24T18:59:42+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2025-06-24T18:59:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=250b5d204f499c326699b0e2adf7d7757e55f16c'/>
<id>urn:sha1:250b5d204f499c326699b0e2adf7d7757e55f16c</id>
<content type='text'>
</content>
</entry>
</feed>
