@@ -186,7 +186,7 @@ enum ArgumentType {
186186/// Generates:
187187///
188188/// ```text
189- /// <core::fmt::ArgumentV1 >::new_…(arg)
189+ /// <core::fmt::Argument >::new_…(arg)
190190/// ```
191191fn make_argument < ' hir > (
192192 ctx : & mut LoweringContext < ' _ , ' hir > ,
@@ -327,7 +327,7 @@ fn make_format_spec<'hir>(
327327 None => sym:: Unknown ,
328328 } ,
329329 ) ;
330- // This needs to match `FlagV1 ` in library/core/src/fmt/mod .rs.
330+ // This needs to match `Flag ` in library/core/src/fmt/rt .rs.
331331 let flags: u32 = ( ( sign == Some ( FormatSign :: Plus ) ) as u32 )
332332 | ( ( sign == Some ( FormatSign :: Minus ) ) as u32 ) << 1
333333 | ( alternate as u32 ) << 2
@@ -438,7 +438,7 @@ fn expand_format_args<'hir>(
438438 // If the args array contains exactly all the original arguments once,
439439 // in order, we can use a simple array instead of a `match` construction.
440440 // However, if there's a yield point in any argument except the first one,
441- // we don't do this, because an ArgumentV1 cannot be kept across yield points.
441+ // we don't do this, because an Argument cannot be kept across yield points.
442442 //
443443 // This is an optimization, speeding up compilation about 1-2% in some cases.
444444 // See https://github.com/rust-lang/rust/pull/106770#issuecomment-1380790609
@@ -449,9 +449,9 @@ fn expand_format_args<'hir>(
449449 let args = if use_simple_array {
450450 // Generate:
451451 // &[
452- // <core::fmt::ArgumentV1 >::new_display(&arg0),
453- // <core::fmt::ArgumentV1 >::new_lower_hex(&arg1),
454- // <core::fmt::ArgumentV1 >::new_debug(&arg2),
452+ // <core::fmt::Argument >::new_display(&arg0),
453+ // <core::fmt::Argument >::new_lower_hex(&arg1),
454+ // <core::fmt::Argument >::new_debug(&arg2),
455455 // …
456456 // ]
457457 let elements: Vec < _ > = arguments
@@ -477,9 +477,9 @@ fn expand_format_args<'hir>(
477477 // Generate:
478478 // &match (&arg0, &arg1, &…) {
479479 // args => [
480- // <core::fmt::ArgumentV1 >::new_display(args.0),
481- // <core::fmt::ArgumentV1 >::new_lower_hex(args.1),
482- // <core::fmt::ArgumentV1 >::new_debug(args.0),
480+ // <core::fmt::Argument >::new_display(args.0),
481+ // <core::fmt::Argument >::new_lower_hex(args.1),
482+ // <core::fmt::Argument >::new_debug(args.0),
483483 // …
484484 // ]
485485 // }
0 commit comments