about summary refs log tree commit diff
path: root/compiler/rustc_parse/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-02-25 22:20:37 +0000
committerbors <bors@rust-lang.org>2024-02-25 22:20:37 +0000
commitaa2c94e416d346341fe3a875160a7d064596f4d3 (patch)
tree5c0315e6f4e0d62467af73fba303e18b54c5c090 /compiler/rustc_parse/src
parent7353bd0341443769986b1b8c9167ace68ecdec8a (diff)
parentbbfe1c1ec3bcaaa51446f89e66641561751f38f8 (diff)
downloadrust-aa2c94e416d346341fe3a875160a7d064596f4d3.tar.gz
rust-aa2c94e416d346341fe3a875160a7d064596f4d3.zip
Auto merge of #12308 - y21:more_implied_bounds, r=xFrednet
Look for `implied_bounds_in_impls` in more positions

With this, we lint `impl Trait` implied bounds in more positions:
- Type alias impl trait
- Associated type position impl trait
- Argument position impl trait
  - these are not opaque types, but instead are desugared to `where` clauses, so we need extra logic for finding them (`check_generics`), however the rest of the logic is the same

Before this, we'd only lint RPIT `impl Trait`s.
"Hide whitespaces" and reviewing commits individually might make this easier

changelog: [`implied_bounds_in_impls`]: start linting implied bounds in APIT, ATPIT, TAIT
Diffstat (limited to 'compiler/rustc_parse/src')
0 files changed, 0 insertions, 0 deletions