diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/types.rs | 4 |
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!(), } } } |
