@@ -262,6 +262,7 @@ extern "C" {
262
262
/// family of functions. It contains a function to format the given value. At
263
263
/// compile time it is ensured that the function and the value have the correct
264
264
/// types, and then this struct is used to canonicalize arguments to one type.
265
+ #[ cfg_attr( not( bootstrap) , lang = "format_argument" ) ]
265
266
#[ derive( Copy , Clone ) ]
266
267
#[ allow( missing_debug_implementations) ]
267
268
#[ unstable( feature = "fmt_internals" , reason = "internal to format_args!" , issue = "none" ) ]
@@ -274,6 +275,7 @@ pub struct ArgumentV1<'a> {
274
275
/// This struct represents the unsafety of constructing an `Arguments`.
275
276
/// It exists, rather than an unsafe function, in order to simplify the expansion
276
277
/// of `format_args!(..)` and reduce the scope of the `unsafe` block.
278
+ #[ cfg_attr( not( bootstrap) , lang = "format_unsafe_arg" ) ]
277
279
#[ allow( missing_debug_implementations) ]
278
280
#[ doc( hidden) ]
279
281
#[ unstable( feature = "fmt_internals" , reason = "internal to format_args!" , issue = "none" ) ]
@@ -468,8 +470,8 @@ impl<'a> Arguments<'a> {
468
470
/// ```
469
471
///
470
472
/// [`format()`]: ../../std/fmt/fn.format.html
473
+ #[ cfg_attr( not( bootstrap) , lang = "format_arguments" ) ]
471
474
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
472
- #[ cfg_attr( not( test) , rustc_diagnostic_item = "Arguments" ) ]
473
475
#[ derive( Copy , Clone ) ]
474
476
pub struct Arguments < ' a > {
475
477
// Format string pieces to print.
0 commit comments