rust/compiler/rustc_middle/src
Michael Howell e6ffd96e41
Rollup merge of #103764 - SarthakSingh31:issue-94187-2, r=compiler-errors
All verbosity checks in `PrettyPrinter` now go through `PrettyPrinter::should_print_verbose`

Follow-up to #103428. That pr only partially fixed #94187. In some cases (like closures) `std::any::type_name` was still producing a different output when `-Zverbose` was enabled.

This pr fixes those cases and adds a new function `PrettyPrinter::should_print_verbose`. This function should always be used over `self.tcx().sess.verbose()` inside a `impl PrettyPrinter`.

Maybe closes #94187 now.

r? ``@compiler-errors``
2022-10-30 19:31:40 -07:00
..
dep_graph Allow query system to recover a HirId. 2022-10-01 15:58:42 +02:00
hir Rename some OwnerId fields. 2022-10-29 20:28:38 +11:00
infer Revert "Make ClosureOutlivesRequirement not rely on an unresolved type" 2022-10-27 16:15:11 +00:00
middle rustc_middle: Remove unnecessary type parameter from AccessLevels 2022-10-29 23:36:56 +04:00
mir Rename some OwnerId fields. 2022-10-29 20:28:38 +11:00
query Auto merge of #102698 - michaelwoerister:unord-collections, r=lncr 2022-10-29 06:20:48 +00:00
thir Use boxed slices in PatKind. 2022-09-02 07:26:22 +10:00
traits Revert "Make ClosureOutlivesRequirement not rely on an unresolved type" 2022-10-27 16:15:11 +00:00
ty All verbosity checks in PrettyPrinter now go through PrettyPrinter::should_print_verbose 2022-10-30 20:37:43 +05:30
util span: move MultiSpan 2022-04-05 07:01:00 +01:00
arena.rs Auto merge of #102698 - michaelwoerister:unord-collections, r=lncr 2022-10-29 06:20:48 +00:00
error.rs Migrate all diagnostics 2022-10-23 10:09:44 +02:00
lib.rs const_evaluatable_unchecked to const eval 2022-10-18 16:31:56 +02:00
lint.rs fix typo 2022-10-16 16:47:55 +02:00
macros.rs add inline to TrivialTypeTraversalImpls 2022-10-17 10:54:03 +02:00
metadata.rs rustc: Parameterize ty::Visibility over used ID 2022-09-07 13:35:41 +04:00
tests.rs
thir.rs Use tidy-alphabetical in the compiler 2022-10-12 17:49:10 +05:30
values.rs Check representability in adt_sized_constraint 2022-10-10 14:36:12 -05:00