diff options
| author | Eduard Burtescu <edy.burt@gmail.com> | 2016-03-25 05:22:52 +0200 |
|---|---|---|
| committer | Eduard Burtescu <edy.burt@gmail.com> | 2016-05-11 04:14:58 +0300 |
| commit | 8a704f6dc7f0ed6be1554867c2a95e4e322cc1bc (patch) | |
| tree | eb21eda37a9bbad1371ce0c169ccca7f1b730713 /src/librustc/ty/structural_impls.rs | |
| parent | 0053b442f8cd5bf5e310a2664fc3a47a8f33da71 (diff) | |
| download | rust-8a704f6dc7f0ed6be1554867c2a95e4e322cc1bc.tar.gz rust-8a704f6dc7f0ed6be1554867c2a95e4e322cc1bc.zip | |
rustc: Remove the TyCtxt field from ParameterEnvironment.
Diffstat (limited to 'src/librustc/ty/structural_impls.rs')
| -rw-r--r-- | src/librustc/ty/structural_impls.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/librustc/ty/structural_impls.rs b/src/librustc/ty/structural_impls.rs index e715732ceb2..811b9238729 100644 --- a/src/librustc/ty/structural_impls.rs +++ b/src/librustc/ty/structural_impls.rs @@ -758,10 +758,9 @@ impl<'tcx> TypeFoldable<'tcx> for ty::ClosureUpvar<'tcx> { } } -impl<'a, 'tcx> TypeFoldable<'tcx> for ty::ParameterEnvironment<'a, 'tcx> where 'tcx: 'a { +impl<'tcx> TypeFoldable<'tcx> for ty::ParameterEnvironment<'tcx> { fn super_fold_with<F:TypeFolder<'tcx>>(&self, folder: &mut F) -> Self { ty::ParameterEnvironment { - tcx: self.tcx, free_substs: self.free_substs.fold_with(folder), implicit_region_bound: self.implicit_region_bound.fold_with(folder), caller_bounds: self.caller_bounds.fold_with(folder), |
