mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 21:54:42 +00:00
Make unused_mut
diagnostic experimental
This commit is contained in:
parent
af90ec8096
commit
2cce9dc3e9
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue