From a2374e65aafd47fa68a3954fa2a3116c519aa7e5 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Tue, 19 Sep 2023 17:44:31 +0200 Subject: the Const::eval_bits methods don't need to be given the Ty --- compiler/rustc_const_eval/src/transform/promote_consts.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_const_eval') diff --git a/compiler/rustc_const_eval/src/transform/promote_consts.rs b/compiler/rustc_const_eval/src/transform/promote_consts.rs index d79c65f1d1f..d346fd72160 100644 --- a/compiler/rustc_const_eval/src/transform/promote_consts.rs +++ b/compiler/rustc_const_eval/src/transform/promote_consts.rs @@ -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, }; -- cgit 1.4.1-3-g733a5