rust/compiler
Jubilee 5858329f1a
Rollup merge of #128965 - Zalathar:no-pat, r=Nadrieril
Remove `print::Pat` from the printing of `WitnessPat`

After the preliminary work done in #128536, we can now get rid of `print::Pat` entirely.

- First, we introduce a variant `PatKind::Print(String)`.
- Then we incrementally remove each other variant of `PatKind`, by having the relevant code produce `PatKind::Print` instead.
- Once `PatKind::Print` is the only remaining variant, it becomes easy to remove `print::Pat` and replace it with `String`.

There is more cleanup that I have in mind, but this seemed like a natural stopping point for one PR.

r? ```@Nadrieril```
2024-08-15 18:44:16 -07:00
..
rustc
rustc_abi
rustc_arena
rustc_ast
rustc_ast_ir
rustc_ast_lowering stabilize asm_const 2024-08-13 23:18:31 +02:00
rustc_ast_passes
rustc_ast_pretty
rustc_attr Rollup merge of #128886 - GrigorenkoPV:untranslatable-diagnostic, r=nnethercote 2024-08-12 17:09:17 +02:00
rustc_baked_icu_data
rustc_borrowck Rollup merge of #129059 - compiler-errors:subtyping-correct-type, r=lcnr 2024-08-14 21:43:08 +08:00
rustc_builtin_macros Use impl PartialEq<TokenKind> for Token more. 2024-08-14 16:37:09 +10:00
rustc_codegen_cranelift Auto merge of #128812 - nnethercote:shrink-TyKind-FnPtr, r=compiler-errors 2024-08-14 00:56:53 +00:00
rustc_codegen_gcc Rollup merge of #128570 - folkertdev:stabilize-asm-const, r=Amanieu 2024-08-14 21:43:07 +08:00
rustc_codegen_llvm Auto merge of #128936 - bjorn3:fix_thin_archive_reading, r=jieyouxu 2024-08-15 14:13:52 +00:00
rustc_codegen_ssa Auto merge of #128936 - bjorn3:fix_thin_archive_reading, r=jieyouxu 2024-08-15 14:13:52 +00:00
rustc_const_eval Auto merge of #128812 - nnethercote:shrink-TyKind-FnPtr, r=compiler-errors 2024-08-14 00:56:53 +00:00
rustc_data_structures Update indexmap and use IndexMap::append 2024-08-13 16:16:57 -07:00
rustc_driver
rustc_driver_impl
rustc_error_codes
rustc_error_messages
rustc_errors Add | to make the html doc of Level rendered correctly 2024-08-14 13:38:03 +08:00
rustc_expand Use impl PartialEq<TokenKind> for Token more. 2024-08-14 16:37:09 +10:00
rustc_feature Rollup merge of #128925 - dingxiangfei2009:smart-ptr-helper-attr, r=compiler-errors 2024-08-15 00:02:25 +02:00
rustc_fluent_macro
rustc_fs_util
rustc_graphviz
rustc_hir
rustc_hir_analysis Auto merge of #128812 - nnethercote:shrink-TyKind-FnPtr, r=compiler-errors 2024-08-14 00:56:53 +00:00
rustc_hir_pretty
rustc_hir_typeck Rollup merge of #129072 - compiler-errors:more-powerful-async-closure-inference, r=lcnr 2024-08-15 19:32:36 +02:00
rustc_incremental
rustc_index Add and use IndexVec::append 2024-08-13 13:40:05 -07:00
rustc_index_macros
rustc_infer Auto merge of #128812 - nnethercote:shrink-TyKind-FnPtr, r=compiler-errors 2024-08-14 00:56:53 +00:00
rustc_interface
rustc_lexer
rustc_lint Rollup merge of #129065 - nnethercote:PartialEq-TokenKind, r=spastorino 2024-08-15 19:32:35 +02:00
rustc_lint_defs
rustc_llvm Auto merge of #128936 - bjorn3:fix_thin_archive_reading, r=jieyouxu 2024-08-15 14:13:52 +00:00
rustc_log
rustc_macros
rustc_metadata Rollup merge of #128886 - GrigorenkoPV:untranslatable-diagnostic, r=nnethercote 2024-08-12 17:09:17 +02:00
rustc_middle Rollup merge of #129106 - compiler-errors:unused-type-ops, r=jieyouxu 2024-08-15 19:32:37 +02:00
rustc_mir_build Auto merge of #129060 - matthiaskrgr:rollup-s72gpif, r=matthiaskrgr 2024-08-14 06:43:26 +00:00
rustc_mir_dataflow Auto merge of #128812 - nnethercote:shrink-TyKind-FnPtr, r=compiler-errors 2024-08-14 00:56:53 +00:00
rustc_mir_transform Rollup merge of #129101 - compiler-errors:deref-on-parent-by-ref, r=lcnr 2024-08-15 19:32:37 +02:00
rustc_monomorphize Rollup merge of #129067 - cuviper:append, r=wesleywiser 2024-08-15 00:02:27 +02:00
rustc_next_trait_solver Rollup merge of #128828 - lcnr:search-graph-11, r=compiler-errors 2024-08-14 21:43:07 +08:00
rustc_parse Use impl PartialEq<TokenKind> for Token more. 2024-08-14 16:37:09 +10:00
rustc_parse_format
rustc_passes Auto merge of #128812 - nnethercote:shrink-TyKind-FnPtr, r=compiler-errors 2024-08-14 00:56:53 +00:00
rustc_pattern_analysis Rollup merge of #128965 - Zalathar:no-pat, r=Nadrieril 2024-08-15 18:44:16 -07:00
rustc_privacy
rustc_query_impl
rustc_query_system
rustc_resolve
rustc_sanitizers
rustc_serialize
rustc_session Rollup merge of #128348 - dingxiangfei2009:allow-shadow-call-stack-sanitizer, r=tmandry 2024-08-15 19:32:35 +02:00
rustc_smir
rustc_span #[deprecated_safe_2024]: Also use the // TODO: hint in the compiler error 2024-08-13 11:32:47 +02:00
rustc_symbol_mangling
rustc_target Rollup merge of #127905 - BKPepe:powerpc-muslspe, r=wesleywiser 2024-08-15 00:02:24 +02:00
rustc_trait_selection Rollup merge of #129106 - compiler-errors:unused-type-ops, r=jieyouxu 2024-08-15 19:32:37 +02:00
rustc_traits Remove redundant type ops 2024-08-14 14:18:17 -04:00
rustc_transmute
rustc_ty_utils Auto merge of #129076 - matthiaskrgr:rollup-rg8mi2x, r=matthiaskrgr 2024-08-14 04:17:13 +00:00
rustc_type_ir Rollup merge of #128828 - lcnr:search-graph-11, r=compiler-errors 2024-08-14 21:43:07 +08:00
rustc_type_ir_macros
stable_mir