Skip to content

Commit a8fa1a1

Browse files
committed
a simple refactoring and removing comment.
1 parent 50af62d commit a8fa1a1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/librustc_mir/hair/pattern/_match.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -678,10 +678,9 @@ fn all_constructors<'a, 'tcx: 'a>(cx: &mut MatchCheckCtxt<'a, 'tcx>,
678678
]
679679
}
680680
ty::Int(ity) => {
681-
// FIXME(49937): refactor these bit manipulations into interpret.
682681
let bits = Integer::from_attr(&cx.tcx, SignedInt(ity)).size().bits() as u128;
683682
let min = 1u128 << (bits - 1);
684-
let max = (1u128 << (bits - 1)) - 1;
683+
let max = min - 1;
685684
vec![ConstantRange(min, max, pcx.ty, RangeEnd::Included)]
686685
}
687686
ty::Uint(uty) => {

0 commit comments

Comments
 (0)