Skip to content

ICE: Yet another bug looks like #49470 #49474

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
3442853561 opened this issue Mar 29, 2018 · 4 comments
Closed

ICE: Yet another bug looks like #49470 #49474

3442853561 opened this issue Mar 29, 2018 · 4 comments
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@3442853561
Copy link
Contributor

3442853561 commented Mar 29, 2018

I'm not sure if the cause of this problem is exactly the same as #49470

fn main() -> Result<(), Box<Option<&'static str>>> {
    Err(Box::new(None))
}

and I got that:

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports

note: rustc 1.26.0-nightly (e5277c145 2018-03-28) running on x86_64-unknown-linux-gnu
note: compiler flags: -C codegen-units=1 -C debuginfo=2 --crate-type bin
note: some of the compiler flags provided by cargo are hidden
@3442853561
Copy link
Contributor Author

3442853561 commented Mar 29, 2018

And I can not compiled this yet

fn main() -> Result<(), Option<&'static str>> {
    Err(None)
}

I got that:

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports

note: rustc 1.26.0-nightly (e5277c145 2018-03-28) running on x86_64-unknown-linux-gnu
note: compiler flags: -C codegen-units=1 -C debuginfo=2 --crate-type bin
note: some of the compiler flags provided by cargo are hidden

@3442853561
Copy link
Contributor Author

3442853561 commented Mar 29, 2018

And this:

fn main() -> Result<(), &'static str> {
    Err("Fish Leong gave me courage")
}

And I got some same notes

@matthewjasper matthewjasper added the I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ label Mar 29, 2018
@3442853561
Copy link
Contributor Author

I'm not sure if the cause of this problem is exactly the same as #49470
Because when #49470 remove the Box it could run
however this issue can not

@sinkuu
Copy link
Contributor

sinkuu commented Apr 10, 2018

This seems to be indeed a duplication of #48890 (all examples compile fine now), so you can close this.

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

3 participants