]> git.lizzy.rs Git - rust.git/commitdiff
rustdoc: Include lifetimes in re-exported bounds
authorTom Jakubowski <tom@crystae.net>
Mon, 6 Oct 2014 13:11:21 +0000 (06:11 -0700)
committerTom Jakubowski <tom@crystae.net>
Mon, 6 Oct 2014 13:11:21 +0000 (06:11 -0700)
Fix #17818

src/librustdoc/clean/mod.rs

index 0175c95d7cb1fd553046779baade83121fb34f89..8eab436a3543a0114288c3993d0d98075fc2ef70 100644 (file)
@@ -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 @@ fn clean(&self, cx: &DocContext) -> Vec<TyParamBound> {
         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;
     }
 }