rust/compiler/rustc_ast_lowering
Matthias Krüger 472bc0ee25
Rollup merge of #137742 - mu001999-contrib:fix-137708, r=compiler-errors
unconditionally lower match arm even if it's unneeded for never pattern in match

fixes #137708

Lowering arm body is skipped when lowering match arm with never pattern, but we may need the HirId for DefId in the body in later passes. And then we got the ICE `No HirId for DefId`.

Fixes this by lowering the arm body even if it's unneeded for never pattern in match, so that we can generate HirId and use it then.

r? `@compiler-errors`
2025-03-01 05:49:56 +01:00
..
src Rollup merge of #137742 - mu001999-contrib:fix-137708, r=compiler-errors 2025-03-01 05:49:56 +01:00
Cargo.toml Introduce new parsing infrastructure and types for parsed attributes 2025-02-24 14:26:06 +01:00
messages.ftl show supported register classes 2025-01-29 12:15:12 +01:00