Make verbose query description more useful.
This commit is contained in:
parent
e0098a5cc3
commit
7c45772bc9
@ -309,7 +309,7 @@ pub(crate) fn create_query_frame<
|
||||
ty::print::with_forced_impl_filename_line!(do_describe(tcx.tcx, key))
|
||||
);
|
||||
let description =
|
||||
if tcx.sess.verbose() { format!("{} [{}]", description, name) } else { description };
|
||||
if tcx.sess.verbose() { format!("{} [{:?}]", description, name) } else { description };
|
||||
let span = if kind == dep_graph::DepKind::def_span {
|
||||
// The `def_span` query is used to calculate `default_span`,
|
||||
// so exit to avoid infinite recursion.
|
||||
|
Loading…
Reference in New Issue
Block a user