From 2fe24882a2fd4a45304a8ab09407303ce29dacc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sat, 9 Dec 2017 20:53:10 +0100 Subject: [PATCH] rustc_trans: Fix indentation in trans_set_discr. Just noticed this while reading through #46521, which introduced this weird alignment. --- src/librustc_trans/mir/place.rs | 8 ++++---- 1 file 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); }