diff options
Diffstat (limited to 'crates/ra_hir_def/src/path.rs')
-rw-r--r-- | crates/ra_hir_def/src/path.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_hir_def/src/path.rs b/crates/ra_hir_def/src/path.rs index 1e2da6b48..3fb0955d1 100644 --- a/crates/ra_hir_def/src/path.rs +++ b/crates/ra_hir_def/src/path.rs | |||
@@ -82,7 +82,8 @@ impl ModPath { | |||
82 | 82 | ||
83 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 83 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
84 | pub struct Path { | 84 | pub struct Path { |
85 | /// Type based path like `<T>::foo` | 85 | /// Type based path like `<T>::foo`. |
86 | /// Note that paths like `<Type as Trait>::foo` are desugard to `Trait::<Self=Type>::foo`. | ||
86 | type_anchor: Option<Box<TypeRef>>, | 87 | type_anchor: Option<Box<TypeRef>>, |
87 | mod_path: ModPath, | 88 | mod_path: ModPath, |
88 | /// Invariant: the same len as self.path.segments | 89 | /// Invariant: the same len as self.path.segments |