diff options
author | Jonas Schievink <[email protected]> | 2021-02-04 19:49:24 +0000 |
---|---|---|
committer | Jonas Schievink <[email protected]> | 2021-02-04 19:49:24 +0000 |
commit | 5d99ba1d9a5acf02a5cd50e456f164bd80b523b5 (patch) | |
tree | 073b41689b789308030b4df4344c3aa147cba195 /crates/hir_def/src/item_tree | |
parent | 36191543a679d4e01c206d2e98a2d7ae170a25e2 (diff) |
Make `ModPath`'s representation private
Diffstat (limited to 'crates/hir_def/src/item_tree')
-rw-r--r-- | crates/hir_def/src/item_tree/lower.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/hir_def/src/item_tree/lower.rs b/crates/hir_def/src/item_tree/lower.rs index 93cdca55d..8f2f0b340 100644 --- a/crates/hir_def/src/item_tree/lower.rs +++ b/crates/hir_def/src/item_tree/lower.rs | |||
@@ -750,7 +750,8 @@ impl Ctx { | |||
750 | 750 | ||
751 | fn desugar_future_path(orig: TypeRef) -> Path { | 751 | fn desugar_future_path(orig: TypeRef) -> Path { |
752 | let path = path![core::future::Future]; | 752 | let path = path![core::future::Future]; |
753 | let mut generic_args: Vec<_> = std::iter::repeat(None).take(path.segments.len() - 1).collect(); | 753 | let mut generic_args: Vec<_> = |
754 | std::iter::repeat(None).take(path.segments().len() - 1).collect(); | ||
754 | let mut last = GenericArgs::empty(); | 755 | let mut last = GenericArgs::empty(); |
755 | let binding = | 756 | let binding = |
756 | AssociatedTypeBinding { name: name![Output], type_ref: Some(orig), bounds: Vec::new() }; | 757 | AssociatedTypeBinding { name: name![Output], type_ref: Some(orig), bounds: Vec::new() }; |