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
That was me! I found no way to trigger this so I made it unreachable, but I forgot about const fn arguments. We don't have a way of creating a unit constant. Technically it would be an empty tuple, but our constant tuples are just an expression id, we can't create new ones in the const evaluator.
Unreachable code is entered when trying to const-eval a block that doesn't have a terminating expression.
The relevant line is
rust/src/librustc/middle/const_eval.rs
Line 1124 in 8c77ffb
The text was updated successfully, but these errors were encountered: