Skip to content

Commit fcd0eca

Browse files
committed
rewrite doc attribute (non-doc-comments)
1 parent ade8487 commit fcd0eca

File tree

17 files changed

+743
-468
lines changed

17 files changed

+743
-468
lines changed

compiler/rustc_attr_parsing/messages.ftl

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@ attr_parsing_unused_multiple =
182182
.suggestion = remove this attribute
183183
.note = attribute also specified here
184184
185+
186+
attr_parsing_doc_alias_duplicated = doc alias is duplicated
187+
.label = first defined here
188+
185189
-attr_parsing_previously_accepted =
186190
this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
187191
@@ -259,3 +263,29 @@ attr_parsing_whole_archive_needs_static =
259263
attr_parsing_limit_invalid =
260264
`limit` must be a non-negative integer
261265
.label = {$error_str}
266+
%%%%%%% Changes from base to side #2
267+
attr_parsing_unused_no_lints_note =
268+
attribute `{$name}` without any lints has no effect
269+
270+
attr_parsing_doc_alias_empty =
271+
{$attr_str} attribute cannot have empty value
272+
273+
attr_parsing_doc_alias_bad_char =
274+
{$char_} character isn't allowed in {$attr_str}
275+
276+
attr_parsing_doc_alias_start_end =
277+
{$attr_str} cannot start or end with ' '
278+
279+
attr_parsing_doc_keyword_not_keyword =
280+
nonexistent keyword `{$keyword}` used in `#[doc(keyword = "...")]`
281+
.help = only existing keywords are allowed in core/std
282+
283+
attr_parsing_doc_inline_conflict =
284+
conflicting doc inlining attributes
285+
.help = remove one of the conflicting attributes
286+
287+
attr_parsing_doc_inline_conflict_first =
288+
this attribute...
289+
290+
attr_parsing_doc_inline_conflict_second =
291+
{"."}..conflicts with this attribute

0 commit comments

Comments
 (0)