@@ -186,7 +186,7 @@ enum ArgumentType {
186
186
/// Generates:
187
187
///
188
188
/// ```text
189
- /// <core::fmt::ArgumentV1 >::new_…(arg)
189
+ /// <core::fmt::Argument >::new_…(arg)
190
190
/// ```
191
191
fn make_argument < ' hir > (
192
192
ctx : & mut LoweringContext < ' _ , ' hir > ,
@@ -327,7 +327,7 @@ fn make_format_spec<'hir>(
327
327
None => sym:: Unknown ,
328
328
} ,
329
329
) ;
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.
331
331
let flags: u32 = ( ( sign == Some ( FormatSign :: Plus ) ) as u32 )
332
332
| ( ( sign == Some ( FormatSign :: Minus ) ) as u32 ) << 1
333
333
| ( alternate as u32 ) << 2
@@ -438,7 +438,7 @@ fn expand_format_args<'hir>(
438
438
// If the args array contains exactly all the original arguments once,
439
439
// in order, we can use a simple array instead of a `match` construction.
440
440
// 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.
442
442
//
443
443
// This is an optimization, speeding up compilation about 1-2% in some cases.
444
444
// See https://github.com/rust-lang/rust/pull/106770#issuecomment-1380790609
@@ -449,9 +449,9 @@ fn expand_format_args<'hir>(
449
449
let args = if use_simple_array {
450
450
// Generate:
451
451
// &[
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),
455
455
// …
456
456
// ]
457
457
let elements: Vec < _ > = arguments
@@ -477,9 +477,9 @@ fn expand_format_args<'hir>(
477
477
// Generate:
478
478
// &match (&arg0, &arg1, &…) {
479
479
// 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),
483
483
// …
484
484
// ]
485
485
// }
0 commit comments