about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-09-12 15:21:33 +0530
committerGitHub <noreply@github.com>2022-09-12 15:21:33 +0530
commit5faf033f62512cbc2a0deaac7860950e38a60a45 (patch)
tree8698ffce641d7f3e973df7300b7361fde9aca434 /compiler/rustc_codegen_llvm/src
parent10af4fb5301a69cc9db46684290f3f77a4b65269 (diff)
parentfd2766e7fde443d46eb051bb5ef27bbb29ee101d (diff)
downloadrust-5faf033f62512cbc2a0deaac7860950e38a60a45.tar.gz
rust-5faf033f62512cbc2a0deaac7860950e38a60a45.zip
Rollup merge of #101676 - compiler-errors:rpitit-wf, r=lcnr
Check that the types in return position `impl Trait` in traits are well-formed

This effectively duplicates `check_associated_type_bounds`, but that shouldn't be for long, since we're going to remove it once we refactor RPITITs into regular associated items.

Fixes #101663

---

We don't check

```rust
trait Foo {
  fn bar() -> impl ?Sized;
}
```

currently, but that's for a different reason, which is that we don't currently check that a trait function's return type is sized (i.e. `fn bar() -> [u8]` also works in a trait).
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions