Skip to content

Commit eac84d7

Browse files
committed
Avoid queries in printing if requested
1 parent 6db96de commit eac84d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_middle/src/ty/print/pretty.rs

+1
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,7 @@ pub trait PrettyPrinter<'tcx>: Printer<'tcx> + fmt::Write {
371371
&& self.tcx().sess.opts.trimmed_def_paths
372372
&& !with_no_trimmed_paths()
373373
&& !with_crate_prefix()
374+
&& !with_no_queries()
374375
&& let Some(symbol) = self.tcx().trimmed_def_paths(()).get(&def_id)
375376
{
376377
write!(self, "{}", Ident::with_dummy_span(*symbol))?;

0 commit comments

Comments
 (0)