From 778deb38fe7e1bac8833934224d26f44eb80a6cc Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Mon, 8 Mar 2021 14:59:54 +0200 Subject: Better strip turbofishes --- crates/hir_def/src/path.rs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'crates/hir_def') 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 { } impl ModPath { - pub fn from_src_unhygienic(path: ast::Path) -> Option { - lower::lower_path(path, &Hygiene::new_unhygienic()).map(|it| it.mod_path) - } - pub fn from_src(path: ast::Path, hygiene: &Hygiene) -> Option { lower::lower_path(path, hygiene).map(|it| it.mod_path) } -- cgit v1.2.3