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`
324324lint-builtin-decl-unsafe-fn = declaration of an `unsafe` function
325325lint-builtin-decl-unsafe-method = declaration of an `unsafe` method
326326lint-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 {
582582 MISSING_DOCS ,
583583 cx. tcx . sess . source_map ( ) . guess_head_span ( sp) ,
584584 |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 ( ) ;
586589 } ,
587590 ) ;
588591 }
You can’t perform that action at this time.
0 commit comments