Skip to content

Commit 2fe2488

Browse files
committed
rustc_trans: Fix indentation in trans_set_discr.
Just noticed this while reading through #46521, which introduced this weird alignment.
1 parent 02b4d3d commit 2fe2488

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/librustc_trans/mir/place.rs

+4-4
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)