]> git.lizzy.rs Git - rust.git/commit
A `Downcast` is now reached when const-checking a `for` loop
authorDylan MacKenzie <ecstaticmorse@gmail.com>
Wed, 13 Nov 2019 22:48:59 +0000 (14:48 -0800)
committerDylan MacKenzie <ecstaticmorse@gmail.com>
Fri, 15 Nov 2019 18:33:52 +0000 (10:33 -0800)
commita4ce2011cb0191e3be3dde2bca27b5c1ea4aadf2
treefd159b46ff812dcd80f90df0d6b4888d22af2bb0
parent9a2e53a7b385c3fbb0621a5a34e702f81a12342a
A `Downcast` is now reached when const-checking a `for` loop

I believe this occurs because the old checker stopped processing basic
blocks after a `SwitchInt`.
src/test/compile-fail/consts/const-fn-error.rs
src/test/compile-fail/issue-52443.rs