Manish Goregaokar
fbc67b59a1
Rollup merge of #89314 - notriddle:notriddle/lint-fix-enum-variant-match, r=davidtwco
...
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.
2021-09-30 18:05:25 -07:00
..
2021-09-20 22:21:42 -04:00
2021-09-20 22:21:42 -04:00
2021-09-20 22:21:42 -04:00
2021-09-20 22:21:42 -04:00
2021-09-22 03:11:29 +03:00
2021-09-20 22:21:42 -04:00
2021-09-20 22:21:42 -04:00
2021-09-20 22:21:42 -04:00
2021-09-30 13:23:09 +00:00
2021-09-24 21:45:51 +03:00
2021-09-26 23:31:01 +00:00
2021-09-28 09:33:06 -04:00
2021-09-25 11:24:23 +02:00
2021-09-25 11:01:13 +00:00
2021-09-25 01:08:41 +01:00
2021-09-28 12:28:22 +00:00
2021-09-20 22:21:42 -04:00
2021-09-20 22:21:42 -04:00
2021-09-22 19:03:22 +02:00
2021-09-28 22:17:13 +02:00
2021-09-24 21:48:30 +03:00
2021-09-20 22:21:42 -04:00
2021-09-20 22:21:42 -04:00
2021-09-30 18:05:20 -07:00
2021-09-20 22:21:42 -04:00
2021-09-20 22:21:42 -04:00
2021-09-22 03:11:29 +03:00
2021-09-28 12:28:22 +00:00
2021-09-28 11:56:15 +03:00
2021-09-20 22:21:42 -04:00
2021-09-28 11:56:15 +03:00
2021-09-22 06:43:33 +00:00
2021-09-27 18:11:21 -04:00
2021-09-20 22:21:42 -04:00
2021-09-23 15:44:53 +00:00
2021-09-28 12:28:22 +00:00
2021-09-30 18:05:25 -07:00
2021-09-28 12:28:22 +00:00
2021-09-25 11:01:13 +00:00
2021-09-20 22:21:42 -04:00
2021-09-25 09:03:15 -07:00
2021-09-20 22:21:42 -04:00
2021-09-22 06:43:33 +00:00
2021-09-20 22:21:42 -04:00
2021-09-21 19:25:49 +00:00
2021-09-24 05:29:49 +00:00
2021-09-20 22:21:42 -04:00
2021-09-30 18:05:22 -07:00
2021-09-20 22:21:42 -04:00
2021-09-20 22:21:42 -04:00
2021-09-28 11:56:15 +03:00
2021-09-24 11:40:12 -07:00
2021-09-20 22:21:42 -04:00
2021-09-28 11:31:47 +09:00
2021-09-28 22:17:13 +02:00
2021-09-27 10:23:45 -05:00
2021-09-26 19:36:00 +00:00
2021-09-20 22:21:42 -04:00
2021-09-30 18:05:21 -07:00