-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
"variable does not need to be mutable" not detected #61424
Copy link
Copy link
Closed
Labels
A-NLLArea: Non-lexical lifetimes (NLL)Area: Non-lexical lifetimes (NLL)A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-NLLArea: Non-lexical lifetimes (NLL)Area: Non-lexical lifetimes (NLL)A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
(sorry if this is an duplicate or the wrong repo 😇 )
(Playground)
Current behavior:
no warning
Expected behavior:
The variable clearly doesn't need to be mutable, still, nothing is detected and no warning is emitted.
Rust 1.35.0
(Using the playground, also in
1.37.0-nightly(2019-05-31 7840a0b753a065a41999))