<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/tests/ui/kindck, 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-05-27T08:18:11+00:00</updated>
<entry>
<title>Use more detailed spans in dyn compat errors within bodies</title>
<updated>2025-05-27T08:18:11+00:00</updated>
<author>
<name>Oli Scherer</name>
<email>github333195615777966@oli-obk.de</email>
</author>
<published>2025-05-26T10:38:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3fff727e87099b6cc4daca13f5fd0adf439ad4e7'/>
<id>urn:sha1:3fff727e87099b6cc4daca13f5fd0adf439ad4e7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Deduplicate dyn compatibility violations due to coercion</title>
<updated>2025-05-26T10:57:54+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2025-05-23T11:47:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a59c86ab449ddb83f824b12f87c1e2c6a38399be'/>
<id>urn:sha1:a59c86ab449ddb83f824b12f87c1e2c6a38399be</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove dyn_compatible_for_dispatch</title>
<updated>2025-02-24T18:48:40+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2025-02-04T02:37:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f3d31f77e4754d5547606d95db97fd6b2335a8ce'/>
<id>urn:sha1:f3d31f77e4754d5547606d95db97fd6b2335a8ce</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Extend the renaming to coerce_unsafe_ptr</title>
<updated>2025-02-10T13:01:55+00:00</updated>
<author>
<name>Bastian Kersting</name>
<email>bkersting@google.com</email>
</author>
<published>2025-01-24T14:58:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=432ff5e5599d7d2de01db6a2d66c3a6e18e2c7ba'/>
<id>urn:sha1:432ff5e5599d7d2de01db6a2d66c3a6e18e2c7ba</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Compiler: Finalize dyn compatibility renaming</title>
<updated>2025-01-26T20:20:31+00:00</updated>
<author>
<name>León Orell Valerian Liehr</name>
<email>me@fmease.dev</email>
</author>
<published>2025-01-22T04:14:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=57b5d3af620345c16d5450c9532ee99873995323'/>
<id>urn:sha1:57b5d3af620345c16d5450c9532ee99873995323</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refactor dyn-compatibility error and suggestions</title>
<updated>2025-01-22T17:20:57+00:00</updated>
<author>
<name>Taylor Cramer</name>
<email>cramertj@google.com</email>
</author>
<published>2024-11-20T22:19:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d00d4dfe0daba29036aab1f2b35a8c6ccb023f3e'/>
<id>urn:sha1:d00d4dfe0daba29036aab1f2b35a8c6ccb023f3e</id>
<content type='text'>
This CL makes a number of small changes to dyn compatibility errors:
- "object safety" has been renamed to "dyn-compatibility" throughout
- "Convert to enum" suggestions are no longer generated when there
  exists a type-generic impl of the trait or an impl for `dyn OtherTrait`
- Several error messages are reorganized for user readability

Additionally, the dyn compatibility error creation code has been
split out into functions.

cc #132713
cc #133267
</content>
</entry>
<entry>
<title>`best_blame_constraint`: don't filter constraints by sup SCC</title>
<updated>2025-01-07T00:08:29+00:00</updated>
<author>
<name>dianne</name>
<email>diannes.gm@gmail.com</email>
</author>
<published>2024-12-04T11:19:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ac922245f0c86657a56d3ca5eff4a1d1b1fcb0a1'/>
<id>urn:sha1:ac922245f0c86657a56d3ca5eff4a1d1b1fcb0a1</id>
<content type='text'>
The SCCs of the region graph are not a reliable heuristic to use for blaming an interesting
constraint for diagnostics. For region errors, if the outlived region is `'static`, or the involved
types are invariant in their lifetiems, there will be cycles in the constraint graph containing both
the target region and the most interesting constraints to blame. To get better diagnostics in these
cases, this commit removes that heuristic.
</content>
</entry>
<entry>
<title>Use trait name instead of full constraint in suggestion message</title>
<updated>2024-12-07T21:29:58+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-11-28T20:22:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3f2a63a68bbf4e84f7e409659bb64bdd75db39e5'/>
<id>urn:sha1:3f2a63a68bbf4e84f7e409659bb64bdd75db39e5</id>
<content type='text'>
```
help: consider restricting type parameter `T` with traits `Copy` and `Trait`
   |
LL | fn duplicate_custom&lt;T: Copy + Trait&gt;(t: S&lt;T&gt;) -&gt; (S&lt;T&gt;, S&lt;T&gt;) {
   |                      ++++++++++++++
```

```
help: consider restricting type parameter `V` with trait `Copy`
   |
LL | fn index&lt;'a, K, V: std::marker::Copy&gt;(map: &amp;'a HashMap&lt;K, V&gt;, k: K) -&gt; &amp;'a V {
   |                  +++++++++++++++++++
```
</content>
</entry>
<entry>
<title>reword trait bound suggestion message to include the bounds</title>
<updated>2024-12-07T21:26:20+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-11-28T18:43:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d13c34828e4bc0924f7e27bae994f9afecaf0ab4'/>
<id>urn:sha1:d13c34828e4bc0924f7e27bae994f9afecaf0ab4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove detail from label/note that is already available in other note</title>
<updated>2024-10-29T16:26:57+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-10-24T21:14:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5b542866400ad4a294f468cfa7e059d95c27a079'/>
<id>urn:sha1:5b542866400ad4a294f468cfa7e059d95c27a079</id>
<content type='text'>
Remove the "which is required by `{root_obligation}`" post-script in
"the trait `X` is not implemented for `Y`" explanation in E0277. This
information is already conveyed in the notes explaining requirements,
making it redundant while making the text (particularly in labels)
harder to read.

```
error[E0277]: the trait bound `NotCopy: Copy` is not satisfied
  --&gt; $DIR/wf-static-type.rs:10:13
   |
LL | static FOO: IsCopy&lt;Option&lt;NotCopy&gt;&gt; = IsCopy { t: None };
   |             ^^^^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `NotCopy`
   |
   = note: required for `Option&lt;NotCopy&gt;` to implement `Copy`
note: required by a bound in `IsCopy`
  --&gt; $DIR/wf-static-type.rs:7:17
   |
LL | struct IsCopy&lt;T:Copy&gt; { t: T }
   |                 ^^^^ required by this bound in `IsCopy`
```
vs the prior

```
error[E0277]: the trait bound `NotCopy: Copy` is not satisfied
  --&gt; $DIR/wf-static-type.rs:10:13
   |
LL | static FOO: IsCopy&lt;Option&lt;NotCopy&gt;&gt; = IsCopy { t: None };
   |             ^^^^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `NotCopy`, which is required by `Option&lt;NotCopy&gt;: Copy`
   |
   = note: required for `Option&lt;NotCopy&gt;` to implement `Copy`
note: required by a bound in `IsCopy`
  --&gt; $DIR/wf-static-type.rs:7:17
   |
LL | struct IsCopy&lt;T:Copy&gt; { t: T }
   |                 ^^^^ required by this bound in `IsCopy`
```
</content>
</entry>
</feed>
