We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fd34e0 commit 68df61eCopy full SHA for 68df61e
clippy_utils/src/source.rs
@@ -73,7 +73,6 @@ pub fn expr_block<T: LintContext>(
73
let (code, from_macro) = snippet_block_with_context(cx, expr.span, outer, default, indent_relative_to, app);
74
if !from_macro &&
75
let ExprKind::Block(block, _) = expr.kind &&
76
- // TODO: Is this enough UnsafeSource::UserProvided, or should CompilerGenerated be also included?
77
block.rules != BlockCheckMode::UnsafeBlock(UnsafeSource::UserProvided)
78
{
79
format!("{code}")
0 commit comments