rust/compiler/rustc_resolve/src
Matthias Krüger 45d5773704
Rollup merge of #121085 - davidtwco:always-eager-diagnostics, r=nnethercote
errors: only eagerly translate subdiagnostics

Subdiagnostics don't need to be lazily translated, they can always be eagerly translated. Eager translation is slightly more complex as we need to have a `DiagCtxt` available to perform the translation, which involves slightly more threading of that context.

This slight increase in complexity should enable later simplifications - like passing `DiagCtxt` into `AddToDiagnostic` and moving Fluent messages into the diagnostic structs rather than having them in separate files (working on that was what led to this change).

r? ```@nnethercote```
2024-02-17 18:47:40 +01:00
..
diagnostics Implement the unused_macro_rules lint 2022-05-05 19:13:00 +02:00
late Rollup merge of #121085 - davidtwco:always-eager-diagnostics, r=nnethercote 2024-02-17 18:47:40 +01:00
build_reduced_graph.rs Improve some codes according to the reviews 2024-02-12 12:47:32 +08:00
check_unused.rs Bump indexmap 2024-02-13 21:03:34 +00:00
def_collector.rs Check representation of unnamed fields 2024-02-12 12:47:31 +08:00
diagnostics.rs errors: only eagerly translate subdiagnostics 2024-02-15 10:34:41 +00:00
effective_visibilities.rs Delegation implementation: step 1 2024-01-12 14:11:16 +03:00
errors.rs Rollup merge of #119939 - clubby789:static-const-generic-note, r=compiler-errors 2024-02-06 22:45:39 +01:00
ident.rs Rollup merge of #119939 - clubby789:static-const-generic-note, r=compiler-errors 2024-02-06 22:45:39 +01:00
imports.rs errors: only eagerly translate subdiagnostics 2024-02-15 10:34:41 +00:00
late.rs For E0038, suggest associated type if available 2024-02-14 12:42:32 -08:00
lib.rs Move all the heavy lifting from TyCtxtAt::create_def into TyCtxt::create_def 2024-02-14 16:03:49 +00:00
macros.rs Supress unhelpful diagnostics for unresolved top level attributes 2024-01-29 17:43:07 +08:00
rustdoc.rs NFC don't convert types to identical types 2023-12-15 23:56:24 +01:00