Split out ImplPolarity and PredicatePolarity
This commit is contained in:
parent
1447f9d38c
commit
4b87c0b9c9
30 changed files with 169 additions and 95 deletions
|
@ -42,7 +42,7 @@ impl<'tcx> Bounds<'tcx> {
|
|||
tcx: TyCtxt<'tcx>,
|
||||
trait_ref: ty::PolyTraitRef<'tcx>,
|
||||
span: Span,
|
||||
polarity: ty::ImplPolarity,
|
||||
polarity: ty::PredicatePolarity,
|
||||
) {
|
||||
self.push_trait_bound_inner(tcx, trait_ref, span, polarity);
|
||||
}
|
||||
|
@ -52,7 +52,7 @@ impl<'tcx> Bounds<'tcx> {
|
|||
tcx: TyCtxt<'tcx>,
|
||||
trait_ref: ty::PolyTraitRef<'tcx>,
|
||||
span: Span,
|
||||
polarity: ty::ImplPolarity,
|
||||
polarity: ty::PredicatePolarity,
|
||||
) {
|
||||
self.clauses.push((
|
||||
trait_ref
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue