diff options
| author | Andrew Cann <shum@canndrew.org> | 2016-06-22 14:02:26 +0800 |
|---|---|---|
| committer | Andrew Cann <shum@canndrew.org> | 2016-08-13 21:37:09 +0800 |
| commit | b0a9acd783aec3449f5d8d772bc1bd4e59276cc8 (patch) | |
| tree | 0f04999bb837aabc015e3724a92939508328b4e7 /src/libsyntax/parse/parser.rs | |
| parent | ba7330c1cc50e210f8e48c8c8a38c794caa087e0 (diff) | |
| download | rust-b0a9acd783aec3449f5d8d772bc1bd4e59276cc8.tar.gz rust-b0a9acd783aec3449f5d8d772bc1bd4e59276cc8.zip | |
Parse `!` as TyEmpty (except in fn return type)
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 4c279b2fe48..e3803591295 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -1399,6 +1399,8 @@ impl<'a> Parser<'a> { } else { TyKind::Tup(ts) } + } else if self.eat(&token::Not) { + TyKind::Empty } else if self.check(&token::BinOp(token::Star)) { // STAR POINTER (bare pointer?) self.bump(); |
