diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2014-11-20 15:08:48 -0500 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2014-11-26 11:42:06 -0500 |
| commit | c4a3be6bd1b9b468478c925c8eaa0e54df56a8fe (patch) | |
| tree | 2e69af33c184b637c259207e01c4eab71d994bd6 /src/libsyntax/fold.rs | |
| parent | f4e29e7e9aa1da4fc91a6074b0e4df44a2986517 (diff) | |
| download | rust-c4a3be6bd1b9b468478c925c8eaa0e54df56a8fe.tar.gz rust-c4a3be6bd1b9b468478c925c8eaa0e54df56a8fe.zip | |
Rote changes due to the fact that ast paths no longer carry this extraneous bounds.
Diffstat (limited to 'src/libsyntax/fold.rs')
| -rw-r--r-- | src/libsyntax/fold.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/libsyntax/fold.rs b/src/libsyntax/fold.rs index 6941c0e9c18..122f99cabb3 100644 --- a/src/libsyntax/fold.rs +++ b/src/libsyntax/fold.rs @@ -433,11 +433,13 @@ pub fn noop_fold_ty<T: Folder>(t: P<Ty>, fld: &mut T) -> P<Ty> { } TyTup(tys) => TyTup(tys.move_map(|ty| fld.fold_ty(ty))), TyParen(ty) => TyParen(fld.fold_ty(ty)), - TyPath(path, bounds, id) => { + TyPath(path, id) => { let id = fld.new_id(id); - TyPath(fld.fold_path(path), - fld.fold_opt_bounds(bounds), - id) + TyPath(fld.fold_path(path), id) + } + TyObjectSum(ty, bounds) => { + TyObjectSum(fld.fold_ty(ty), + fld.fold_bounds(bounds)) } TyQPath(qpath) => { TyQPath(fld.fold_qpath(qpath)) |
