File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
rustc_error_messages/locales/en-US Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -324,3 +324,5 @@ lint-builtin-export-name-method = declaration of a method with `export_name`
324
324
lint-builtin-decl-unsafe-fn = declaration of an `unsafe` function
325
325
lint-builtin-decl-unsafe-method = declaration of an `unsafe` method
326
326
lint-builtin-impl-unsafe-method = implementation of an `unsafe` method
327
+
328
+ lint-builtin-missing-doc = missing documentation for { $article } { $desc }
Original file line number Diff line number Diff line change @@ -582,7 +582,10 @@ impl MissingDoc {
582
582
MISSING_DOCS ,
583
583
cx. tcx . sess . source_map ( ) . guess_head_span ( sp) ,
584
584
|lint| {
585
- lint. build ( & format ! ( "missing documentation for {} {}" , article, desc) ) . emit ( ) ;
585
+ lint. build ( fluent:: lint:: builtin_missing_doc)
586
+ . set_arg ( "article" , article)
587
+ . set_arg ( "desc" , desc)
588
+ . emit ( ) ;
586
589
} ,
587
590
) ;
588
591
}
You can’t perform that action at this time.
0 commit comments