diff options
| author | Michael Goulet <michael@errs.io> | 2024-05-26 20:03:47 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-05-26 20:04:05 -0400 |
| commit | bbcdb4fd3e4df3554e6d406a2f2e9e47114521f6 (patch) | |
| tree | 4c6258665a4b80409bea6c8582e0a8fad6cee202 /compiler/rustc_trait_selection/src | |
| parent | bdbbb6c6a718d4d196131aa16bafb60e850311d9 (diff) | |
| download | rust-bbcdb4fd3e4df3554e6d406a2f2e9e47114521f6.tar.gz rust-bbcdb4fd3e4df3554e6d406a2f2e9e47114521f6.zip | |
Give EarlyBinder a tcx parameter
We are gonna need it to uplift EarlyBinder
Diffstat (limited to 'compiler/rustc_trait_selection/src')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/project.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/project.rs b/compiler/rustc_trait_selection/src/traits/project.rs index 77ac4be35ea..87c8b1cda50 100644 --- a/compiler/rustc_trait_selection/src/traits/project.rs +++ b/compiler/rustc_trait_selection/src/traits/project.rs @@ -2097,7 +2097,7 @@ fn confirm_impl_candidate<'cx, 'tcx>( let args = translate_args(selcx.infcx, param_env, impl_def_id, args, assoc_ty.defining_node); let ty = tcx.type_of(assoc_ty.item.def_id); let is_const = matches!(tcx.def_kind(assoc_ty.item.def_id), DefKind::AssocConst); - let term: ty::EarlyBinder<ty::Term<'tcx>> = if is_const { + let term: ty::EarlyBinder<'tcx, ty::Term<'tcx>> = if is_const { let did = assoc_ty.item.def_id; let identity_args = crate::traits::GenericArgs::identity_for_item(tcx, did); let uv = ty::UnevaluatedConst::new(did, identity_args); |
