mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-09 00:17:44 +00:00
![]() fix(lint): don't suggest refutable patterns to "fix" irrefutable bind In function arguments and let bindings, do not suggest changing `C` to `Foo::C` unless `C` is the only variant of `Foo`, because it won't work. The general warning is still kept, because code like this is confusing. Fixes #88730 p.s. `src/test/ui/lint/lint-uppercase-variables.rs` already tests the one-variant case. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |