Skip to content

ICE for a use statement inside of an extern block in parse_foreign_mod_items() #6532

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
kud1ing opened this issue May 16, 2013 · 1 comment
Closed

Comments

@kud1ing
Copy link

kud1ing commented May 16, 2013

Example:

extern {
  use core::libc;
}

gives

$ RUST_LOG=rustc=1,::rt::backtrace rustc test.rs
rust: task failed at 'assertion failed: *self.token == token::RBRACE', 
rust/src/libsyntax/parse/parser.rs:3731
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
note: try running with RUST_LOG=rustc=1,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues
rust: task failed at 'explicit failure', rust/src/librustc/rustc.rc:354
rust: domain main @0x7f99c880ba10 root task failed
@kud1ing
Copy link
Author

kud1ing commented May 22, 2013

Dupe of #6342.

@kud1ing kud1ing closed this as completed May 22, 2013
flip1995 pushed a commit to flip1995/rust that referenced this issue Jan 30, 2021
match_like_matches_macro: strip refs in suggestion

fixes rust-lang#6503

changelog: match_like_matches_macro: strip refs in suggestion (rust-lang#6503)
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