Skip to main content

literal_atom

Function literal_atom 

Source
pub fn literal_atom(ctx: &Context<'_>, id: LiteralId) -> String
Expand description

The rendered atom (no <ty> prefix) of the literal id, resolved against the whole &Context so symbolic block/function literals show their target name. This is the full-context twin of LiteralRef’s Display (which, being &Shared-backed, cannot reach body/interface names and falls back to the numeric form). Used by the instruction renderer and the dataflow graph. Concatenating with the type prefix reproduces the pre-narrowing rendering byte-for-byte (context-split stage 5b-ii item #1).