about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/debug.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-05-30 22:49:36 +0000
committerbors <bors@rust-lang.org>2022-05-30 22:49:36 +0000
commit7be9ec27652f2c3b820d341158b0e005f42e248e (patch)
tree3d29d2a2f6f99b65f916dc0d7cd461b02de695eb /compiler/rustc_mir_transform/src/coverage/debug.rs
parentc35035cefc709abddabfb28ecc6a326458d46ce2 (diff)
parentf669b78ffc9db8352c859d8c83c244975dbf0397 (diff)
downloadrust-7be9ec27652f2c3b820d341158b0e005f42e248e.tar.gz
rust-7be9ec27652f2c3b820d341158b0e005f42e248e.zip
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`
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions