Use BikeshedGuaranteedNotDrop in unsafe binder type WF too
This commit is contained in:
parent
516afd557c
commit
d0564fda65
4 changed files with 43 additions and 81 deletions
|
@ -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],
|
||||
)
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue