Make unused_mut
diagnostic experimental
This commit is contained in:
parent
af90ec8096
commit
2cce9dc3e9
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user