Skip to main content

fmt_safety_comment

Function fmt_safety_comment 

Source
fn fmt_safety_comment<C: AstFormatter>(
    ctx: &C,
    f: &mut Formatter<'_>,
    x: &impl HasSafety,
) -> Result
Expand description

With include_safety, add a comment line if this isn’t safe.