diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2017-01-17 01:54:59 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2017-01-17 01:54:59 +0300 |
| commit | 03620dba25328ee8cc7316cf6d9bad2d0a118ba1 (patch) | |
| tree | 36d4e35e2c6196f64147a2d9f5bc897ff30da076 /src/libsyntax/fold.rs | |
| parent | 2efe865d22eb85871562b2497ac819efc0174a3d (diff) | |
| download | rust-03620dba25328ee8cc7316cf6d9bad2d0a118ba1.tar.gz rust-03620dba25328ee8cc7316cf6d9bad2d0a118ba1.zip | |
Use resizable Vec instead of P<[T]> in AST
Diffstat (limited to 'src/libsyntax/fold.rs')
| -rw-r--r-- | src/libsyntax/fold.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libsyntax/fold.rs b/src/libsyntax/fold.rs index 8b045f1b530..2acf1c8f8fb 100644 --- a/src/libsyntax/fold.rs +++ b/src/libsyntax/fold.rs @@ -225,7 +225,7 @@ pub trait Folder : Sized { noop_fold_ty_param(tp, self) } - fn fold_ty_params(&mut self, tps: P<[TyParam]>) -> P<[TyParam]> { + fn fold_ty_params(&mut self, tps: Vec<TyParam>) -> Vec<TyParam> { noop_fold_ty_params(tps, self) } @@ -674,8 +674,7 @@ pub fn noop_fold_ty_param<T: Folder>(tp: TyParam, fld: &mut T) -> TyParam { } } -pub fn noop_fold_ty_params<T: Folder>(tps: P<[TyParam]>, fld: &mut T) - -> P<[TyParam]> { +pub fn noop_fold_ty_params<T: Folder>(tps: Vec<TyParam>, fld: &mut T) -> Vec<TyParam> { tps.move_map(|tp| fld.fold_ty_param(tp)) } |
