@@ -38,9 +38,9 @@ use synstructure::Structure;
38
38
/// ```
39
39
///
40
40
/// ```fluent
41
- /// move-out-of-borrow = cannot move out of {$name} because it is borrowed
41
+ /// move_out_of_borrow = cannot move out of {$name} because it is borrowed
42
42
/// .label = cannot move out of borrow
43
- /// .first-borrow-label = `{$ty}` first borrowed here
43
+ /// .first_borrow_label = `{$ty}` first borrowed here
44
44
/// .suggestion = consider cloning here
45
45
/// ```
46
46
///
@@ -84,9 +84,9 @@ pub fn session_diagnostic_derive(s: Structure<'_>) -> TokenStream {
84
84
/// ```
85
85
///
86
86
/// ```fluent
87
- /// lint-atomic-ordering-invalid-fail-success = `{$method}`'s success ordering must be at least as strong as its failure ordering
88
- /// .fail-label = `{$fail_ordering}` failure ordering
89
- /// .success-label = `{$success_ordering}` success ordering
87
+ /// lint_atomic_ordering_invalid_fail_success = `{$method}`'s success ordering must be at least as strong as its failure ordering
88
+ /// .fail_label = `{$fail_ordering}` failure ordering
89
+ /// .success_label = `{$success_ordering}` success ordering
90
90
/// .suggestion = consider using `{$success_suggestion}` success ordering instead
91
91
/// ```
92
92
///
@@ -140,11 +140,11 @@ pub fn lint_diagnostic_derive(s: Structure<'_>) -> TokenStream {
140
140
/// ```
141
141
///
142
142
/// ```fluent
143
- /// parser-expected-identifier = expected identifier
143
+ /// parser_expected_identifier = expected identifier
144
144
///
145
- /// parser-expected-identifier -found = expected identifier, found {$found}
145
+ /// parser_expected_identifier -found = expected identifier, found {$found}
146
146
///
147
- /// parser-raw-identifier = escape `{$ident}` to use it as an identifier
147
+ /// parser_raw_identifier = escape `{$ident}` to use it as an identifier
148
148
/// ```
149
149
///
150
150
/// Then, later, to add the subdiagnostic:
0 commit comments