mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +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,
|
ctx.sema.diagnostics_display_range(ast).range,
|
||||||
)
|
)
|
||||||
.severity(Severity::WeakWarning)
|
.severity(Severity::WeakWarning)
|
||||||
|
.experimental() // Not supporting `#[allow(unused_mut)]` leads to false positive.
|
||||||
.with_fixes(fixes)
|
.with_fixes(fixes)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue