You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
'rustc' panicked at 'Box<Any>', when const expr evaluation panics #44578
After seeing this amusing workaround for conditions in const expr, I decided to try it out. Then I was wondering what would happen if I caused index out-of-bounds. That led me to this code.
While it correctly points to the error, it also says "the compiler unexpectedly panicked. this is a bug." and asks for reporting, so I'm reporting here.
Activity
Mark-Simulacrum commentedon Sep 17, 2017
cc @eddyb
eddyb commentedon Sep 18, 2017
Works correctly on beta and nightly, doesn't it?
Kixunil commentedon Sep 18, 2017
@eddyb I totally forgot to check nightly. Indeed, it's correct there.
Fix some E-needstest issues.
Auto merge of #45020 - MaloJaffre:needs-test, r=alexcrichton