Inline and remove cast_shift_rhs
.
It has a single call site.
This commit is contained in:
parent
03f350f5a5
commit
8c02f4d05d
1 changed files with 0 additions and 9 deletions
|
@ -340,15 +340,6 @@ pub fn cast_shift_expr_rhs<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
|
|||
op: hir::BinOpKind,
|
||||
lhs: Bx::Value,
|
||||
rhs: Bx::Value,
|
||||
) -> Bx::Value {
|
||||
cast_shift_rhs(bx, op, lhs, rhs)
|
||||
}
|
||||
|
||||
fn cast_shift_rhs<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
|
||||
bx: &mut Bx,
|
||||
op: hir::BinOpKind,
|
||||
lhs: Bx::Value,
|
||||
rhs: Bx::Value,
|
||||
) -> Bx::Value {
|
||||
// Shifts may have any size int on the rhs
|
||||
if op.is_shift() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue