diff options
author | Kirill Bulatov <[email protected]> | 2021-03-08 12:59:54 +0000 |
---|---|---|
committer | Kirill Bulatov <[email protected]> | 2021-03-08 21:59:39 +0000 |
commit | 778deb38fe7e1bac8833934224d26f44eb80a6cc (patch) | |
tree | 978ef918e70a41ef818ba12efb3e63b1e6abe2ae /crates/hir_def/src | |
parent | 5168ab16e14679e16a472c0ab13b1bbc32dc95f3 (diff) |
Better strip turbofishes
Diffstat (limited to 'crates/hir_def/src')
-rw-r--r-- | crates/hir_def/src/path.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/crates/hir_def/src/path.rs b/crates/hir_def/src/path.rs index 1dc085199..0e60dc2b6 100644 --- a/crates/hir_def/src/path.rs +++ b/crates/hir_def/src/path.rs | |||
@@ -44,10 +44,6 @@ pub enum ImportAlias { | |||
44 | } | 44 | } |
45 | 45 | ||
46 | impl ModPath { | 46 | impl ModPath { |
47 | pub fn from_src_unhygienic(path: ast::Path) -> Option<ModPath> { | ||
48 | lower::lower_path(path, &Hygiene::new_unhygienic()).map(|it| it.mod_path) | ||
49 | } | ||
50 | |||
51 | pub fn from_src(path: ast::Path, hygiene: &Hygiene) -> Option<ModPath> { | 47 | pub fn from_src(path: ast::Path, hygiene: &Hygiene) -> Option<ModPath> { |
52 | lower::lower_path(path, hygiene).map(|it| it.mod_path) | 48 | lower::lower_path(path, hygiene).map(|it| it.mod_path) |
53 | } | 49 | } |