1
Fork 0

Rename fn_trait_kind_from_{from_lang=>def_id} to better convey meaning

This commit is contained in:
Maybe Waffle 2022-11-22 18:12:12 +00:00
parent 0e9eee6811
commit 881862ecb7
11 changed files with 14 additions and 14 deletions

View file

@ -209,7 +209,7 @@ fn resolve_associated_item<'tcx>(
substs: future_data.substs,
}),
traits::ImplSource::Closure(closure_data) => {
let trait_closure_kind = tcx.fn_trait_kind_from_lang_item(trait_id).unwrap();
let trait_closure_kind = tcx.fn_trait_kind_from_def_id(trait_id).unwrap();
Instance::resolve_closure(
tcx,
closure_data.closure_def_id,