about summary refs log tree commit diff
path: root/compiler/rustc_query_impl/src
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2022-05-08 15:00:03 +0200
committerCamille GILLOT <gillot.camille@gmail.com>2022-11-29 18:36:53 +0000
commit7c45772bc996cac15c090cdeb13ac14f713486d0 (patch)
tree957b5988c9cc5a108a0dd6d2e638066ab8080fe2 /compiler/rustc_query_impl/src
parente0098a5cc3a87d857e597af824d0ce1ed1ad85e0 (diff)
downloadrust-7c45772bc996cac15c090cdeb13ac14f713486d0.tar.gz
rust-7c45772bc996cac15c090cdeb13ac14f713486d0.zip
Make verbose query description more useful.
Diffstat (limited to 'compiler/rustc_query_impl/src')
-rw-r--r--compiler/rustc_query_impl/src/plumbing.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_query_impl/src/plumbing.rs b/compiler/rustc_query_impl/src/plumbing.rs
index 99edaa04162..e69f6aa3a93 100644
--- a/compiler/rustc_query_impl/src/plumbing.rs
+++ b/compiler/rustc_query_impl/src/plumbing.rs
@@ -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.