Skip to content

ICE when compiling with --pretty=typed option #12329

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
edwardw opened this issue Feb 16, 2014 · 1 comment
Closed

ICE when compiling with --pretty=typed option #12329

edwardw opened this issue Feb 16, 2014 · 1 comment
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@edwardw
Copy link
Contributor

edwardw commented Feb 16, 2014

$ rustc --pretty=typed src/test/run-pass/let-var-hygiene.rs
...
pub fn main() {
    let _x = (8 as int);
    ({
         let given_val =
             (&((({ let _x = (9 as int); (_x as int) } as int)) as int) as
                 &int);
         let expected_val = (&(((8 as int)) as int) as &int);
         (if (!(((((((*(given_val as &int) as int) ==
                        (*(expected_val as &int) as int) as bool)) as bool) &&
                     ((((*(expected_val as &int) as int) ==
                           (*(given_val as &int) as int) as bool)) as bool) as
                     bool)) as bool) as bool) {
              ({
                   #[inline]
                   fn run_fmt(fmt: &::std::fmt::Arguments) -> ! {
                       ((::std::rt::begin_unwind_fmt as
                            fn(&std::fmt::Arguments<>, &'static str, uint) -> !)((fmt
:error: internal compiler error: node_id_to_type: no type for node `expr 5u (id=74)`
This message reflects a bug in the Rust compiler. 
We would appreciate a bug report: http://static.rust-lang.org/doc/master/complement-bugreport.html

$ rustc -v
rustc 0.10-pre
host: x86_64-apple-darwin
@huonw
Copy link
Member

huonw commented Feb 17, 2014

Whoa that's some ugly output! :(

This is caused by the assert_eq expanding to something including format, which in turn expands to something with a fixed length vector, and these make --pretty typed unhappy. Thanks for the report, but this is almost certainly a dupe of #4264.

@huonw huonw closed this as completed Feb 17, 2014
@huonw huonw added the I-ICE label Feb 17, 2014
bors added a commit to rust-lang-ci/rust that referenced this issue Jul 25, 2022
…r=jonas-schievink

fix: Don't swallow build script errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

2 participants