fn make_format_spec<'hir>(
ctx: &mut LoweringContext<'_, 'hir>,
sp: Span,
placeholder: &FormatPlaceholder,
argmap: &mut FxIndexMap<(usize, ArgumentType), Option<Span>>,
) -> Expr<'hir>
Expand description
Generate a hir expression for a format_args placeholder specification.
Generates
<core::fmt::rt::Placeholder::new(
…usize, // position
'…', // fill
<core::fmt::rt::Alignment>::…, // alignment
…u32, // flags
<core::fmt::rt::Count::…>, // width
<core::fmt::rt::Count::…>, // precision
)