diff options
| author | Takayuki Nakata <f.seasons017@gmail.com> | 2020-07-20 22:40:31 +0900 |
|---|---|---|
| committer | Takayuki Nakata <f.seasons017@gmail.com> | 2020-08-05 22:51:38 +0900 |
| commit | 2beb9090d1b9adb2b0930da511bf1750e570905b (patch) | |
| tree | c8d1d7ce4ab9d53d9c290faa496e285c8416b193 | |
| parent | 161f47510076d36722546c3541a546f9b724fadd (diff) | |
| download | rust-2beb9090d1b9adb2b0930da511bf1750e570905b.tar.gz rust-2beb9090d1b9adb2b0930da511bf1750e570905b.zip | |
Rename TypeckTables to TypeckResults
| -rw-r--r-- | clippy_lints/src/loops.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/loops.rs b/clippy_lints/src/loops.rs index 1c2f1225497..766c68df623 100644 --- a/clippy_lints/src/loops.rs +++ b/clippy_lints/src/loops.rs @@ -1079,7 +1079,7 @@ fn has_mutable_variables<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) -> &infcx, def_id.expect_local(), cx.param_env, - cx.tables(), + cx.typeck_results(), ).walk_expr(expr); }); @@ -1224,7 +1224,7 @@ fn get_vec_push<'tcx>(cx: &LateContext<'tcx>, stmt: &'tcx Stmt<'_>) -> Option<(& if let Some(self_expr) = args.get(0); if let Some(pushed_item) = args.get(1); // Check that the method being called is push() on a Vec - if match_type(cx, cx.tables().expr_ty(self_expr), &paths::VEC); + if match_type(cx, cx.typeck_results().expr_ty(self_expr), &paths::VEC); if path.ident.name.as_str() == "push"; then { return Some((self_expr, pushed_item)) |
