about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNick Cameron <ncameron@mozilla.com>2017-01-06 16:06:09 +1300
committerNick Cameron <ncameron@mozilla.com>2017-01-06 16:06:09 +1300
commit32cb83985541ec78fc17185c0847facf2f5da2ec (patch)
tree67ebdf99829d7354839582d20a3a5f49ce1f58ef /src
parent1358f1ac806f10c5dbd80dd02934bf98d01993f2 (diff)
Macros in types are possible
Fixes #1234
Diffstat (limited to 'src')
-rw-r--r--src/types.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/types.rs b/src/types.rs
index f4f86f58815..c186e1ea324 100644
--- a/src/types.rs
+++ b/src/types.rs
@@ -642,12 +642,12 @@ impl Rewrite for ast::Ty {
                 rewrite_bare_fn(bare_fn, self.span, context, width, offset)
             }
             ast::TyKind::Never => Some(String::from("!")),
-            ast::TyKind::Mac(..) |
-            ast::TyKind::Typeof(..) => unreachable!(),
+            ast::TyKind::Mac(..) => None,
             ast::TyKind::ImplicitSelf => Some(String::from("")),
             ast::TyKind::ImplTrait(ref it) => {
                 it.rewrite(context, width, offset).map(|it_str| format!("impl {}", it_str))
             }
+            ast::TyKind::Typeof(..) => unreachable!(),
         }
     }
 }