Files
rust/compiler/rustc_passes/src
Matthias Krüger 60cb794181 Rollup merge of #121391 - Nadrieril:fix-liveness, r=compiler-errors
never patterns: Fix liveness analysis in the presence of never patterns

There's a bunch of code that only looks at the first alternative of an or-pattern, under the assumption that all alternatives have the same set of bindings. This is true except for never pattern alternatives  (e.g. `Ok(x) | Err(!)`), so we skip these. I expect there's other code with this problem, I'll have to check that later.

I don't have tests for this yet because mir lowering causes other issues; I'll have some in the next PR.

r? ``@compiler-errors``
2024-02-21 22:48:58 +01:00
..
2024-01-29 07:41:41 +11:00
2024-02-20 13:22:17 +11:00
2024-01-10 07:33:07 +11:00
2024-02-15 08:09:42 +01:00
2024-02-11 22:09:52 +00:00