mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-18 18:04:13 +00:00
![]() Fix inline_const with interpolated block Interpolation already worked when we had a `const $block` that wasn't a statement expr: ``` fn foo() { let _ = const $block; } ``` But it was failing when the const block was in statement expr position: ``` fn foo() { const $block; } ``` ... because of a bug in a check for const items. This fixes that. --- cc https://github.com/rust-lang/rust/pull/112953#issuecomment-1631354481, though I don't think this requires an FCP since it's already supported in exprs and seems to me to be fully a parser bug. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
messages.ftl |