about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src/bounds.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-03-21 15:45:28 -0400
committerMichael Goulet <michael@errs.io>2024-03-22 11:16:56 -0400
commit4b87c0b9c98e6399d62550e3293dfe625841731f (patch)
treeec455dc0fc7b91e8b7c808a52c9fafaef92415e6 /compiler/rustc_hir_analysis/src/bounds.rs
parent1447f9d38ca388ca178a544534b3cff72945fa1e (diff)
downloadrust-4b87c0b9c98e6399d62550e3293dfe625841731f.tar.gz
rust-4b87c0b9c98e6399d62550e3293dfe625841731f.zip
Split out ImplPolarity and PredicatePolarity
Diffstat (limited to 'compiler/rustc_hir_analysis/src/bounds.rs')
-rw-r--r--compiler/rustc_hir_analysis/src/bounds.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_hir_analysis/src/bounds.rs b/compiler/rustc_hir_analysis/src/bounds.rs
index d659d2c5235..d5465bb5dd5 100644
--- a/compiler/rustc_hir_analysis/src/bounds.rs
+++ b/compiler/rustc_hir_analysis/src/bounds.rs
@@ -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