Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 2cce9dc

Browse files
committed
Make unused_mut diagnostic experimental
1 parent af90ec8 commit 2cce9dc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/ide-diagnostics/src/handlers/mutability_errors.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ pub(crate) fn unused_mut(ctx: &DiagnosticsContext<'_>, d: &hir::UnusedMut) -> Di
7070
ctx.sema.diagnostics_display_range(ast).range,
7171
)
7272
.severity(Severity::WeakWarning)
73+
.experimental() // Not supporting `#[allow(unused_mut)]` leads to false positive.
7374
.with_fixes(fixes)
7475
}
7576

0 commit comments

Comments
 (0)