diff options
| author | David Wood <david.wood@huawei.com> | 2022-04-02 06:21:27 +0100 |
|---|---|---|
| committer | David Wood <david.wood@huawei.com> | 2022-04-05 07:01:03 +0100 |
| commit | e27389b068a3b71c87cf81828d1d878d24a3b867 (patch) | |
| tree | 6a93d753a177ce6023bbe9427c1280827157adda | |
| parent | c6a3349bd737a211f9adbfc161ff89a9b66f97ef (diff) | |
| download | rust-e27389b068a3b71c87cf81828d1d878d24a3b867.tar.gz rust-e27389b068a3b71c87cf81828d1d878d24a3b867.zip | |
errors: add links to fluent documentation
Add some links to the Fluent documentation to `DiagnosticMessage::FluentIdentifier` which explain what a Fluent message and attribute are. Signed-off-by: David Wood <david.wood@huawei.com>
| -rw-r--r-- | compiler/rustc_error_messages/src/lib.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/rustc_error_messages/src/lib.rs b/compiler/rustc_error_messages/src/lib.rs index 4a83a84a83d..ceead29f51a 100644 --- a/compiler/rustc_error_messages/src/lib.rs +++ b/compiler/rustc_error_messages/src/lib.rs @@ -193,7 +193,11 @@ pub enum DiagnosticMessage { /// Non-translatable diagnostic message. // FIXME(davidtwco): can a `Cow<'static, str>` be used here? Str(String), - /// Identifier for a Fluent message corresponding to the diagnostic message. + /// Identifier for a Fluent message (with optional attribute) corresponding to the diagnostic + /// message. + /// + /// <https://projectfluent.org/fluent/guide/hello.html> + /// <https://projectfluent.org/fluent/guide/attributes.html> FluentIdentifier(FluentId, Option<FluentId>), } |
