about summary refs log tree commit diff
path: root/src/librustdoc/clean
diff options
context:
space:
mode:
authorBryanskiy <ivakin.kir@gmail.com>2024-02-23 16:39:57 +0300
committerBryanskiy <ivakin.kir@gmail.com>2024-07-25 20:53:33 +0300
commit2a73553513f393ab00e2da217ff0082403f1985b (patch)
tree7fb5601e4fe8c40a81711b5d146e68da5c6aa184 /src/librustdoc/clean
parent28e684b47000d4ed4cdb5d982331e5ff8141c1ce (diff)
downloadrust-2a73553513f393ab00e2da217ff0082403f1985b.tar.gz
rust-2a73553513f393ab00e2da217ff0082403f1985b.zip
Support ?Trait bounds in supertraits and dyn Trait under a feature gate
Diffstat (limited to 'src/librustdoc/clean')
-rw-r--r--src/librustdoc/clean/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs
index 2cd9b6fcd38..26011926cdd 100644
--- a/src/librustdoc/clean/mod.rs
+++ b/src/librustdoc/clean/mod.rs
@@ -1858,7 +1858,7 @@ pub(crate) fn clean_ty<'tcx>(ty: &hir::Ty<'tcx>, cx: &mut DocContext<'tcx>) -> T
         }
         TyKind::Path(_) => clean_qpath(ty, cx),
         TyKind::TraitObject(bounds, ref lifetime, _) => {
-            let bounds = bounds.iter().map(|bound| clean_poly_trait_ref(bound, cx)).collect();
+            let bounds = bounds.iter().map(|(bound, _)| clean_poly_trait_ref(bound, cx)).collect();
             let lifetime =
                 if !lifetime.is_elided() { Some(clean_lifetime(*lifetime, cx)) } else { None };
             DynTrait(bounds, lifetime)