mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Rollup merge of #78219 - JohnTitor:print-def-path, r=estebank
Prefer to use `print_def_path` Follow-up of https://github.com/rust-lang/rust/pull/71310#discussion_r415438577
This commit is contained in:
commit
f3c94374b9
@ -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));
|
||||
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user