mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-23 19:36:49 +00:00
Early return if span is from expansion so we dont get empty span and ice later on Fixes https://github.com/rust-lang/rust/issues/147255 The problem original was from that stmt.span was from expansion and it span was bigger than right part which is block.span, so it causes empty span and panic later on, I decided to add checks for both of them to be on the safe side r? `@fmease` (you were in discussion on this issue so I decided to assign you, feel free to reroll)