diff options
| author | Michael Goulet <michael@errs.io> | 2024-05-31 14:13:46 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-06-01 12:50:58 -0400 |
| commit | 333458c2cbafbea22480075decc4a827f913a020 (patch) | |
| tree | 56dcf040d2a1a1106ecaf689fa87141fea3f950f /src/tools/clippy/clippy_lints | |
| parent | ee47480f4cae83279d884d6bcc9e5e6ddf3334b8 (diff) | |
| download | rust-333458c2cbafbea22480075decc4a827f913a020.tar.gz rust-333458c2cbafbea22480075decc4a827f913a020.zip | |
Uplift TypeRelation and Relate
Diffstat (limited to 'src/tools/clippy/clippy_lints')
| -rw-r--r-- | src/tools/clippy/clippy_lints/src/eta_reduction.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/clippy/clippy_lints/src/eta_reduction.rs b/src/tools/clippy/clippy_lints/src/eta_reduction.rs index b58018ca035..48c4c4206fe 100644 --- a/src/tools/clippy/clippy_lints/src/eta_reduction.rs +++ b/src/tools/clippy/clippy_lints/src/eta_reduction.rs @@ -10,7 +10,7 @@ use rustc_infer::infer::TyCtxtInferExt; use rustc_lint::{LateContext, LateLintPass}; use rustc_middle::ty::{ self, Binder, ClosureArgs, ClosureKind, FnSig, GenericArg, GenericArgKind, List, Region, RegionKind, Ty, - TypeVisitableExt, TypeckResults, + TypeVisitableExt, TypeckResults, TyCtxt, }; use rustc_session::declare_lint_pass; use rustc_span::symbol::sym; @@ -240,7 +240,7 @@ fn check_inputs( }) } -fn check_sig<'tcx>(cx: &LateContext<'tcx>, closure: ClosureArgs<'tcx>, call_sig: FnSig<'_>) -> bool { +fn check_sig<'tcx>(cx: &LateContext<'tcx>, closure: ClosureArgs<TyCtxt<'tcx>>, call_sig: FnSig<'_>) -> bool { call_sig.safety == Safety::Safe && !has_late_bound_to_non_late_bound_regions( cx.tcx.signature_unclosure(closure.sig(), Safety::Safe).skip_binder(), |
