"));
for meth in i.methods.iter() {
- if try!(docmeth(w, meth)) {
- continue
- }
-
- // No documentation? Attempt to slurp in the trait's documentation
- let trait_id = match trait_id {
- None => continue,
- Some(id) => id,
- };
- try!(local_data::get(cache_key, |cache| {
- let cache = cache.unwrap();
- match cache.traits.find(&trait_id) {
- Some(t) => {
- let name = meth.name.clone();
- match t.methods.iter().find(|t| t.item().name == name) {
- Some(method) => {
- match method.item().doc_value() {
- Some(s) => {
- try!(write!(w,
- "
{}
",
- Markdown(s)));
- }
- None => {}
- }
- }
- None => {}
- }
- }
- None => {}
- }
- Ok(())
- }))
+ try!(docmeth(w, meth, true));
}
// If we've implemented a trait, then also emit documentation for all
@@ -1685,7 +1655,7 @@ fn render_impl(w: &mut Writer, i: &clean::Impl,
None => {}
}
- try!(docmeth(w, method.item()));
+ try!(docmeth(w, method.item(), false));
}
}
None => {}