diff options
| author | Graydon Hoare <[email protected]> | 2011-03-07 10:02:01 -0800 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-03-07 10:02:01 -0800 |
| commit | 44bceb84a71a2dcf71be1545e595e290f35e1fe1 (patch) | |
| tree | a9be2f6471b4ffca347c42812cafc76bac449bef /src/comp/front/parser.rs | |
| parent | Yell louder when a linkage error in rt occurs, as compiler output fails quiet... (diff) | |
| download | rust-44bceb84a71a2dcf71be1545e595e290f35e1fe1.tar.xz rust-44bceb84a71a2dcf71be1545e595e290f35e1fe1.zip | |
Complain on unexpected native symbol, rather than failing with none-exhaustive match.
Diffstat (limited to 'src/comp/front/parser.rs')
| -rw-r--r-- | src/comp/front/parser.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs index 5b677e9b..67eec424 100644 --- a/src/comp/front/parser.rs +++ b/src/comp/front/parser.rs @@ -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); + } } } |