rust/compiler/rustc_errors/src
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
..
json Implement -Ztrack-diagnostics 2022-10-19 00:08:20 +02:00
annotate_snippet_emitter_writer.rs Remove useless borrows and derefs 2022-12-01 17:34:43 +00:00
diagnostic_builder.rs ADD - create and emit Bug support for Diagnostics 2022-12-27 20:59:22 -05:00
diagnostic_impls.rs UPDATE - migrate fn simd_simple_float_intrinsic error messages 2022-12-27 20:59:21 -05:00
diagnostic.rs Merge multiple mutable borrows of immutable binding errors 2023-01-01 10:09:26 -08:00
emitter.rs Account for multiple multiline spans with empty padding 2022-12-29 09:13:40 -08:00
json.rs Remove useless borrows and derefs 2022-12-01 17:34:43 +00:00
lib.rs Rollup merge of #104543 - JhonnyBillM:migrate-codegen-ssa-to-diagnostics-structs-pt3, r=davidtwco 2023-01-07 20:43:19 +01:00
lock.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
registry.rs Remove (lots of) dead code 2021-03-27 22:16:33 -04:00
snippet.rs Compute most of Public/Exported access level in rustc_resolve 2022-01-09 21:33:14 +00:00
styled_buffer.rs Spellchecking some comments 2022-03-30 01:39:38 -04:00
translation.rs Remove useless borrows and derefs 2022-12-01 17:34:43 +00:00