diff options
| author | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-12-09 20:53:10 +0100 |
|---|---|---|
| committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-12-10 19:58:17 +0100 |
| commit | 2fe24882a2fd4a45304a8ab09407303ce29dacc1 (patch) | |
| tree | 7f943b4b7da70dac4d842aa029ec662c1a22d664 | |
| parent | 02b4d3ddfb7cd9f1caf8ed90f18f8e798a1f4b05 (diff) | |
rustc_trans: Fix indentation in trans_set_discr.
Just noticed this while reading through #46521, which introduced this weird alignment.
| -rw-r--r-- | src/librustc_trans/mir/place.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/librustc_trans/mir/place.rs b/src/librustc_trans/mir/place.rs index 47d0e6f4ecf..806aca54dc0 100644 --- a/src/librustc_trans/mir/place.rs +++ b/src/librustc_trans/mir/place.rs @@ -359,10 +359,10 @@ impl<'a, 'tcx> PlaceRef<'tcx> { /// Set the discriminant for a new value of the given case of the given /// representation. pub fn trans_set_discr(&self, bcx: &Builder<'a, 'tcx>, variant_index: usize) { - if self.layout.for_variant(bcx.ccx, variant_index).abi == layout::Abi::Uninhabited { - return; - } - match self.layout.variants { + if self.layout.for_variant(bcx.ccx, variant_index).abi == layout::Abi::Uninhabited { + return; + } + match self.layout.variants { layout::Variants::Single { index } => { assert_eq!(index, variant_index); } |
