rustc diverges on large dangling integer slice #63952
Labels
A-const-eval
Area: Constant evaluation (MIR interpretation)
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
I wanted to test our handling of slices that are "too big" (bigger than the largest possible allocation), so I wrote:
I expected an ICE or so, but I got a timeout. On nightly, here's what a stacktrace looks like:
@oli-obk looks like the interning could do with a fast path for integer slices similar to what validation does? And maybe it could also check that the reference is dereferencable before walking it, that would avoid finding out later that we are going to produce an error anyway.
The text was updated successfully, but these errors were encountered: