Skip to content

Commit bcf388f

Browse files
committed
Update outdated comment.
1 parent 9e67854 commit bcf388f

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

compiler/rustc_ast_lowering/src/format.rs

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,14 @@ fn make_format_spec<'hir>(
9494
argmap: &mut FxIndexSet<(usize, ArgumentType)>,
9595
) -> hir::Expr<'hir> {
9696
// Generate:
97-
// ::core::fmt::rt::v1::Argument {
98-
// position: 0usize,
99-
// format: ::core::fmt::rt::v1::FormatSpec {
100-
// fill: ' ',
101-
// align: ::core::fmt::rt::v1::Alignment::Unknown,
102-
// flags: 0u32,
103-
// precision: ::core::fmt::rt::v1::Count::Implied,
104-
// width: ::core::fmt::rt::v1::Count::Implied,
105-
// },
106-
// }
97+
// ::core::fmt::rt::v1::Argument::new(
98+
// 0usize, // position
99+
// ' ', // fill
100+
// ::core::fmt::rt::v1::Alignment::Unknown,
101+
// 0u32, // flags
102+
// ::core::fmt::rt::v1::Count::Implied, // width
103+
// ::core::fmt::rt::v1::Count::Implied, // precision
104+
// )
107105
let position = match placeholder.argument.index {
108106
Ok(arg_index) => {
109107
let (i, _) =

0 commit comments

Comments
 (0)