Implicit panic calls can be generated from Assert MIR terminator, but they are not collected during monomorphization. This means that link error will occur if the panic functions are not codegenned with core crate, e.g. when it is marked inline.
This causes breakage in rust-lang/cargo#10019 when #90273 changes the function to be inline if panic_immediate_abort is set and exposes this issue.
Implicit panic calls can be generated from
Assert
MIR terminator, but they are not collected during monomorphization. This means that link error will occur if the panic functions are not codegenned withcore
crate, e.g. when it is markedinline
.This causes breakage in rust-lang/cargo#10019 when #90273 changes the function to be inline if
panic_immediate_abort
is set and exposes this issue.