about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-07-22 16:11:08 -0400
committerMichael Goulet <michael@errs.io>2024-07-22 16:15:52 -0400
commite2a7000b6bd9244c8f6b30a5d83653f5445393ee (patch)
treed1cd4b8bded62b89ef5a74ebf31da2d1f7a0680e
parentefde1c065b1d25c6753471bceb95b6e17c7fe5f8 (diff)
downloadrust-e2a7000b6bd9244c8f6b30a5d83653f5445393ee.tar.gz
rust-e2a7000b6bd9244c8f6b30a5d83653f5445393ee.zip
Get rid of infer_ctxt_ext
-rw-r--r--clippy_lints/src/eta_reduction.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/eta_reduction.rs b/clippy_lints/src/eta_reduction.rs
index d2a34c75583..0ed7859418b 100644
--- a/clippy_lints/src/eta_reduction.rs
+++ b/clippy_lints/src/eta_reduction.rs
@@ -15,7 +15,7 @@ use rustc_middle::ty::{
 use rustc_session::declare_lint_pass;
 use rustc_span::symbol::sym;
 use rustc_target::spec::abi::Abi;
-use rustc_trait_selection::error_reporting::traits::InferCtxtExt as _;
+use rustc_trait_selection::error_reporting::InferCtxtErrorExt as _;
 
 declare_clippy_lint! {
     /// ### What it does
@@ -178,7 +178,7 @@ impl<'tcx> LateLintPass<'tcx> for EtaReduction {
                                 // 'cuz currently nothing changes after deleting this check.
                                 local_used_in(cx, l, args) || local_used_after_expr(cx, l, expr)
                             }) {
-                                match cx.tcx.infer_ctxt().build().type_implements_fn_trait(
+                                match cx.tcx.infer_ctxt().build().err_ctxt().type_implements_fn_trait(
                                     cx.param_env,
                                     Binder::bind_with_vars(callee_ty_adjusted, List::empty()),
                                     ty::PredicatePolarity::Positive,