Skip to content
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

Expected type panic in parsing array type #39616

Closed
leonardo-m opened this issue Feb 7, 2017 · 3 comments · Fixed by #39674
Closed

Expected type panic in parsing array type #39616

leonardo-m opened this issue Feb 7, 2017 · 3 comments · Fixed by #39674
Assignees
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ regression-from-stable-to-beta Performance or correctness regression from stable to beta.

Comments

@leonardo-m
Copy link

leonardo-m commented Feb 7, 2017

fn foo(a: [0; 1]) {}
fn main() {}

nightly-x86_64-pc-windows-gnu, rustc 1.17.0-nightly (ea7a648 2017-02-04)

error: expected type, found `0`
 --> test.rs:1:12
  |
1 | fn foo(a: [0; 1]) {}
  |            ^


error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.

thread 'rustc' panicked at 'internal error: entered unreachable code', C:\bot\slave\nightly-dist-rustc-win-gnu-64\build\src\libsyntax\parse\parser.rs:2649
@petrochenkov
Copy link
Contributor

Stable -> beta regression.

@sfackler sfackler added I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ regression-from-stable-to-beta Performance or correctness regression from stable to beta. labels Feb 7, 2017
@estebank
Copy link
Contributor

estebank commented Feb 7, 2017

@jseyfried
Copy link
Contributor

Fixed in #39674.

frewsxcv added a commit to frewsxcv/rust that referenced this issue Feb 10, 2017
…E, r=nrc

parser: fix ICE when parsing token trees after an error

Fixes rust-lang#39388, fixes rust-lang#39616.
r? @nrc
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) ❄️ regression-from-stable-to-beta Performance or correctness regression from stable to beta.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants