rustfmt_nightly::comment

Function rewrite_missing_comment

Source
pub(crate) fn rewrite_missing_comment(
    span: Span,
    shape: Shape,
    context: &RewriteContext<'_>,
) -> Result<String, RewriteError>
Expand description

Given the span, rewrite the missing comment inside it if available. Note that the given span must only include comments (or leading/trailing whitespaces).