diff options
| author | bors <bors@rust-lang.org> | 2021-09-24 05:29:49 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-09-24 05:29:49 +0000 |
| commit | 197fc8591e6b02ac1f359ee0a72616eb4a6d4f4c (patch) | |
| tree | 9383550a3c9d19bc0eed9347c6ffe526917ca5d1 /compiler/rustc_query_impl | |
| parent | 293b8f2c11cbec03f0d4daae6b82ed7541ebbf4e (diff) | |
| parent | 9da27f04293853b42080c7ab20e84c1da11ec5d8 (diff) | |
| download | rust-197fc8591e6b02ac1f359ee0a72616eb4a6d4f4c.tar.gz rust-197fc8591e6b02ac1f359ee0a72616eb4a6d4f4c.zip | |
Auto merge of #89120 - In-line:remove_unneded_visible_parents_map, r=estebank
Disable visible path calculation for PrettyPrinter in Ok path of compiler
Diffstat (limited to 'compiler/rustc_query_impl')
| -rw-r--r-- | compiler/rustc_query_impl/src/plumbing.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/compiler/rustc_query_impl/src/plumbing.rs b/compiler/rustc_query_impl/src/plumbing.rs index 90a6ba474b4..bb686b5ef3f 100644 --- a/compiler/rustc_query_impl/src/plumbing.rs +++ b/compiler/rustc_query_impl/src/plumbing.rs @@ -321,10 +321,13 @@ macro_rules! define_queries { pub fn $name<$tcx>(tcx: QueryCtxt<$tcx>, key: query_keys::$name<$tcx>) -> QueryStackFrame { let kind = dep_graph::DepKind::$name; let name = stringify!($name); - let description = ty::print::with_forced_impl_filename_line( + // Disable visible paths printing for performance reasons. + // Showing visible path instead of any path is not that important in production. + let description = ty::print::with_no_visible_paths( + || ty::print::with_forced_impl_filename_line( // Force filename-line mode to avoid invoking `type_of` query. || queries::$name::describe(tcx, key) - ); + )); let description = if tcx.sess.verbose() { format!("{} [{}]", description, name) } else { |
