Make unused_mut diagnostic experimental

This commit is contained in:
hkalbasi 2023-03-06 21:07:41 +03:30
parent af90ec8096
commit 2cce9dc3e9

View File

@ -70,6 +70,7 @@ pub(crate) fn unused_mut(ctx: &DiagnosticsContext<'_>, d: &hir::UnusedMut) -> Di
ctx.sema.diagnostics_display_range(ast).range,
)
.severity(Severity::WeakWarning)
.experimental() // Not supporting `#[allow(unused_mut)]` leads to false positive.
.with_fixes(fixes)
}