Skip to content

Commit 34655df

Browse files
Rollup merge of rust-lang#109410 - fmease:iat-alias-kind-inherent, r=compiler-errors
Introduce `AliasKind::Inherent` for inherent associated types Allows us to check (possibly generic) inherent associated types for well-formedness. Type inference now also works properly. Follow-up to rust-lang#105961. Supersedes rust-lang#108430. Fixes rust-lang#106722. Fixes rust-lang#108957. Fixes rust-lang#109768. Fixes rust-lang#109789. Fixes rust-lang#109790. ~Not to be merged before rust-lang#108860 (`AliasKind::Weak`).~ CC `@jackh726` r? `@compiler-errors` `@rustbot` label T-types F-inherent_associated_types
2 parents 3fc1155 + 2bc479a commit 34655df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_lints/src/dereference.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1424,6 +1424,7 @@ fn ty_auto_deref_stability<'tcx>(
14241424
continue;
14251425
},
14261426
ty::Param(_) => TyPosition::new_deref_stable_for_result(precedence, ty),
1427+
ty::Alias(ty::Inherent, _) => unreachable!("inherent projection should have been normalized away above"),
14271428
ty::Alias(ty::Projection, _) if ty.has_non_region_param() => {
14281429
TyPosition::new_deref_stable_for_result(precedence, ty)
14291430
},

0 commit comments

Comments
 (0)