return Some(i);
}
clean::ImplItem(ref impl_) => {
- let filename = i.source.filename(self.ctx.sess());
+ let filename = i.span.filename(self.ctx.sess());
if let Some(ref tr) = impl_.trait_ {
debug!(
"impl {:#} for {:#} in {}",
- tr.print(&self.ctx.cache),
- impl_.for_.print(&self.ctx.cache),
+ tr.print(&self.ctx.cache, self.ctx.tcx),
+ impl_.for_.print(&self.ctx.cache, self.ctx.tcx),
filename,
);
// inherent impls *can* be documented, and those docs show up, but in most
// cases it doesn't make sense, as all methods on a type are in one single
// impl block
- debug!("impl {:#} in {}", impl_.for_.print(&self.ctx.cache), filename);
+ debug!(
+ "impl {:#} in {}",
+ impl_.for_.print(&self.ctx.cache, self.ctx.tcx),
+ filename
+ );
}
}
_ => {
None,
);
- let filename = i.source.filename(self.ctx.sess());
+ let filename = i.span.filename(self.ctx.sess());
let has_doc_example = tests.found_tests != 0;
let hir_id = self.ctx.tcx.hir().local_def_id_to_hir_id(i.def_id.expect_local());
let (level, source) = self.ctx.tcx.lint_level_at_node(MISSING_DOCS, hir_id);