diff options
author | Lukas Wirth <[email protected]> | 2021-03-29 16:46:33 +0100 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2021-03-29 16:47:47 +0100 |
commit | c2a63b97a80cb738f800da61c64e748994709c31 (patch) | |
tree | b1287d238b2d93fc3be1b1772ba860d67e716ebc /crates/hir_def/src/item_tree | |
parent | bb6e1bf811bce09fdab115a4257e47cc0d5ddc82 (diff) |
Rename target_ty to self_ty
Diffstat (limited to 'crates/hir_def/src/item_tree')
-rw-r--r-- | crates/hir_def/src/item_tree/lower.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir_def/src/item_tree/lower.rs b/crates/hir_def/src/item_tree/lower.rs index 34af5c8d4..4b2af564e 100644 --- a/crates/hir_def/src/item_tree/lower.rs +++ b/crates/hir_def/src/item_tree/lower.rs | |||
@@ -537,7 +537,7 @@ impl Ctx { | |||
537 | let generic_params = | 537 | let generic_params = |
538 | self.lower_generic_params_and_inner_items(GenericsOwner::Impl, impl_def); | 538 | self.lower_generic_params_and_inner_items(GenericsOwner::Impl, impl_def); |
539 | let target_trait = impl_def.trait_().map(|tr| self.lower_trait_ref(&tr)); | 539 | let target_trait = impl_def.trait_().map(|tr| self.lower_trait_ref(&tr)); |
540 | let target_type = self.lower_type_ref(&impl_def.self_ty()?); | 540 | let self_ty = self.lower_type_ref(&impl_def.self_ty()?); |
541 | let is_negative = impl_def.excl_token().is_some(); | 541 | let is_negative = impl_def.excl_token().is_some(); |
542 | 542 | ||
543 | // We cannot use `assoc_items()` here as that does not include macro calls. | 543 | // We cannot use `assoc_items()` here as that does not include macro calls. |
@@ -554,7 +554,7 @@ impl Ctx { | |||
554 | }) | 554 | }) |
555 | .collect(); | 555 | .collect(); |
556 | let ast_id = self.source_ast_id_map.ast_id(impl_def); | 556 | let ast_id = self.source_ast_id_map.ast_id(impl_def); |
557 | let res = Impl { generic_params, target_trait, target_type, is_negative, items, ast_id }; | 557 | let res = Impl { generic_params, target_trait, self_ty, is_negative, items, ast_id }; |
558 | Some(id(self.data().impls.alloc(res))) | 558 | Some(id(self.data().impls.alloc(res))) |
559 | } | 559 | } |
560 | 560 | ||