about summary refs log tree commit diff
path: root/src/libsyntax/print/pprust.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/print/pprust.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/print/pprust.rs')
-rw-r--r--src/libsyntax/print/pprust.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs
index a5d512f14ec..24d8198191e 100644
--- a/src/libsyntax/print/pprust.rs
+++ b/src/libsyntax/print/pprust.rs
@@ -976,7 +976,7 @@ impl<'a> State<'a> {
                 try!(self.print_opt_lifetime(lifetime));
                 try!(self.print_mt(mt));
             }
-            ast::TyKind::Empty => {
+            ast::TyKind::Never => {
                 word(&mut self.s, "!")?;
             },
             ast::TyKind::Tup(ref elts) => {