1
Fork 0

Update some names and comments

This commit is contained in:
Michael Goulet 2023-03-17 03:45:14 +00:00
parent da7c50c089
commit 4fd66d70cb
7 changed files with 47 additions and 32 deletions

View file

@ -3068,7 +3068,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
// generate the def_id of an associated type for the trait and return as
// type a projection.
let def_id = if in_trait && tcx.lower_impl_trait_in_trait_to_assoc_ty() {
tcx.associated_item_for_impl_trait_in_trait(local_def_id).to_def_id()
tcx.associated_type_for_impl_trait_in_trait(local_def_id).to_def_id()
} else {
local_def_id.to_def_id()
};