diff options
| author | Andrew Cann <shum@canndrew.org> | 2016-05-10 00:03:59 +0800 |
|---|---|---|
| committer | Andrew Cann <shum@canndrew.org> | 2016-08-13 21:37:09 +0800 |
| commit | ba7330c1cc50e210f8e48c8c8a38c794caa087e0 (patch) | |
| tree | 966fbb3667ecc111db22e17c1b203dcf67fd1de9 /src/libsyntax/fold.rs | |
| parent | e64f68817d850ccbe642d7f067083bc655115d84 (diff) | |
| download | rust-ba7330c1cc50e210f8e48c8c8a38c794caa087e0.tar.gz rust-ba7330c1cc50e210f8e48c8c8a38c794caa087e0.zip | |
Start implementation of RFC 1216 (make ! a type)
Add `TyKind::Empty` and fix resulting build errors.
Diffstat (limited to 'src/libsyntax/fold.rs')
| -rw-r--r-- | src/libsyntax/fold.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/fold.rs b/src/libsyntax/fold.rs index afc990f498e..47addd8aba5 100644 --- a/src/libsyntax/fold.rs +++ b/src/libsyntax/fold.rs @@ -373,6 +373,7 @@ pub fn noop_fold_ty<T: Folder>(t: P<Ty>, fld: &mut T) -> P<Ty> { decl: fld.fold_fn_decl(decl) })) } + TyKind::Empty => node, TyKind::Tup(tys) => TyKind::Tup(tys.move_map(|ty| fld.fold_ty(ty))), TyKind::Paren(ty) => TyKind::Paren(fld.fold_ty(ty)), TyKind::Path(qself, path) => { |
