1
Fork 0

Revert def_id addition from clean::Function, add test for

scrape-examples options
This commit is contained in:
Will Crichton 2021-10-22 12:46:45 -07:00
parent 8f80d86d85
commit d1c29c696e
12 changed files with 25 additions and 20 deletions

View file

@ -597,11 +597,10 @@ fn document_full_inner(
clean::ItemKind::StrippedItem(box kind) | kind => kind,
};
match kind {
clean::ItemKind::FunctionItem(f) | clean::ItemKind::MethodItem(f, _) => {
render_call_locations(w, cx, f.def_id, item);
if let clean::ItemKind::FunctionItem(..) | clean::ItemKind::MethodItem(..) = kind {
if let Some(def_id) = item.def_id.as_def_id() {
render_call_locations(w, cx, def_id, item);
}
_ => {}
}
}