diff options
| author | Bernardo Meurer <meurerbernardo@gmail.com> | 2018-08-23 09:26:37 -0700 |
|---|---|---|
| committer | Bernardo Meurer <meurerbernardo@gmail.com> | 2018-08-23 09:26:37 -0700 |
| commit | 6ca038475537d8a58d793e4312274332065e3c9a (patch) | |
| tree | 323d55e16cc03d9edb56aa6b745623f3f978ec11 | |
| parent | 67a8666ac8e053981f9de854a96841003f36ced3 (diff) | |
| download | rust-6ca038475537d8a58d793e4312274332065e3c9a.tar.gz rust-6ca038475537d8a58d793e4312274332065e3c9a.zip | |
Small style fixes
| -rw-r--r-- | src/librustc_mir/interpret/cast.rs | 2 | ||||
| -rw-r--r-- | src/librustc_mir/interpret/eval_context.rs | 2 | ||||
| -rw-r--r-- | src/librustc_mir/interpret/memory.rs | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/librustc_mir/interpret/cast.rs b/src/librustc_mir/interpret/cast.rs index 373da1d04ff..4522f477959 100644 --- a/src/librustc_mir/interpret/cast.rs +++ b/src/librustc_mir/interpret/cast.rs @@ -245,7 +245,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M> { bits: u128, fty: FloatTy, dest_ty: Ty<'tcx> - ) -> EvalResult<'tcx, Scalar> { + ) -> EvalResult<'tcx, Scalar> { use rustc::ty::TyKind::*; use rustc_apfloat::FloatConvert; match dest_ty.sty { diff --git a/src/librustc_mir/interpret/eval_context.rs b/src/librustc_mir/interpret/eval_context.rs index 29c1e32c479..85942956d2e 100644 --- a/src/librustc_mir/interpret/eval_context.rs +++ b/src/librustc_mir/interpret/eval_context.rs @@ -281,7 +281,7 @@ impl<'c, 'b, 'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> HasDataLayout } impl<'a, 'mir, 'tcx, M> layout::HasTyCtxt<'tcx> for &'a EvalContext<'a, 'mir, 'tcx, M> -where M: Machine<'mir, 'tcx> + where M: Machine<'mir, 'tcx> { #[inline] fn tcx<'b>(&'b self) -> TyCtxt<'b, 'tcx, 'tcx> { diff --git a/src/librustc_mir/interpret/memory.rs b/src/librustc_mir/interpret/memory.rs index 557b1509c69..0d0b7bac87b 100644 --- a/src/librustc_mir/interpret/memory.rs +++ b/src/librustc_mir/interpret/memory.rs @@ -1027,7 +1027,7 @@ pub trait HasMemory<'a, 'mir, 'tcx: 'a + 'mir, M: Machine<'mir, 'tcx>> { } impl<'a, 'mir, 'tcx, M> HasMemory<'a, 'mir, 'tcx, M> for Memory<'a, 'mir, 'tcx, M> -where M: Machine<'mir, 'tcx> + where M: Machine<'mir, 'tcx> { #[inline] fn memory_mut(&mut self) -> &mut Memory<'a, 'mir, 'tcx, M> { @@ -1041,7 +1041,7 @@ where M: Machine<'mir, 'tcx> } impl<'a, 'mir, 'tcx, M> HasMemory<'a, 'mir, 'tcx, M> for EvalContext<'a, 'mir, 'tcx, M> -where M: Machine<'mir, 'tcx> + where M: Machine<'mir, 'tcx> { #[inline] fn memory_mut(&mut self) -> &mut Memory<'a, 'mir, 'tcx, M> { @@ -1055,7 +1055,7 @@ where M: Machine<'mir, 'tcx> } impl<'a, 'mir, 'tcx, M> layout::HasDataLayout for &'a Memory<'a, 'mir, 'tcx, M> -where M: Machine<'mir, 'tcx> + where M: Machine<'mir, 'tcx> { #[inline] fn data_layout(&self) -> &TargetDataLayout { |
