Skip to content

Commit bb2f58d

Browse files
jdonszelmannGuillaumeGomez
authored andcommitted
rewrite doc attribute (non-doc-comments)
1 parent 4b3ba58 commit bb2f58d

File tree

18 files changed

+744
-457
lines changed

18 files changed

+744
-457
lines changed

compiler/rustc_attr_parsing/messages.ftl

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,38 @@ attr_parsing_unused_multiple =
261261
.suggestion = remove this attribute
262262
.note = attribute also specified here
263263
264+
265+
attr_parsing_doc_alias_duplicated = doc alias is duplicated
266+
.label = first defined here
267+
264268
-attr_parsing_previously_accepted =
265269
this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
266270
267271
attr_parsing_whole_archive_needs_static =
268272
linking modifier `whole-archive` is only compatible with `static` linking kind
273+
274+
attr_parsing_unused_no_lints_note =
275+
attribute `{$name}` without any lints has no effect
276+
277+
attr_parsing_doc_alias_empty =
278+
{$attr_str} attribute cannot have empty value
279+
280+
attr_parsing_doc_alias_bad_char =
281+
{$char_} character isn't allowed in {$attr_str}
282+
283+
attr_parsing_doc_alias_start_end =
284+
{$attr_str} cannot start or end with ' '
285+
286+
attr_parsing_doc_keyword_not_keyword =
287+
nonexistent keyword `{$keyword}` used in `#[doc(keyword = "...")]`
288+
.help = only existing keywords are allowed in core/std
289+
290+
attr_parsing_doc_inline_conflict =
291+
conflicting doc inlining attributes
292+
.help = remove one of the conflicting attributes
293+
294+
attr_parsing_doc_inline_conflict_first =
295+
this attribute...
296+
297+
attr_parsing_doc_inline_conflict_second =
298+
{"."}..conflicts with this attribute

0 commit comments

Comments
 (0)