Remove ty::Binder::bind()

Co-authored-by: Noah Lev <camelidcamel@gmail.com>
This commit is contained in:
Yuki Okushi 2021-07-02 18:48:34 +09:00
parent e28a93365a
commit 884053a4b4
No known key found for this signature in database
GPG key ID: DABA5B072961C18A
10 changed files with 26 additions and 122 deletions

View file

@ -1301,7 +1301,7 @@ fn confirm_pointee_candidate<'cx, 'tcx>(
ty: self_ty.ptr_metadata_ty(tcx),
};
confirm_param_env_candidate(selcx, obligation, ty::Binder::bind(predicate, tcx), false)
confirm_param_env_candidate(selcx, obligation, ty::Binder::dummy(predicate), false)
}
fn confirm_fn_pointer_candidate<'cx, 'tcx>(