diff options
| author | bors <bors@rust-lang.org> | 2017-12-11 02:04:56 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-12-11 02:04:56 +0000 |
| commit | 830599b19538a4b30f0c4203d9e5f4e6b5cee0ff (patch) | |
| tree | 8e9a4b0d6b2c7a870fb0edc4f7493727161c026f | |
| parent | ea16814761decb00a5337286664124aa0faa6290 (diff) | |
| parent | 2fe24882a2fd4a45304a8ab09407303ce29dacc1 (diff) | |
| download | rust-830599b19538a4b30f0c4203d9e5f4e6b5cee0ff.tar.gz rust-830599b19538a4b30f0c4203d9e5f4e6b5cee0ff.zip | |
Auto merge of #46624 - emilio:nit, r=kennytm
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); } |
