rust/compiler
Matthias Krüger 771cfa5581
Rollup merge of #104543 - JhonnyBillM:migrate-codegen-ssa-to-diagnostics-structs-pt3, r=davidtwco
Migrate `codegen_ssa` to diagnostics structs - [Part 3]

Completes migrating `codegen_ssa` module except 2 outstanding errors that depend on other crates:
1. [`rustc_middle::mir::interpret::InterpError`](b6097f2e1b/compiler/rustc_middle/src/mir/interpret/error.rs (L475)): I saw `rustc_middle` is unassigned, I am open to take this work.

2.  `codegen_llvm`'s use of `fn span_invalid_monomorphization_error`, which I started to replace in the [last commit](9a31b3cdda) of this PR, but would like to know the team's preference on how we should keep replacing the other macros:
2.1. Update macros to expect a `Diagnostic`
2.2. Remove macros and expand the code on each use.
See [some examples of the different options in this experimental commit](64aee83e80)

_Part 2 - https://github.com/rust-lang/rust/pull/103792_

r? ``@davidtwco``
Cc ``@compiler-errors``
2023-01-07 20:43:19 +01:00
..
rustc
rustc_abi Auto merge of #105446 - erikdesjardins:vt-size, r=nikic 2022-12-18 22:01:39 +00:00
rustc_apfloat compiler: remove unnecessary imports and qualified paths 2022-12-10 18:45:34 +01:00
rustc_arena compiler: remove unnecessary imports and qualified paths 2022-12-10 18:45:34 +01:00
rustc_ast Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_ast_lowering Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_ast_passes Allow impl ~const Trait opaque types 2022-12-15 11:26:15 +00:00
rustc_ast_pretty Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_attr Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_baked_icu_data
rustc_borrowck Suggests adding named lifetime when the return contains value borrowed from more than one lifetimes of the function's inputs 2023-01-05 21:09:27 -08:00
rustc_builtin_macros Update format.rs 2023-01-02 15:51:54 +05:30
rustc_codegen_cranelift Auto merge of #105613 - Nilstrieb:rename-assert_uninit_valid, r=RalfJung 2022-12-21 23:20:04 +00:00
rustc_codegen_gcc Simplify some iterator combinators 2023-01-04 00:48:07 +00:00
rustc_codegen_llvm Rollup merge of #104543 - JhonnyBillM:migrate-codegen-ssa-to-diagnostics-structs-pt3, r=davidtwco 2023-01-07 20:43:19 +01:00
rustc_codegen_ssa Rollup merge of #104543 - JhonnyBillM:migrate-codegen-ssa-to-diagnostics-structs-pt3, r=davidtwco 2023-01-07 20:43:19 +01:00
rustc_const_eval rename find_parent_node to opt_parent_id 2023-01-04 00:43:13 +00:00
rustc_data_structures Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_driver Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_error_codes Rollup merge of #106554 - LingMan:explanation_typo, r=compiler-errors 2023-01-06 21:54:01 -08:00
rustc_error_messages Rollup merge of #104543 - JhonnyBillM:migrate-codegen-ssa-to-diagnostics-structs-pt3, r=davidtwco 2023-01-07 20:43:19 +01:00
rustc_errors Rollup merge of #104543 - JhonnyBillM:migrate-codegen-ssa-to-diagnostics-structs-pt3, r=davidtwco 2023-01-07 20:43:19 +01:00
rustc_expand Shrink ParseResult in the hot path. 2023-01-05 20:42:26 +01:00
rustc_feature Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_fs_util Remove useless borrows and derefs 2022-12-01 17:34:43 +00:00
rustc_graphviz Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_hir Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_hir_analysis Auto merge of #106283 - JulianKnodt:enum_err, r=cjgillot 2023-01-07 10:04:39 +00:00
rustc_hir_pretty Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_hir_typeck Auto merge of #106519 - estebank:tail-unit, r=cjgillot 2023-01-07 13:24:12 +00:00
rustc_incremental rustc: Remove needless lifetimes 2022-12-20 22:10:40 +01:00
rustc_index Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_infer Rollup merge of #101936 - IntQuant:issue-100717-infer-4, r=compiler-errors 2023-01-07 20:43:18 +01:00
rustc_interface Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_lexer Recover fn keyword as Fn trait in bounds 2022-12-27 06:14:46 +00:00
rustc_lint Rollup merge of #106403 - compiler-errors:rename-hir-methods, r=cjgillot 2023-01-04 20:36:28 -08:00
rustc_lint_defs fix some typos 2022-12-25 00:43:50 +01:00
rustc_llvm Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_log Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_macros Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_metadata Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_middle Rollup merge of #106287 - Nilstrieb:its-bugging-me-how-we-dont-have-docs, r=jyn514 2023-01-06 21:26:09 +01:00
rustc_mir_build Rollup merge of #106403 - compiler-errors:rename-hir-methods, r=cjgillot 2023-01-04 20:36:28 -08:00
rustc_mir_dataflow Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_mir_transform Auto merge of #105323 - cjgillot:simplify-const-prop, r=davidtwco 2023-01-07 16:13:18 +00:00
rustc_monomorphize Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_parse Tiny formatting fix 2023-01-06 05:34:56 +00:00
rustc_parse_format Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_passes Rename Rptr to Ref in AST and HIR 2022-12-28 18:52:36 +01:00
rustc_plugin_impl
rustc_privacy Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_query_impl Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_query_system Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_resolve Simplify some iterator combinators 2023-01-04 00:48:07 +00:00
rustc_save_analysis rename get_parent_node to parent_id 2023-01-04 00:43:13 +00:00
rustc_serialize compiler: remove unnecessary imports and qualified paths 2022-12-10 18:45:34 +01:00
rustc_session Rollup merge of #106542 - sigaloid:master, r=bjorn3 2023-01-06 21:26:12 +01:00
rustc_smir
rustc_span Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_symbol_mangling Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_target Auto merge of #106474 - erikdesjardins:noalias, r=bjorn3 2023-01-06 15:20:58 +00:00
rustc_trait_selection Auto merge of #106519 - estebank:tail-unit, r=cjgillot 2023-01-07 13:24:12 +00:00
rustc_traits Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_transmute Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_ty_utils Auto merge of #106474 - erikdesjardins:noalias, r=bjorn3 2023-01-06 15:20:58 +00:00
rustc_type_ir Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00