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/try_err.rs | |
| parent | 62db617e401487f7b4b5d2d19591b16c7339d131 (diff) | |
Rename TypeckTables to TypeckResults.
Diffstat (limited to 'clippy_lints/src/try_err.rs')
| -rw-r--r-- | clippy_lints/src/try_err.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/try_err.rs b/clippy_lints/src/try_err.rs index 208d248faa5..d3b351f30ef 100644 --- a/clippy_lints/src/try_err.rs +++ b/clippy_lints/src/try_err.rs @@ -68,7 +68,7 @@ impl<'tcx> LateLintPass<'tcx> for TryErr { if let Some(return_type) = find_err_return_type(cx, &expr.kind); then { - let err_type = cx.tables().expr_ty(err_arg); + let err_type = cx.typeck_results().expr_ty(err_arg); let origin_snippet = if err_arg.span.from_expansion() { snippet_with_macro_callsite(cx, err_arg.span, "_") } else { @@ -114,7 +114,7 @@ fn find_err_return_type_arm<'tcx>(cx: &LateContext<'tcx>, arm: &'tcx Arm<'_>) -> if match_qpath(from_error_fn, &paths::TRY_FROM_ERROR); if let Some(from_error_arg) = from_error_args.get(0); then { - Some(cx.tables().expr_ty(from_error_arg)) + Some(cx.typeck_results().expr_ty(from_error_arg)) } else { None } |
