1
Fork 0
This commit is contained in:
lcnr 2024-11-18 10:50:14 +01:00
parent 9cba14b95b
commit 2e087d2eaa
5 changed files with 11 additions and 6 deletions

View file

@ -227,6 +227,8 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
if range.start <= range.end { BinOp::BitAnd } else { BinOp::BitOr };
let mut comparer = |range: u128, bin_op: BinOp| -> Place<'tcx> {
// We can use `ty::TypingEnv::fully_monomorphized()`` here
// as we only need it to compute the layout of a primitive.
let range_val = Const::from_bits(
this.tcx,
range,