Function clippy_utils::source::snippet_block_with_applicability
source · pub fn snippet_block_with_applicability<'a>(
cx: &impl LintContext,
span: Span,
default: &'a str,
indent_relative_to: Option<Span>,
applicability: &mut Applicability
) -> Cow<'a, str>
Expand description
Same as snippet_block
, but adapts the applicability level by the rules of
snippet_with_applicability
.