<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/tests/ui/methods/method-call-err-msg.stderr, branch 1.80.1</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.80.1</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.80.1'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2024-04-27T07:54:31+00:00</updated>
<entry>
<title>tests: remove some trailing ws</title>
<updated>2024-04-27T07:54:31+00:00</updated>
<author>
<name>klensy</name>
<email>klensy@users.noreply.github.com</email>
</author>
<published>2024-04-25T10:17:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=411607bec493ac02c6038714561b52008f097a02'/>
<id>urn:sha1:411607bec493ac02c6038714561b52008f097a02</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Sort a diagnostic by `DefPathStr` instead of `DefId`</title>
<updated>2024-03-27T14:02:16+00:00</updated>
<author>
<name>Oli Scherer</name>
<email>git-spam-no-reply9815368754983@oli-obk.de</email>
</author>
<published>2024-03-21T17:00:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6be79cb103ff92bfd6db55f9f7602049e557a3ce'/>
<id>urn:sha1:6be79cb103ff92bfd6db55f9f7602049e557a3ce</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Account for non-overlapping unmet trait bounds in suggestion</title>
<updated>2024-01-30T19:26:13+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-01-30T18:10:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5c414094ac8d41038819dd982403f4e3de05d93c'/>
<id>urn:sha1:5c414094ac8d41038819dd982403f4e3de05d93c</id>
<content type='text'>
When a method not found on a type parameter could have been provided by any
of multiple traits, suggest each trait individually, instead of a single
suggestion to restrict the type parameter with *all* of them.

Before:

```
error[E0599]: the method `cmp` exists for reference `&amp;T`, but its trait bounds were not satisfied
  --&gt; $DIR/method-on-unbounded-type-param.rs:5:10
   |
LL |     (&amp;a).cmp(&amp;b)
   |          ^^^ method cannot be called on `&amp;T` due to unsatisfied trait bounds
   |
   = note: the following trait bounds were not satisfied:
           `T: Ord`
           which is required by `&amp;T: Ord`
           `&amp;T: Iterator`
           which is required by `&amp;mut &amp;T: Iterator`
           `T: Iterator`
           which is required by `&amp;mut T: Iterator`
help: consider restricting the type parameters to satisfy the trait bounds
   |
LL | fn g&lt;T&gt;(a: T, b: T) -&gt; std::cmp::Ordering where T: Iterator, T: Ord {
   |                                           +++++++++++++++++++++++++
```

After:

```
error[E0599]: the method `cmp` exists for reference `&amp;T`, but its trait bounds were not satisfied
  --&gt; $DIR/method-on-unbounded-type-param.rs:5:10
   |
LL |     (&amp;a).cmp(&amp;b)
   |          ^^^ method cannot be called on `&amp;T` due to unsatisfied trait bounds
   |
   = note: the following trait bounds were not satisfied:
           `T: Ord`
           which is required by `&amp;T: Ord`
           `&amp;T: Iterator`
           which is required by `&amp;mut &amp;T: Iterator`
           `T: Iterator`
           which is required by `&amp;mut T: Iterator`
   = help: items from traits can only be used if the type parameter is bounded by the trait
help: the following traits define an item `cmp`, perhaps you need to restrict type parameter `T` with one of them:
   |
LL | fn g&lt;T: Ord&gt;(a: T, b: T) -&gt; std::cmp::Ordering {
   |       +++++
LL | fn g&lt;T: Iterator&gt;(a: T, b: T) -&gt; std::cmp::Ordering {
   |       ++++++++++
```

Fix #108428.
</content>
</entry>
<entry>
<title>Use single label for method not found due to unmet bound</title>
<updated>2024-01-26T20:47:19+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-01-26T20:44:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7df4a09fc4e236f854273202e124747d47246ba5'/>
<id>urn:sha1:7df4a09fc4e236f854273202e124747d47246ba5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Highlight whole expression for E0599</title>
<updated>2023-03-01T16:57:11+00:00</updated>
<author>
<name>clubby789</name>
<email>jamie@hill-daniel.co.uk</email>
</author>
<published>2023-03-01T14:32:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6c2a952b5637f4795ad1d3ed08dfa4f43eaece51'/>
<id>urn:sha1:6c2a952b5637f4795ad1d3ed08dfa4f43eaece51</id>
<content type='text'>
</content>
</entry>
<entry>
<title>diagnostics: update test cases to refer to assoc fn with `self` as method</title>
<updated>2023-02-22T15:40:47+00:00</updated>
<author>
<name>Michael Howell</name>
<email>michael@notriddle.com</email>
</author>
<published>2023-02-21T21:11:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3f374128ee3924514aacadf96479e17fee8f9903'/>
<id>urn:sha1:3f374128ee3924514aacadf96479e17fee8f9903</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make removal suggestion not verbose</title>
<updated>2023-02-14T20:22:10+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2023-02-01T17:44:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=bd176ee591cd391835bfbcb3409a743bac2128ca'/>
<id>urn:sha1:bd176ee591cd391835bfbcb3409a743bac2128ca</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rebase and review comments</title>
<updated>2023-02-14T20:22:10+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2023-02-01T17:38:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5d63e10318ea76efc4d4d6a33cf1f74c9839adfb'/>
<id>urn:sha1:5d63e10318ea76efc4d4d6a33cf1f74c9839adfb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>More accurate spans for arg removal suggestion</title>
<updated>2023-02-14T20:22:09+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2023-01-01T07:13:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f02d8ec15eb430700b8181f4733b905e8e4ccca7'/>
<id>urn:sha1:f02d8ec15eb430700b8181f4733b905e8e4ccca7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move /src/test to /tests</title>
<updated>2023-01-11T09:32:08+00:00</updated>
<author>
<name>Albert Larsan</name>
<email>74931857+albertlarsan68@users.noreply.github.com</email>
</author>
<published>2023-01-05T08:13:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cf2dff2b1e3fa55fa5415d524200070d0d7aacfe'/>
<id>urn:sha1:cf2dff2b1e3fa55fa5415d524200070d0d7aacfe</id>
<content type='text'>
</content>
</entry>
</feed>
