aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-08-15 17:22:16 +0100
committerAleksey Kladov <[email protected]>2020-08-15 17:22:16 +0100
commit2052d33b9b0e2254f53848501a9113aa12ddf4da (patch)
tree3aad42f8befaf43435e2e485498d432ef1419390 /crates/hir_def
parentf0ad68b96292bf6f8a1380b9af9cadc1c9b1a5f6 (diff)
Remove deprecated Path::from_ast
Long term, we probably should make hir::Path private to hir.
Diffstat (limited to 'crates/hir_def')
-rw-r--r--crates/hir_def/src/path.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/crates/hir_def/src/path.rs b/crates/hir_def/src/path.rs
index 74d26f08b..99395667d 100644
--- a/crates/hir_def/src/path.rs
+++ b/crates/hir_def/src/path.rs
@@ -154,12 +154,6 @@ pub enum GenericArg {
154 154
155impl Path { 155impl Path {
156 /// Converts an `ast::Path` to `Path`. Works with use trees. 156 /// Converts an `ast::Path` to `Path`. Works with use trees.
157 #[deprecated = "Doesn't handle hygiene, don't add new calls, remove old ones"]
158 pub fn from_ast(path: ast::Path) -> Option<Path> {
159 lower::lower_path(path, &Hygiene::new_unhygienic())
160 }
161
162 /// Converts an `ast::Path` to `Path`. Works with use trees.
163 /// It correctly handles `$crate` based path from macro call. 157 /// It correctly handles `$crate` based path from macro call.
164 pub fn from_src(path: ast::Path, hygiene: &Hygiene) -> Option<Path> { 158 pub fn from_src(path: ast::Path, hygiene: &Hygiene) -> Option<Path> {
165 lower::lower_path(path, hygiene) 159 lower::lower_path(path, hygiene)