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_passes | |
| parent | 0053b442f8cd5bf5e310a2664fc3a47a8f33da71 (diff) | |
| download | rust-8a704f6dc7f0ed6be1554867c2a95e4e322cc1bc.tar.gz rust-8a704f6dc7f0ed6be1554867c2a95e4e322cc1bc.zip | |
rustc: Remove the TyCtxt field from ParameterEnvironment.
Diffstat (limited to 'src/librustc_passes')
| -rw-r--r-- | src/librustc_passes/rvalues.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_passes/rvalues.rs b/src/librustc_passes/rvalues.rs index b8d63368726..061f5b95c3b 100644 --- a/src/librustc_passes/rvalues.rs +++ b/src/librustc_passes/rvalues.rs @@ -55,7 +55,7 @@ impl<'a, 'tcx, 'v> intravisit::Visitor<'v> for RvalueContext<'a, 'tcx> { struct RvalueContextDelegate<'a, 'tcx: 'a> { tcx: TyCtxt<'a, 'tcx, 'tcx>, - param_env: &'a ty::ParameterEnvironment<'a,'tcx>, + param_env: &'a ty::ParameterEnvironment<'tcx>, } impl<'a, 'tcx> euv::Delegate<'tcx> for RvalueContextDelegate<'a, 'tcx> { @@ -65,7 +65,7 @@ impl<'a, 'tcx> euv::Delegate<'tcx> for RvalueContextDelegate<'a, 'tcx> { cmt: mc::cmt<'tcx>, _: euv::ConsumeMode) { debug!("consume; cmt: {:?}; type: {:?}", *cmt, cmt.ty); - if !cmt.ty.is_sized(self.param_env, span) { + if !cmt.ty.is_sized(self.tcx, self.param_env, span) { span_err!(self.tcx.sess, span, E0161, "cannot move a value of type {0}: the size of {0} cannot be statically determined", cmt.ty); |
