Skip to content

Commit

Permalink
Rollup merge of rust-lang#78219 - JohnTitor:print-def-path, r=estebank
Browse files Browse the repository at this point in the history
Prefer to use `print_def_path`

Follow-up of rust-lang#71310 (comment)
  • Loading branch information
JohnTitor authored Oct 26, 2020
2 parents 2c307fa + 6fdd53b commit f3c9437
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_middle/src/ty/print/pretty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ pub trait PrettyPrinter<'tcx>:
let span = self.tcx().hir().span(hir_id);
p!(write("@{}", self.tcx().sess.source_map().span_to_string(span)));
} else {
p!(write("@{}", self.tcx().def_path_str(did)));
p!(write("@"), print_def_path(did, substs));
}
} else {
p!(print_def_path(did, substs));
Expand Down Expand Up @@ -694,7 +694,7 @@ pub trait PrettyPrinter<'tcx>:
p!(write("@{}", self.tcx().sess.source_map().span_to_string(span)));
}
} else {
p!(write("@{}", self.tcx().def_path_str(did)));
p!(write("@"), print_def_path(did, substs));
}
} else {
p!(print_def_path(did, substs));
Expand Down

0 comments on commit f3c9437

Please sign in to comment.