<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/test/ui/closures, 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>2023-01-11T09:32:08+00:00</updated>
<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>
<entry>
<title>Detect closures assigned to binding in block</title>
<updated>2023-01-05T21:29:36+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2023-01-05T21:29:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ce6b7179afcdf6ae2dad7e69c56f1f5c957b47bd'/>
<id>urn:sha1:ce6b7179afcdf6ae2dad7e69c56f1f5c957b47bd</id>
<content type='text'>
Fix #58497.
</content>
</entry>
<entry>
<title>Auto merge of #105409 - compiler-errors:closure-infer-cycle, r=jackh726</title>
<updated>2023-01-05T03:59:31+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2023-01-05T03:59:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=03b9e1d154ecf8e04656fdf0179a28cd8ef333c5'/>
<id>urn:sha1:03b9e1d154ecf8e04656fdf0179a28cd8ef333c5</id>
<content type='text'>
Don't deduce a signature that makes a closure cyclic

Sometimes when elaborating supertrait bounds for closure signature inference, we end up deducing a closure signature that is cyclical because either a parameter or the return type references a projection mentioning `Self` that also has escaping bound vars, which means that it's not eagerly replaced with an inference variable.

Interestingly, this is not *just* related to my PR that elaborates supertrait bounds for closure signature deduction. The committed test `supertrait-hint-cycle-3.rs` shows **stable** code that is fixed by this PR:

```rust
trait Foo&lt;'a&gt; {
    type Input;
}

impl&lt;F: Fn(u32)&gt; Foo&lt;'_&gt; for F {
    type Input = u32;
}

fn needs_super&lt;F: for&lt;'a&gt; Fn(&lt;F as Foo&lt;'a&gt;&gt;::Input) + for&lt;'a&gt; Foo&lt;'a&gt;&gt;(_: F) {}

fn main() {
    needs_super(|_: u32| {});
}
```

Fixes #105401
Fixes #105396

r? types
</content>
</entry>
<entry>
<title>Verbose suggestions</title>
<updated>2023-01-02T05:33:23+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2023-01-01T08:06:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=545406528a229f24844305b1a925cd6c743ea8ed'/>
<id>urn:sha1:545406528a229f24844305b1a925cd6c743ea8ed</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use verbose suggestions for mutability errors</title>
<updated>2022-12-29T06:06:25+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2022-12-29T05:52:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b9439ebf1240e75e8f110298bbfe868169f16ebe'/>
<id>urn:sha1:b9439ebf1240e75e8f110298bbfe868169f16ebe</id>
<content type='text'>
</content>
</entry>
<entry>
<title>More tests</title>
<updated>2022-12-27T17:56:57+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2022-12-07T03:50:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fa2f31b97178c3a66d6e5f91fa597711f585fd3b'/>
<id>urn:sha1:fa2f31b97178c3a66d6e5f91fa597711f585fd3b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Don't deduce a signature that makes a closure cyclic</title>
<updated>2022-12-27T17:56:56+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2022-12-06T23:55:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0817b1d3ed26898e7d9ed71f6a2218d912ea6de5'/>
<id>urn:sha1:0817b1d3ed26898e7d9ed71f6a2218d912ea6de5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #105523 - estebank:suggest-collect-vec, r=compiler-errors</title>
<updated>2022-12-14T09:31:07+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2022-12-14T09:31:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e5fde968dbbb87e5721ff5da91a49cab88b90b91'/>
<id>urn:sha1:e5fde968dbbb87e5721ff5da91a49cab88b90b91</id>
<content type='text'>
Suggest `collect`ing into `Vec&lt;_&gt;`

Fix #105510.
</content>
</entry>
<entry>
<title>Auto merge of #105667 - matthiaskrgr:rollup-fexlc0b, r=matthiaskrgr</title>
<updated>2022-12-13T22:05:28+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2022-12-13T22:05:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=21ee03e0621c70b894e1bfdd8c82ba5aeaabc812'/>
<id>urn:sha1:21ee03e0621c70b894e1bfdd8c82ba5aeaabc812</id>
<content type='text'>
Rollup of 7 pull requests

Successful merges:

 - #105147 (Allow unsafe through inline const)
 - #105438 (Move some codegen-y methods from `rustc_hir_analysis::collect` -&gt; `rustc_codegen_ssa`)
 - #105464 (Support #[track_caller] on async closures)
 - #105476 (Change pattern borrowing suggestions to be verbose and remove invalid suggestion)
 - #105500 (Make some diagnostics not depend on the source of what they reference being available)
 - #105628 (Small doc fixes)
 - #105659 (Don't require owned data in `MaybeStorageLive`)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
</content>
</entry>
<entry>
<title>review comments</title>
<updated>2022-12-13T19:36:43+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2022-12-13T19:36:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=165efabbee6e2ea997bdbd7aee67f92554a83f80'/>
<id>urn:sha1:165efabbee6e2ea997bdbd7aee67f92554a83f80</id>
<content type='text'>
</content>
</entry>
</feed>
