Complain on unexpected native symbol, rather than failing with none-exhaustive match.
This commit is contained in:
parent
5041944fd2
commit
44bceb84a7
@ -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…
x
Reference in New Issue
Block a user