Complain on unexpected native symbol, rather than failing with none-exhaustive match.
This commit is contained in:
parent
5041944fd2
commit
44bceb84a7
1 changed files with 3 additions and 0 deletions
|
@ -1836,6 +1836,9 @@ impure fn parse_native_item(parser p) -> @ast.native_item {
|
|||
case (token.FN) {
|
||||
ret parse_item_native_fn(p, eff);
|
||||
}
|
||||
case (?t) {
|
||||
unexpected(p, t);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue