diff options
Diffstat (limited to 'crates/ra_hir/src/expr')
-rw-r--r-- | crates/ra_hir/src/expr/lower.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/ra_hir/src/expr/lower.rs b/crates/ra_hir/src/expr/lower.rs index ad029b868..575d78198 100644 --- a/crates/ra_hir/src/expr/lower.rs +++ b/crates/ra_hir/src/expr/lower.rs | |||
@@ -1,6 +1,7 @@ | |||
1 | //! FIXME: write short doc here | 1 | //! FIXME: write short doc here |
2 | 2 | ||
3 | use hir_def::{ | 3 | use hir_def::{ |
4 | hygiene::Hygiene, | ||
4 | name::{self, AsName, Name}, | 5 | name::{self, AsName, Name}, |
5 | path::GenericArgs, | 6 | path::GenericArgs, |
6 | type_ref::TypeRef, | 7 | type_ref::TypeRef, |
@@ -597,7 +598,8 @@ where | |||
597 | } | 598 | } |
598 | 599 | ||
599 | fn parse_path(&mut self, path: ast::Path) -> Option<Path> { | 600 | fn parse_path(&mut self, path: ast::Path) -> Option<Path> { |
600 | Path::from_src(Source { ast: path, file_id: self.current_file_id }, self.db) | 601 | let hygiene = Hygiene::new(self.db, self.current_file_id); |
602 | Path::from_src(path, &hygiene) | ||
601 | } | 603 | } |
602 | } | 604 | } |
603 | 605 | ||