about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2023-09-19 17:44:31 +0200
committerRalf Jung <post@ralfj.de>2023-09-20 07:27:21 +0200
commita2374e65aafd47fa68a3954fa2a3116c519aa7e5 (patch)
tree732cea4ab848da9a655e87a45d7aa7fd81181eb0 /compiler/rustc_const_eval/src
parent0692db1a9082380e027f354912229dfd6af37e78 (diff)
downloadrust-a2374e65aafd47fa68a3954fa2a3116c519aa7e5.tar.gz
rust-a2374e65aafd47fa68a3954fa2a3116c519aa7e5.zip
the Const::eval_bits methods don't need to be given the Ty
Diffstat (limited to 'compiler/rustc_const_eval/src')
-rw-r--r--compiler/rustc_const_eval/src/transform/promote_consts.rs2
1 files changed, 1 insertions, 1 deletions
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,
                             };