Skip to content

Commit 2beb909

Browse files
committed
Rename TypeckTables to TypeckResults
1 parent 161f475 commit 2beb909

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
@@ -1079,7 +1079,7 @@ fn has_mutable_variables<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) ->
10791079
&infcx,
10801080
def_id.expect_local(),
10811081
cx.param_env,
1082-
cx.tables(),
1082+
cx.typeck_results(),
10831083
).walk_expr(expr);
10841084
});
10851085

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

0 commit comments

Comments
 (0)