about summary refs log tree commit diff
path: root/src/bootstrap/native.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-09-11 13:49:52 +0000
committerbors <bors@rust-lang.org>2022-09-11 13:49:52 +0000
commit17a627fe876ded260d5563751d8d1530275e1c55 (patch)
tree4090e2f9531926312f3b48e3098e989dd20610ff /src/bootstrap/native.rs
parent6f0c4a6c5c36f1f8f433a12e10a29918f3d40a31 (diff)
parent1335da9d485879a99c3ba24827781c6ee6705cc6 (diff)
downloadrust-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