fn
nested in const fn
causes "Cannot create local mono-item for ..." ICE cross-crate.
#53451
Labels
A-const-fn
Area: const fn foo(..) {..}. Pure functions which can be applied at compile time.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Adding
#[inline]
tobar
's definition works around the ICE.Also, the bug doesn't trigger if
foo
is an#[inline]
non-const
fn
, so it's not just thatfoo
is inlined cross-crate, butconst fn
-specific behavior is also involved.cc @oli-obk @michaelwoerister
The text was updated successfully, but these errors were encountered: