<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/tests/ui/nll/member-constraints, branch try-perf</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=try-perf</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=try-perf'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-08-15T18:52:12+00:00</updated>
<entry>
<title>Auto merge of #142071 - lcnr:revealing-use, r=compiler-errors</title>
<updated>2025-08-15T18:52:12+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2025-08-15T18:52:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cd7cbe818e4a66d46fe2df993d1b8518eba8a5cd'/>
<id>urn:sha1:cd7cbe818e4a66d46fe2df993d1b8518eba8a5cd</id>
<content type='text'>
`apply_member_constraints`: fix placeholder check

Checking whether the member region is *an existential region from a higher universe* is just wrong and I am pretty sure we've added that check by accident as the naming was just horribly confusing before rust-lang/rust#140466.

I've encountered this issue separately while working on rust-lang/rust#139587, but feel like it's probably easier to separately FCP this change. This allows the following code to compile
```rust
trait Proj&lt;'a&gt; {
    type Assoc;
}
impl&lt;'a, 'b, F: FnOnce() -&gt; &amp;'b ()&gt; Proj&lt;'a&gt; for F {
    type Assoc = ();
}

fn is_proj&lt;F: for&lt;'a&gt; Proj&lt;'a&gt;&gt;(f: F) {}
fn define&lt;'a&gt;() -&gt; impl Sized + use&lt;'a&gt; {
    // This adds a use of `opaque::&lt;'a&gt;` with hidden type `&amp;'unconstrained_b ()`.
    // 'unconstrained_b is an inference variable from a higher universe as it gets
    // created inside of the binder of `F: for&lt;'a&gt; Proj&lt;'a&gt;`. This previously
    // caused us to not apply member constraints. We now do, constraining
    // it to `'a`.
    is_proj(define::&lt;'a&gt;);
    &amp;()
}

fn main() {}
```

This should not be breaking change, even in theory. Applying member constraints is incomplete in rare circumstances which means that applying them in more cases can cause spurious errors, cc rust-lang/rust#140569/rust-lang/rust#142073. However, as we always skipped these member regions in `apply_member_constraints` the skipped region is guaranteed to cause an error in `check_member_constraints` later on.
</content>
</entry>
<entry>
<title>apply_member_constraints: fix placeholder check</title>
<updated>2025-08-08T12:32:35+00:00</updated>
<author>
<name>lcnr</name>
<email>rust@lcnr.de</email>
</author>
<published>2025-06-05T10:01:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cde14e65bf4d072ab38cf7e909113979b12ae044'/>
<id>urn:sha1:cde14e65bf4d072ab38cf7e909113979b12ae044</id>
<content type='text'>
</content>
</entry>
<entry>
<title>move member-constraints tests</title>
<updated>2025-08-07T12:20:19+00:00</updated>
<author>
<name>lcnr</name>
<email>rust@lcnr.de</email>
</author>
<published>2025-08-07T12:20:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=064d5886544de3f28b0804fb15654ea49eb6b9c7'/>
<id>urn:sha1:064d5886544de3f28b0804fb15654ea49eb6b9c7</id>
<content type='text'>
</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>Bless test fallout</title>
<updated>2024-08-17T16:43:25+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2024-07-13T02:10:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=84044cd50f3db13defbd96e6720da62140679a25'/>
<id>urn:sha1:84044cd50f3db13defbd96e6720da62140679a25</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives</title>
<updated>2024-02-16T20:02:50+00:00</updated>
<author>
<name>许杰友 Jieyou Xu (Joe)</name>
<email>jieyouxu@outlook.com</email>
</author>
<published>2024-02-16T20:02:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ec2cc761bc7067712ecc7734502f703fe3b024c8'/>
<id>urn:sha1:ec2cc761bc7067712ecc7734502f703fe3b024c8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>remove trailing dots</title>
<updated>2023-10-08T10:06:17+00:00</updated>
<author>
<name>Ali MJ Al-Nasrawy</name>
<email>alimjalnasrawy@gmail.com</email>
</author>
<published>2023-10-08T10:06:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a8830631b9446c8b48cd4eba1ef448eb5a258cdc'/>
<id>urn:sha1:a8830631b9446c8b48cd4eba1ef448eb5a258cdc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>always show and explain sub region</title>
<updated>2023-10-08T09:59:51+00:00</updated>
<author>
<name>Ali MJ Al-Nasrawy</name>
<email>alimjalnasrawy@gmail.com</email>
</author>
<published>2023-09-17T14:32:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=996ffcb718941fc36ec5fdee38ed99ce20ec06d5'/>
<id>urn:sha1:996ffcb718941fc36ec5fdee38ed99ce20ec06d5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>vars are ?</title>
<updated>2023-04-25T19:53:09+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2023-04-22T00:08:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=bb99cdc7cd3f2c0b1ab533735604ade7c2fdf9ad'/>
<id>urn:sha1:bb99cdc7cd3f2c0b1ab533735604ade7c2fdf9ad</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Label opaque type for 'captures lifetime' error message</title>
<updated>2023-03-03T05:02:34+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2023-02-21T03:58:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4b23a224ab644cea703922859f64950898eba90d'/>
<id>urn:sha1:4b23a224ab644cea703922859f64950898eba90d</id>
<content type='text'>
</content>
</entry>
</feed>
