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

Comments

Projects
None yet
5 participants
@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

This comment has been minimized.

Copy link
Contributor

petrochenkov commented Feb 7, 2017

Stable -> beta regression.

@estebank

This comment has been minimized.

Copy link
Contributor

estebank commented Feb 7, 2017

@jseyfried

This comment has been minimized.

Copy link
Contributor

jseyfried commented Feb 9, 2017

Fixed in #39674.

frewsxcv added a commit to frewsxcv/rust that referenced this issue Feb 10, 2017

Rollup merge of rust-lang#39674 - jseyfried:fix_token_tree_parsing_IC…
…E, r=nrc

parser: fix ICE when parsing token trees after an error

Fixes rust-lang#39388, fixes rust-lang#39616.
r? @nrc

@bors bors closed this in #39674 Feb 10, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.