<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/tests/ui/methods/issues, branch master</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=master</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=master'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-08-04T17:20:07+00:00</updated>
<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>UI tests: add missing diagnostic kinds where possible</title>
<updated>2025-04-08T20:06:31+00:00</updated>
<author>
<name>Vadim Petrochenkov</name>
<email>vadim.petrochenkov@gmail.com</email>
</author>
<published>2025-04-05T16:19:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b3f75353a237f3623483c1e237be480140a8c3e1'/>
<id>urn:sha1:b3f75353a237f3623483c1e237be480140a8c3e1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Trim suggestion parts to the subset that is purely additive</title>
<updated>2025-02-14T08:44:10+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2025-02-13T03:21:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6d71251cf9e40326461f90f8ff9a7024706aea87'/>
<id>urn:sha1:6d71251cf9e40326461f90f8ff9a7024706aea87</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use underline suggestions for purely 'additive' replacements</title>
<updated>2025-02-14T08:27:13+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2025-02-13T02:54:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b480a9214a7037813d29bc04d9e9dbe92ce10cf3'/>
<id>urn:sha1:b480a9214a7037813d29bc04d9e9dbe92ce10cf3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Show diff suggestion format on verbose replacement</title>
<updated>2025-02-10T20:21:39+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-07-09T22:30:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f0845adb0c1b7a7fa1bef73e749b2d7e1d7f374d'/>
<id>urn:sha1:f0845adb0c1b7a7fa1bef73e749b2d7e1d7f374d</id>
<content type='text'>
```
error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
  --&gt; $DIR/attempted-access-non-fatal.rs:7:15
   |
LL |     let _ = 2.l;
   |               ^
   |
help: if intended to be a floating point literal, consider adding a `0` after the period and a `f64` suffix
   |
LL -     let _ = 2.l;
LL +     let _ = 2.0f64;
   |
```
</content>
</entry>
<entry>
<title>Check for generic parameter mismatches on trait functions.</title>
<updated>2025-02-03T17:54:53+00:00</updated>
<author>
<name>Jason Newcomb</name>
<email>jsnewcomb@pm.me</email>
</author>
<published>2025-02-03T16:19:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6378fbc366ad552ee791bcac670e0f3939489ef7'/>
<id>urn:sha1:6378fbc366ad552ee791bcac670e0f3939489ef7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Note for E0599 if shadowed bindings has the method.</title>
<updated>2024-05-20T10:53:17+00:00</updated>
<author>
<name>surechen</name>
<email>chenshuo17@huawei.com</email>
</author>
<published>2024-04-23T07:31:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b092b5d02b9e2aea72d5993d36c1cbe60e4e9b6b'/>
<id>urn:sha1:b092b5d02b9e2aea72d5993d36c1cbe60e4e9b6b</id>
<content type='text'>
implement #123558
</content>
</entry>
<entry>
<title>Be more lax in `.into_iter()` suggestion when encountering `Iterator` methods on non-`Iterator`</title>
<updated>2024-03-03T18:53:36+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-03-01T21:37:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=89a3c198321f33b5c9efb54eb48d354c4bd5c614'/>
<id>urn:sha1:89a3c198321f33b5c9efb54eb48d354c4bd5c614</id>
<content type='text'>
```
error[E0599]: no method named `map` found for struct `Vec&lt;bool&gt;` in the current scope
  --&gt; $DIR/vec-on-unimplemented.rs:3:23
   |
LL |     vec![true, false].map(|v| !v).collect::&lt;Vec&lt;_&gt;&gt;();
   |                       ^^^ `Vec&lt;bool&gt;` is not an iterator
   |
help: call `.into_iter()` first
   |
LL |     vec![true, false].into_iter().map(|v| !v).collect::&lt;Vec&lt;_&gt;&gt;();
   |                       ++++++++++++
```

We used to provide some help through `rustc_on_unimplemented` on non-`impl Trait` and non-type-params, but this lets us get rid of some otherwise unnecessary conditions in the annotation on `Iterator`.
</content>
</entry>
<entry>
<title>Deduplicate some logic and reword output</title>
<updated>2024-02-22T18:05:28+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-02-14T18:23:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=28c028737d6d004c55f1bbb2e1201d6330657548'/>
<id>urn:sha1:28c028737d6d004c55f1bbb2e1201d6330657548</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make confusable suggestions `verbose`</title>
<updated>2024-02-22T18:04:55+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-02-10T03:37:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e1e4da2b0ad6a052e8ec4460d65db95c81d6314b'/>
<id>urn:sha1:e1e4da2b0ad6a052e8ec4460d65db95c81d6314b</id>
<content type='text'>
</content>
</entry>
</feed>
