about summary refs log tree commit diff
path: root/src/librustdoc/json
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <liehr.exchange@gmx.net>2022-10-04 14:08:25 +0200
committerLeón Orell Valerian Liehr <liehr.exchange@gmx.net>2022-10-05 23:14:15 +0200
commit73c239e5eb0b3197ee6d0faeaf85a8eaccb8a491 (patch)
treeb00473157aaff5ba71ff469c49fbeee73b88ef92 /src/librustdoc/json
parentf1112099eba41abadb6f921df7edba70affe92c5 (diff)
rustdoc: render more cross-crate hrtbs properly
Diffstat (limited to 'src/librustdoc/json')
-rw-r--r--src/librustdoc/json/conversions.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/librustdoc/json/conversions.rs b/src/librustdoc/json/conversions.rs
index 4170412caef..cdf59cdd328 100644
--- a/src/librustdoc/json/conversions.rs
+++ b/src/librustdoc/json/conversions.rs
@@ -432,8 +432,9 @@ impl FromWithTcx<clean::WherePredicate> for WherePredicate {
                 lifetime: convert_lifetime(lifetime),
                 bounds: bounds.into_tcx(tcx),
             },
-            EqPredicate { lhs, rhs } => {
-                WherePredicate::EqPredicate { lhs: lhs.into_tcx(tcx), rhs: rhs.into_tcx(tcx) }
+            // FIXME(fmease): Convert bound parameters as well.
+            EqPredicate { lhs, rhs, bound_params: _ } => {
+                WherePredicate::EqPredicate { lhs: (*lhs).into_tcx(tcx), rhs: (*rhs).into_tcx(tcx) }
             }
         }
     }