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/mem_replace.rs | |
| parent | 62db617e401487f7b4b5d2d19591b16c7339d131 (diff) | |
Rename TypeckTables to TypeckResults.
Diffstat (limited to 'clippy_lints/src/mem_replace.rs')
| -rw-r--r-- | clippy_lints/src/mem_replace.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/mem_replace.rs b/clippy_lints/src/mem_replace.rs index 25f332cdcc2..bb0acecc5a9 100644 --- a/clippy_lints/src/mem_replace.rs +++ b/clippy_lints/src/mem_replace.rs @@ -138,7 +138,7 @@ fn check_replace_option_with_none(cx: &LateContext<'_>, src: &Expr<'_>, dest: &E fn check_replace_with_uninit(cx: &LateContext<'_>, src: &Expr<'_>, dest: &Expr<'_>, expr_span: Span) { if_chain! { // check if replacement is mem::MaybeUninit::uninit().assume_init() - if let Some(method_def_id) = cx.tables().type_dependent_def_id(src.hir_id); + if let Some(method_def_id) = cx.typeck_results().type_dependent_def_id(src.hir_id); if cx.tcx.is_diagnostic_item(sym::assume_init, method_def_id); then { let mut applicability = Applicability::MachineApplicable; @@ -179,7 +179,7 @@ fn check_replace_with_uninit(cx: &LateContext<'_>, src: &Expr<'_>, dest: &Expr<' applicability, ); } else if cx.tcx.is_diagnostic_item(sym::mem_zeroed, repl_def_id) && - !cx.tables().expr_ty(src).is_primitive() { + !cx.typeck_results().expr_ty(src).is_primitive() { span_lint_and_help( cx, MEM_REPLACE_WITH_UNINIT, |
