review
This commit is contained in:
parent
9cba14b95b
commit
2e087d2eaa
5 changed files with 11 additions and 6 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue