diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2017-01-06 16:06:09 +1300 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2017-01-06 16:06:09 +1300 |
| commit | 32cb83985541ec78fc17185c0847facf2f5da2ec (patch) | |
| tree | 67ebdf99829d7354839582d20a3a5f49ce1f58ef /src | |
| parent | 1358f1ac806f10c5dbd80dd02934bf98d01993f2 (diff) | |
Macros in types are possible
Fixes #1234
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!(), } } } |
