1
Fork 0

Use BikeshedGuaranteedNotDrop in unsafe binder type WF too

This commit is contained in:
Michael Goulet 2025-02-06 21:19:21 +00:00
parent 516afd557c
commit d0564fda65
4 changed files with 43 additions and 81 deletions

View file

@ -881,7 +881,10 @@ impl<'a, 'tcx> TypeVisitor<TyCtxt<'tcx>> for WfPredicates<'a, 'tcx> {
ty.map_bound(|ty| {
ty::TraitRef::new(
self.tcx(),
self.tcx().require_lang_item(LangItem::Copy, Some(self.span)),
self.tcx().require_lang_item(
LangItem::BikeshedGuaranteedNoDrop,
Some(self.span),
),
[ty],
)
}),