diff options
| author | Kyle Matsuda <kyle.yoshio.matsuda@gmail.com> | 2023-02-20 12:46:39 -0700 |
|---|---|---|
| committer | Kyle Matsuda <kyle.yoshio.matsuda@gmail.com> | 2023-05-06 22:32:39 -0600 |
| commit | 39db64e0ab60dfaa5e510075d5bd6ea8362e6cf2 (patch) | |
| tree | 01516c96260553dda8307eab846e72a3e3776e70 | |
| parent | 0b7acaa2910f71c9397013e55ced8a0550afd8a6 (diff) | |
| download | rust-39db64e0ab60dfaa5e510075d5bd6ea8362e6cf2.tar.gz rust-39db64e0ab60dfaa5e510075d5bd6ea8362e6cf2.zip | |
make (try_)subst_and_normalize_erasing_regions take EarlyBinder
| -rw-r--r-- | clippy_lints/src/methods/unnecessary_to_owned.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/methods/unnecessary_to_owned.rs b/clippy_lints/src/methods/unnecessary_to_owned.rs index 4c4c003ca46..87641c686dc 100644 --- a/clippy_lints/src/methods/unnecessary_to_owned.rs +++ b/clippy_lints/src/methods/unnecessary_to_owned.rs @@ -435,7 +435,7 @@ fn can_change_type<'a>(cx: &LateContext<'a>, mut expr: &'a Expr<'a>, mut ty: Ty< let output_ty = fn_sig.output(); if output_ty.contains(*param_ty) { if let Ok(new_ty) = cx.tcx.try_subst_and_normalize_erasing_regions( - new_subst, cx.param_env, output_ty) { + new_subst, cx.param_env, EarlyBinder(output_ty)) { expr = parent_expr; ty = new_ty; continue; |
