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/copies.rs | |
| parent | 62db617e401487f7b4b5d2d19591b16c7339d131 (diff) | |
| download | rust-5a20489c5ca0951827cbb1b4d72ddfdfd393713a.tar.gz rust-5a20489c5ca0951827cbb1b4d72ddfdfd393713a.zip | |
Rename TypeckTables to TypeckResults.
Diffstat (limited to 'clippy_lints/src/copies.rs')
| -rw-r--r-- | clippy_lints/src/copies.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/copies.rs b/clippy_lints/src/copies.rs index 1257032337a..1f8bff8d71e 100644 --- a/clippy_lints/src/copies.rs +++ b/clippy_lints/src/copies.rs @@ -320,7 +320,7 @@ fn bindings<'tcx>(cx: &LateContext<'tcx>, pat: &Pat<'_>) -> FxHashMap<Symbol, Ty }, PatKind::Binding(.., ident, ref as_pat) => { if let Entry::Vacant(v) = map.entry(ident.name) { - v.insert(cx.tables().pat_ty(pat)); + v.insert(cx.typeck_results().pat_ty(pat)); } if let Some(ref as_pat) = *as_pat { bindings_impl(cx, as_pat, map); |
