Skip to content

Commit

Permalink
Fix debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jyn514 committed Jun 26, 2020
1 parent 20552c8 commit 6742382
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/librustdoc/passes/collect_intra_doc_links.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ impl<'a, 'tcx> LinkCollector<'a, 'tcx> {
let result = cx.enter_resolver(|resolver| {
resolver.resolve_str_path_error(DUMMY_SP, &path_str, ns, module_id)
});
debug!("{} resolved to {:?} in namespace {:?}", path_str, ns, result);
debug!("{} resolved to {:?} in namespace {:?}", path_str, result, ns);
let result = match result {
Ok((_, Res::Err)) => Err(ErrorKind::ResolutionFailure),
_ => result.map_err(|_| ErrorKind::ResolutionFailure),
Expand Down Expand Up @@ -208,7 +208,6 @@ impl<'a, 'tcx> LinkCollector<'a, 'tcx> {
"failed to resolve {} in namespace {:?} (got {:?})",
path_str, ns, other
);
debug!("extra_fragment is {:?}", extra_fragment);
return Ok((res, extra_fragment.clone()));
}
};
Expand Down Expand Up @@ -768,7 +767,7 @@ impl<'a, 'tcx> DocFolder for LinkCollector<'a, 'tcx> {
if let Res::PrimTy(_) = res {
item.attrs.links.push((ori_link, None, fragment));
} else {
debug!("linked item {} resolved to {:?}", path_str, res);
debug!("intra-doc link to {} resolved to {:?}", path_str, res);
if let Some(local) = res.opt_def_id().and_then(|def_id| def_id.as_local()) {
use rustc_hir::def_id::LOCAL_CRATE;

Expand Down

0 comments on commit 6742382

Please sign in to comment.