about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTom Jakubowski <tom@crystae.net>2014-10-06 06:11:21 -0700
committerTom Jakubowski <tom@crystae.net>2014-10-06 06:11:21 -0700
commit7a6eaea720a7e878f52c03b3298e782e50f1a074 (patch)
tree198e487ba62684d912e0821faf9ce72da1525a71
parent3bd44752788b7f27b8fbe4a9f436d65ff9dd9de2 (diff)
rustdoc: Include lifetimes in re-exported bounds
Fix #17818
-rw-r--r--src/librustdoc/clean/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs
index 0175c95d7cb..8eab436a354 100644
--- a/src/librustdoc/clean/mod.rs
+++ b/src/librustdoc/clean/mod.rs
@@ -462,6 +462,7 @@ impl Clean<TyParam> for ty::TypeParameterDef {
     fn clean(&self, cx: &DocContext) -> TyParam {
         cx.external_typarams.borrow_mut().as_mut().unwrap()
           .insert(self.def_id, self.ident.clean(cx));
+
         TyParam {
             name: self.ident.clean(cx),
             did: self.def_id,
@@ -581,6 +582,9 @@ impl Clean<Vec<TyParamBound>> for ty::ParamBounds {
         for t in self.trait_bounds.iter() {
             v.push(t.clean(cx));
         }
+        for r in self.region_bounds.iter().filter_map(|r| r.clean(cx)) {
+            v.push(RegionBound(r));
+        }
         return v;
     }
 }