Skip to content

ICE on nightly #45730

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
valff opened this issue Nov 2, 2017 · 0 comments
Closed

ICE on nightly #45730

valff opened this issue Nov 2, 2017 · 0 comments

Comments

@valff
Copy link
Contributor

valff commented Nov 2, 2017

The following code (playground) crashes rustc on latest nightly 1.23.0-nightly (2be4cc040 2017-11-01):

fn main() {
  ::std::ptr::read_volatile(0 as _);
}

Current stable and beta doesn't crash.

What I see:

   Compiling playground v0.0.1 (file:///playground)
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.23.0-nightly (2be4cc040 2017-11-01) running on x86_64-unknown-linux-gnu

thread 'rustc' panicked at 'explicit panic', /checkout/src/librustc_typeck/check/cast.rs:108:17
note: Run with `RUST_BACKTRACE=1` for a backtrace.

error: Could not compile `playground`.

To learn more, run the command again with --verbose.
bors added a commit that referenced this issue Nov 8, 2017
Forbid casting to/from a pointer of unknown kind

Fixes #45730.

Before, it ICE'd when `pointer_kind` encountered `TyInfer`.
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

1 participant