Skip to content

Commit e27389b

Browse files
committed
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 <[email protected]>
1 parent c6a3349 commit e27389b

File tree

1 file changed

+5
-1
lines changed
  • compiler/rustc_error_messages/src

1 file changed

+5
-1
lines changed

compiler/rustc_error_messages/src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,11 @@ pub enum DiagnosticMessage {
193193
/// Non-translatable diagnostic message.
194194
// FIXME(davidtwco): can a `Cow<'static, str>` be used here?
195195
Str(String),
196-
/// Identifier for a Fluent message corresponding to the diagnostic message.
196+
/// Identifier for a Fluent message (with optional attribute) corresponding to the diagnostic
197+
/// message.
198+
///
199+
/// <https://projectfluent.org/fluent/guide/hello.html>
200+
/// <https://projectfluent.org/fluent/guide/attributes.html>
197201
FluentIdentifier(FluentId, Option<FluentId>),
198202
}
199203

0 commit comments

Comments
 (0)