Add impl polarity to fields

This commit is contained in:
Deadbeef 2021-11-24 16:07:38 +08:00
parent b2005117bc
commit 4f29f3cef8
No known key found for this signature in database
GPG Key ID: 027DF9338862ADDD

View File

@ -947,6 +947,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
substs: self.tcx().mk_substs_trait(ty, &[]),
},
constness: ty::BoundConstness::ConstIfConst,
polarity: ty::ImplPolarity::Positive,
}));
let const_drop_stack = self.push_stack(obligation_stack.list(), &const_drop_obligation);