Skip to content

Commit 2bc479a

Browse files
committed
IAT: Introduce AliasKind::Inherent
1 parent 8518391 commit 2bc479a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_lints/src/dereference.rs

Lines changed: 1 addition & 0 deletions
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)