about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorAndrew Cann <shum@canndrew.org>2016-08-02 15:56:20 +0800
committerAndrew Cann <shum@canndrew.org>2016-08-13 21:37:09 +0800
commitfadabe08f52ce524a0cbb5af327e55db61198024 (patch)
tree7240d1e35980a8c2eefa26741b63a174b55fc016 /src/libsyntax/parse/parser.rs
parentf0a8b6d43f26907ac7d7abc35510878f61551fbf (diff)
downloadrust-fadabe08f52ce524a0cbb5af327e55db61198024.tar.gz
rust-fadabe08f52ce524a0cbb5af327e55db61198024.zip
Rename empty/bang to never
Split Ty::is_empty method into is_never and is_uninhabited
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 4f54f529322..118096d9d48 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -1396,7 +1396,7 @@ impl<'a> Parser<'a> {
                 TyKind::Tup(ts)
             }
         } else if self.eat(&token::Not) {
-            TyKind::Empty
+            TyKind::Never
         } else if self.check(&token::BinOp(token::Star)) {
             // STAR POINTER (bare pointer?)
             self.bump();