about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/librustc_trans/mir/place.rs8
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);
             }