Skip to content

Commit 830599b

Browse files
committed
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.
2 parents ea16814 + 2fe2488 commit 830599b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/librustc_trans/mir/place.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -359,10 +359,10 @@ impl<'a, 'tcx> PlaceRef<'tcx> {
359359
/// Set the discriminant for a new value of the given case of the given
360360
/// representation.
361361
pub fn trans_set_discr(&self, bcx: &Builder<'a, 'tcx>, variant_index: usize) {
362-
if self.layout.for_variant(bcx.ccx, variant_index).abi == layout::Abi::Uninhabited {
363-
return;
364-
}
365-
match self.layout.variants {
362+
if self.layout.for_variant(bcx.ccx, variant_index).abi == layout::Abi::Uninhabited {
363+
return;
364+
}
365+
match self.layout.variants {
366366
layout::Variants::Single { index } => {
367367
assert_eq!(index, variant_index);
368368
}

0 commit comments

Comments
 (0)