diff options
| author | bors <bors@rust-lang.org> | 2022-09-11 13:49:52 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-09-11 13:49:52 +0000 |
| commit | 17a627fe876ded260d5563751d8d1530275e1c55 (patch) | |
| tree | 4090e2f9531926312f3b48e3098e989dd20610ff /src/bootstrap/native.rs | |
| parent | 6f0c4a6c5c36f1f8f433a12e10a29918f3d40a31 (diff) | |
| parent | 1335da9d485879a99c3ba24827781c6ee6705cc6 (diff) | |
| download | rust-17a627fe876ded260d5563751d8d1530275e1c55.tar.gz rust-17a627fe876ded260d5563751d8d1530275e1c55.zip | |
Auto merge of #101682 - compiler-errors:rpitit-encode, r=fee1-dead
Only encode return-position `impl Trait` in trait when parent function has a default body
Semi-blocked on #101679, because I can't currently write a test for when we _should_ encode the type of the return-position `impl Trait` in trait, which is when a trait has a default function body, like so:
```rust
trait Foo {
fn bar() -> impl Sized { }
}
```
Though this can land even without #101679, since it does prevent ICEs from occuring any time you use `#![feature(return_position_impl_trait_in_trait)]` in a library, which is kind annoying.
Diffstat (limited to 'src/bootstrap/native.rs')
0 files changed, 0 insertions, 0 deletions
