Skip to content

Commit 5f426d4

Browse files
committed
Rename TypeckTables to TypeckResults
1 parent 1a5b432 commit 5f426d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/loops.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,7 @@ fn has_mutable_variables<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) ->
10801080
&infcx,
10811081
def_id.expect_local(),
10821082
cx.param_env,
1083-
cx.tables(),
1083+
cx.typeck_results(),
10841084
).walk_expr(expr);
10851085
});
10861086

@@ -1225,7 +1225,7 @@ fn get_vec_push<'tcx>(cx: &LateContext<'tcx>, stmt: &'tcx Stmt<'_>) -> Option<(&
12251225
if let Some(self_expr) = args.get(0);
12261226
if let Some(pushed_item) = args.get(1);
12271227
// Check that the method being called is push() on a Vec
1228-
if match_type(cx, cx.tables().expr_ty(self_expr), &paths::VEC);
1228+
if match_type(cx, cx.typeck_results().expr_ty(self_expr), &paths::VEC);
12291229
if path.ident.name.as_str() == "push";
12301230
then {
12311231
return Some((self_expr, pushed_item))

0 commit comments

Comments
 (0)