Fix ICE when casting on constant expressions

This pull request fixes the bug I opened ( #9867 )
It also fixes a small issue that was causing Rustc build to fail on my setup, by removing a rusti target in the Makefile.

( PS: This is the first time I do a pull request to Rust, please let me now if i'm doing bullshit. )