diff options
| author | Valentin Lazureanu <valentin@lazureanu.com> | 2020-07-17 08:47:04 +0000 |
|---|---|---|
| committer | Valentin Lazureanu <valentin@lazureanu.com> | 2020-07-17 08:47:04 +0000 |
| commit | 5a20489c5ca0951827cbb1b4d72ddfdfd393713a (patch) | |
| tree | 263af6d529b7113ed43b0ce3a4393ca65aa10bd5 /clippy_lints/src/modulo_arithmetic.rs | |
| parent | 62db617e401487f7b4b5d2d19591b16c7339d131 (diff) | |
Rename TypeckTables to TypeckResults.
Diffstat (limited to 'clippy_lints/src/modulo_arithmetic.rs')
| -rw-r--r-- | clippy_lints/src/modulo_arithmetic.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clippy_lints/src/modulo_arithmetic.rs b/clippy_lints/src/modulo_arithmetic.rs index 59ccc6333fd..5d4436bd206 100644 --- a/clippy_lints/src/modulo_arithmetic.rs +++ b/clippy_lints/src/modulo_arithmetic.rs @@ -37,8 +37,8 @@ struct OperandInfo { } fn analyze_operand(operand: &Expr<'_>, cx: &LateContext<'_>, expr: &Expr<'_>) -> Option<OperandInfo> { - match constant(cx, cx.tables(), operand) { - Some((Constant::Int(v), _)) => match cx.tables().expr_ty(expr).kind { + match constant(cx, cx.typeck_results(), operand) { + Some((Constant::Int(v), _)) => match cx.typeck_results().expr_ty(expr).kind { ty::Int(ity) => { let value = sext(cx.tcx, v, ity); return Some(OperandInfo { @@ -106,7 +106,7 @@ fn check_const_operands<'tcx>( } fn check_non_const_operands<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>, operand: &Expr<'_>) { - let operand_type = cx.tables().expr_ty(operand); + let operand_type = cx.typeck_results().expr_ty(operand); if might_have_negative_value(operand_type) { span_lint_and_then( cx, |
