<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/tests/ui/span, 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-10-01T07:39:03+00:00</updated>
<entry>
<title>indexing: reword help</title>
<updated>2025-10-01T07:39:03+00:00</updated>
<author>
<name>Marijn Schouten</name>
<email>mhkbst@gmail.com</email>
</author>
<published>2025-09-15T11:35:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=86f2d424c8cda473aa1bf91365f499cfe520c54a'/>
<id>urn:sha1:86f2d424c8cda473aa1bf91365f499cfe520c54a</id>
<content type='text'>
Co-authored-by: beef &lt;ent3rm4n@gmail.com&gt;
</content>
</entry>
<entry>
<title>use `try_structurally_resolve_type` for method receiver</title>
<updated>2025-09-26T14:33:15+00:00</updated>
<author>
<name>lcnr</name>
<email>rust@lcnr.de</email>
</author>
<published>2025-09-23T13:32:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6b379b560df483307958f2a606a1dd514fff36ca'/>
<id>urn:sha1:6b379b560df483307958f2a606a1dd514fff36ca</id>
<content type='text'>
We'll still error due to the `opt_bad_ty` of `method_autoderef_steps`.
This slightly worsens the span of `infer_var.method()` which is now the
same as for `Box::new(infer_var).method()`.

Unlike `structurally_resolve_type`, `probe_op` does not check whether
the infcx is already tainted, so this results in 2 previously not emitted
errors.
</content>
</entry>
<entry>
<title>On binding not present in all patterns, suggest potential typo</title>
<updated>2025-08-25T15:16:25+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2025-08-24T19:22:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8dbdb1760b23112f87aedad37e4dad97559bc750'/>
<id>urn:sha1:8dbdb1760b23112f87aedad37e4dad97559bc750</id>
<content type='text'>
```
error[E0408]: variable `Ban` is not bound in all patterns
 --&gt; f12.rs:9:9
  |
9 |         (Foo,Bar)|(Ban,Foo) =&gt; {}
  |         ^^^^^^^^^  --- variable not in all patterns
  |         |
  |         pattern doesn't bind `Ban`
  |
help: you might have meant to use the similarly named previously used binding `Bar`
  |
9 -         (Foo,Bar)|(Ban,Foo) =&gt; {}
9 +         (Foo,Bar)|(Bar,Foo) =&gt; {}
  |
```
</content>
</entry>
<entry>
<title>On E0277, point at type that doesn't implement bound</title>
<updated>2025-08-22T17:55:15+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2025-08-19T17:49:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=049c32797b5f797d5823cdc0e5aaeb0fd68175da'/>
<id>urn:sha1:049c32797b5f797d5823cdc0e5aaeb0fd68175da</id>
<content type='text'>
When encountering an unmet trait bound, point at local type that doesn't implement the trait:

```
error[E0277]: the trait bound `Bar&lt;T&gt;: Foo` is not satisfied
  --&gt; $DIR/issue-64855.rs:9:19
   |
LL | pub struct Bar&lt;T&gt;(&lt;Self as Foo&gt;::Type) where Self: ;
   |                   ^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
   |
help: the trait `Foo` is not implemented for `Bar&lt;T&gt;`
  --&gt; $DIR/issue-64855.rs:9:1
   |
LL | pub struct Bar&lt;T&gt;(&lt;Self as Foo&gt;::Type) where Self: ;
   | ^^^^^^^^^^^^^^^^^
```
</content>
</entry>
<entry>
<title>bless tests with new lint messages</title>
<updated>2025-08-19T19:27:10+00:00</updated>
<author>
<name>Karol Zwolak</name>
<email>karolzwolak7@gmail.com</email>
</author>
<published>2025-04-28T11:47:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d14b83e378c421dd09320ace833a9d47848e3046'/>
<id>urn:sha1:d14b83e378c421dd09320ace833a9d47848e3046</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #145378 - xizheyin:144968, r=davidtwco</title>
<updated>2025-08-15T06:16:41+00:00</updated>
<author>
<name>Stuart Cook</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2025-08-15T06:16:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=dc047f1385f03c12dcdcd24d76351fc55ab83592'/>
<id>urn:sha1:dc047f1385f03c12dcdcd24d76351fc55ab83592</id>
<content type='text'>
Add `FnContext` in parser for diagnostic

Fixes rust-lang/rust#144968

Inspired by https://github.com/rust-lang/rust/issues/144968#issuecomment-3156094581, I implemented `FnContext` to indicate whether a function should have a self parameter, for example, whether the function is a trait method, whether it is in an impl block. And I removed the outdated note.

I made two commits to show the difference.

cc ``@estebank`` ``@djc``

r? compiler
</content>
</entry>
<entry>
<title>Adjust error message grammar to be less awkward</title>
<updated>2025-08-14T16:50:07+00:00</updated>
<author>
<name>Jake Goulding</name>
<email>jake.goulding@gmail.com</email>
</author>
<published>2025-08-14T16:50:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=65d329d189651f5f4612e87132ca6c041cf61ab4'/>
<id>urn:sha1:65d329d189651f5f4612e87132ca6c041cf61ab4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add FnContext in parser for diagnostic</title>
<updated>2025-08-14T13:31:47+00:00</updated>
<author>
<name>xizheyin</name>
<email>xizheyin@smail.nju.edu.cn</email>
</author>
<published>2025-08-14T13:30:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3ce555f6313e78d3eed80fd22e22ef49f5bd3611'/>
<id>urn:sha1:3ce555f6313e78d3eed80fd22e22ef49f5bd3611</id>
<content type='text'>
Signed-off-by: xizheyin &lt;xizheyin@smail.nju.edu.cn&gt;
</content>
</entry>
<entry>
<title>Add more docs to templates for attrs with incorrect arguments</title>
<updated>2025-08-11T17:02:32+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2025-08-11T17:02:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=32ee26c625e8fbb7a3aa56788cbb352f04491964'/>
<id>urn:sha1:32ee26c625e8fbb7a3aa56788cbb352f04491964</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Allow attr entries to declare list of alternatives for `List` and `NamedValueStr`</title>
<updated>2025-08-11T16:00:49+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2025-08-11T01:46:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=189f264926ff70b58c8907473de60766477e7dd6'/>
<id>urn:sha1:189f264926ff70b58c8907473de60766477e7dd6</id>
<content type='text'>
Modify `AttributeTemplate` to support list of alternatives for list and name value attribute styles.

Suggestions now provide more correct suggested code:

```
error[E0805]: malformed `used` attribute input
  --&gt; $DIR/used_with_multi_args.rs:3:1
   |
LL | #[used(compiler, linker)]
   | ^^^^^^------------------^
   |       |
   |       expected a single argument here
   |
help: try changing it to one of the following valid forms of the attribute
   |
LL - #[used(compiler, linker)]
LL + #[used(compiler)]
   |
LL - #[used(compiler, linker)]
LL + #[used(linker)]
   |
LL - #[used(compiler, linker)]
LL + #[used]
   |
```

instead of the prior "masking" of the lack of this feature by suggesting pipe-separated lists:

```
error[E0805]: malformed `used` attribute input
  --&gt; $DIR/used_with_multi_args.rs:3:1
   |
LL | #[used(compiler, linker)]
   | ^^^^^^------------------^
   |       |
   |       expected a single argument here
   |
help: try changing it to one of the following valid forms of the attribute
   |
LL - #[used(compiler, linker)]
LL + #[used(compiler|linker)]
   |
LL - #[used(compiler, linker)]
LL + #[used]
   |
```
</content>
</entry>
</feed>
