Skip to content

ICE on turbofish without parens followed by >= . #60499

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
ogiekako opened this issue May 3, 2019 · 3 comments
Closed

ICE on turbofish without parens followed by >= . #60499

ogiekako opened this issue May 3, 2019 · 3 comments

Comments

@ogiekako
Copy link

ogiekako commented May 3, 2019

Given main.rs:

fn main() {
    std::mem::size_of::<i32> >= 0
}

$ rustc main.rs
thread 'rustc' panicked at 'called Option::unwrap() on a None value', src/libcore/option.rs:347:21
note: Run with RUST_BACKTRACE=1 environment variable to display a backtrace.

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.36.0-nightly (3c3d3c1 2019-04-17) running on x86_64-apple-darwin

@JohnTitor
Copy link
Member

JohnTitor commented May 3, 2019

I cannot reproduce ICE on playground with latest nightly.

Could you update your local nightly and re-check?

@ogiekako
Copy link
Author

ogiekako commented May 3, 2019

The issue is gone after I updated nightly (to the following version). Thanks!

$ rustc --version
rustc 1.36.0-nightly (08bfe1612 2019-05-02)

@jonas-schievink
Copy link
Contributor

Duplicate of #60275 and closing as fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants