mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-01 07:48:45 +00:00
829e77709e
Bind unused parameter assistant This PR introduces a new **Bind unused parameter assistant**. While we do have a QuickFix from `rustc` (prefixing the parameter with an underscore), it's sometimes more convenient to suppress the warning using the following approach: ```rust fn some_function(unused: i32) {} ``` -> ```rust fn some_function(unused: i32) { let _ = unused; } ``` |
||
---|---|---|
.. | ||
generated.rs | ||
sourcegen.rs |