diff options
author | Aleksey Kladov <[email protected]> | 2019-10-30 15:41:50 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-10-30 15:41:50 +0000 |
commit | 0bc7d285189caaffc13e4d6856baf895f72ed80c (patch) | |
tree | 792693f3b35d2a23107ee5a1e4bbb13bc2806c41 /crates/ra_hir/src/expr | |
parent | e34e71c62d9b4cf0ab237969e03ecde893ab347b (diff) |
refactor $crate handling
Introduce proper hygiene module, which should grow quite a bit
eventually.
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 | ||