the Const::eval_bits methods don't need to be given the Ty
This commit is contained in:
parent
0692db1a90
commit
a2374e65aa
13 changed files with 35 additions and 48 deletions
|
@ -554,7 +554,7 @@ impl<'tcx> Validator<'_, 'tcx> {
|
|||
// Integer division: the RHS must be a non-zero const.
|
||||
let const_val = match rhs {
|
||||
Operand::Constant(c) => {
|
||||
c.literal.try_eval_bits(self.tcx, self.param_env, lhs_ty)
|
||||
c.literal.try_eval_bits(self.tcx, self.param_env)
|
||||
}
|
||||
_ => None,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue