You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Canonical example [None, ..10] doesn't work for a generic [Option<T>, ..10]. It's possible to write a macro to accomplish this, but it sucks that that's necessary.
The text was updated successfully, but these errors were encountered:
…iable, r=Veykril
fix: Replace Just the variable name in Unused Variable Diagnostic Fix
Changes Unused Variable diagnostic to just look at the variable name, not the entire syntax range.
Also added a test for an unused variable in an array destructure.
Closesrust-lang#17053
lnicola
pushed a commit
to lnicola/rust
that referenced
this issue
Apr 20, 2024
…iable, r=Veykril
fix: Replace Just the variable name in Unused Variable Diagnostic Fix
Changes Unused Variable diagnostic to just look at the variable name, not the entire syntax range.
Also added a test for an unused variable in an array destructure.
Closesrust-lang#17053
Canonical example
[None, ..10]
doesn't work for a generic[Option<T>, ..10]
. It's possible to write a macro to accomplish this, but it sucks that that's necessary.The text was updated successfully, but these errors were encountered: