Skip to content

Commit 6ee75c4

Browse files
committed
Remove weak alias terminology
1 parent dd5948c commit 6ee75c4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/dereference.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ impl TyCoercionStability {
853853
continue;
854854
},
855855
ty::Param(_) if for_return => Self::Deref,
856-
ty::Alias(ty::Weak | ty::Inherent, _) => unreachable!("should have been normalized away above"),
856+
ty::Alias(ty::Free | ty::Inherent, _) => unreachable!("should have been normalized away above"),
857857
ty::Alias(ty::Projection, _) if !for_return && ty.has_non_region_param() => Self::Reborrow,
858858
ty::Infer(_)
859859
| ty::Error(_)

clippy_lints/src/missing_const_for_fn.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ fn fn_inputs_has_impl_trait_ty(cx: &LateContext<'_>, def_id: LocalDefId) -> bool
197197
inputs.iter().any(|input| {
198198
matches!(
199199
input.kind(),
200-
ty::Alias(ty::AliasTyKind::Weak, alias_ty) if cx.tcx.type_of(alias_ty.def_id).skip_binder().is_impl_trait()
200+
ty::Alias(ty::AliasTyKind::Free, alias_ty) if cx.tcx.type_of(alias_ty.def_id).skip_binder().is_impl_trait()
201201
)
202202
})
203203
}

0 commit comments

Comments
 (0)