Files
rust/compiler/rustc_interface
Jonathan Brouwer 1d8d9cadf2 Rollup merge of #162873 - nnethercote:fix-emit_bug, r=mejrs
Adjust `bug!`/`span_bug!` emission

PR rust-lang/rust#161873 moved these macros from `rustc_middle` to `rustc_span`. In doing so it made some undesirable changes.

- The internal `emit_producing_nothing` became public.

- The macros now have different behaviour to function-based ICEs like `dcx.bug(..)` or `dcx.struct_bug(..).emit()`.

This commit reverts those changes. This brings back `Box<dyn Any>` output in a few tests because the panic payload is `ExplicitBug` (which std doesn't know about) rather than `String`. That might be worth fixing again in the future, but if so, it should be done in a way that works with all aborts, not just those done via the macros.

r? @mejrs
2026-09-19 08:45:41 +02:00
..