diff options
| author | León Orell Valerian Liehr <me@fmease.dev> | 2023-03-21 01:46:52 +0100 |
|---|---|---|
| committer | León Orell Valerian Liehr <me@fmease.dev> | 2023-05-04 16:59:10 +0200 |
| commit | 2bc479a2011107bf241856871d5f638586c95ad3 (patch) | |
| tree | f17063f13c57c5a4a7665b9b6dcad822df8ec509 | |
| parent | 8518391e72e46d0a7886f582145793332055ab90 (diff) | |
| download | rust-2bc479a2011107bf241856871d5f638586c95ad3.tar.gz rust-2bc479a2011107bf241856871d5f638586c95ad3.zip | |
IAT: Introduce AliasKind::Inherent
| -rw-r--r-- | clippy_lints/src/dereference.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clippy_lints/src/dereference.rs b/clippy_lints/src/dereference.rs index 7f3f26bed7c..b27ffe73ffd 100644 --- a/clippy_lints/src/dereference.rs +++ b/clippy_lints/src/dereference.rs @@ -1424,6 +1424,7 @@ fn ty_auto_deref_stability<'tcx>( continue; }, ty::Param(_) => TyPosition::new_deref_stable_for_result(precedence, ty), + ty::Alias(ty::Inherent, _) => unreachable!("inherent projection should have been normalized away above"), ty::Alias(ty::Projection, _) if ty.has_non_region_param() => { TyPosition::new_deref_stable_for_result(precedence, ty) }, |
