Function clippy_utils::source::snippet_block_with_applicability
source · pub fn snippet_block_with_applicability<'a, T: LintContext>(
cx: &T,
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
.