rust/compiler/rustc_errors/src
bors 7be9ec2765 Auto merge of #97357 - davidtwco:diagnostic-translation-typed-subdiagnostic-simplification, r=oli-obk
errors: simplify referring to fluent attributes

To render the message of a Fluent attribute, the identifier of the Fluent message must be known. `DiagnosticMessage::FluentIdentifier` contains both the message's identifier and optionally the identifier of an attribute. Generated constants for each attribute would therefore need to be named uniquely (amongst all error messages) or be able to refer to only the attribute identifier which will be combined with a message identifier later. In this commit, the latter strategy is implemented as part of the `Diagnostic` type's functions for adding subdiagnostics of various kinds.

r? `@oli-obk`
2022-05-30 22:49:36 +00:00
..
json errors: lazily load fallback fluent bundle 2022-04-13 02:44:59 +01:00
annotate_snippet_emitter_writer.rs errors: lazily load fallback fluent bundle 2022-04-13 02:44:59 +01:00
diagnostic.rs errors: simplify referring to fluent attributes 2022-05-30 13:38:19 +01:00
diagnostic_builder.rs errors: simplify referring to fluent attributes 2022-05-30 13:38:19 +01:00
emitter.rs Ensure source file present when calculating max line number 2022-05-29 11:29:49 +09:00
json.rs Plumb through rustc_lint_defs::Level as enum rather than string. 2022-04-27 10:04:25 -07:00
lib.rs errors: simplify referring to fluent attributes 2022-05-30 13:38: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