bors
74c3f5a146
Auto merge of #120324 - Nadrieril:remove-interior-mutability, r=compiler-errors
...
pattern_analysis: track usefulness without interior mutability
Because of or-patterns, exhaustiveness needs to be able to lint if a sub-pattern is redundant, e.g. in `Some(_) | Some(true)`. So far the only sane solution I had found was interior mutability. This is a bit of an abstraction leak, and would become a footgun if we ever reused the same `DeconstructedPat`. This PR replaces interior mutability with an address-indexed hashmap, which is logically equivalent.
2024-02-12 22:16:58 +00:00
..
2024-02-12 12:47:32 +08:00
2024-02-12 12:47:30 +08:00
2024-02-12 12:47:29 +08:00
2024-02-12 12:47:23 +08:00
2024-02-12 18:04:08 +01:00
2024-02-12 12:47:32 +08:00
2024-02-09 15:34:48 +00:00
2024-02-09 14:41:50 +01:00
2024-02-10 12:26:14 +11:00
2024-02-10 13:12:31 +01:00
2024-02-12 18:04:09 +01:00
2024-02-10 00:58:38 +01:00
2024-02-09 14:41:50 +01:00
2024-02-10 16:12:55 +01:00
2024-02-09 14:41:50 +01:00
2024-02-12 18:04:07 +01:00
2024-02-09 14:41:50 +01:00
2024-02-12 18:39:20 +11:00
2024-02-12 12:47:23 +08:00
2024-02-12 17:06:22 +00:00
2024-02-12 12:47:23 +08:00
2024-02-12 17:06:22 +00:00
2024-02-08 07:44:34 -05:00
2024-02-12 18:39:20 +11:00
2024-02-12 18:39:20 +11:00
2024-02-11 23:19:08 +01:00
2024-02-10 12:26:14 +11:00
2024-02-09 14:41:50 +01:00
2024-02-09 14:41:50 +01:00
2024-02-12 12:47:23 +08:00
2024-02-12 17:06:22 +00:00
2024-02-12 12:47:30 +08:00
2024-02-10 18:15:11 +11:00
2024-02-12 18:04:10 +01:00
2024-02-11 01:37:55 +01:00
2024-02-12 12:47:23 +08:00
2024-02-12 17:06:22 +00:00
2024-02-12 22:16:58 +00:00
2024-02-09 14:41:50 +01:00
2024-02-09 14:41:50 +01:00
2024-02-12 12:47:32 +08:00
2024-02-09 14:41:50 +01:00
2024-02-08 11:49:08 -05:00
2024-02-12 17:06:22 +00:00
2024-02-12 17:06:22 +00:00
2024-02-10 18:15:11 +11:00
2024-02-12 17:06:22 +00:00
2024-02-12 12:47:23 +08:00
2024-02-09 14:41:50 +01:00
2024-02-08 11:49:08 -05:00