Remove weak alias terminology
This commit is contained in:
parent
7f695232a8
commit
bdfeb8f36b
47 changed files with 106 additions and 106 deletions
|
|
@ -853,7 +853,7 @@ impl TyCoercionStability {
|
|||
continue;
|
||||
},
|
||||
ty::Param(_) if for_return => Self::Deref,
|
||||
ty::Alias(ty::Weak | ty::Inherent, _) => unreachable!("should have been normalized away above"),
|
||||
ty::Alias(ty::Free | ty::Inherent, _) => unreachable!("should have been normalized away above"),
|
||||
ty::Alias(ty::Projection, _) if !for_return && ty.has_non_region_param() => Self::Reborrow,
|
||||
ty::Infer(_)
|
||||
| ty::Error(_)
|
||||
|
|
|
|||
|
|
@ -197,7 +197,7 @@ fn fn_inputs_has_impl_trait_ty(cx: &LateContext<'_>, def_id: LocalDefId) -> bool
|
|||
inputs.iter().any(|input| {
|
||||
matches!(
|
||||
input.kind(),
|
||||
ty::Alias(ty::AliasTyKind::Weak, alias_ty) if cx.tcx.type_of(alias_ty.def_id).skip_binder().is_impl_trait()
|
||||
ty::Alias(ty::AliasTyKind::Free, alias_ty) if cx.tcx.type_of(alias_ty.def_id).skip_binder().is_impl_trait()
|
||||
)
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue