Function rustc_ast_lowering::format::make_count
source · fn make_count<'hir>(
ctx: &mut LoweringContext<'_, 'hir>,
sp: Span,
count: &Option<FormatCount>,
argmap: &mut FxIndexMap<(usize, ArgumentType), Option<Span>>,
) -> Expr<'hir>
Expand description
Generate a hir expression for a format_args Count.
Generates:
<core::fmt::rt::Count>::Is(…)
or
<core::fmt::rt::Count>::Param(…)
or
<core::fmt::rt::Count>::Implied