From 52a220cece729acb2f6c6fd40bda3964846eb7d2 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 15 Jun 2020 10:49:40 +0200 Subject: Deprecate hir::Path::from_ast --- crates/ra_hir_def/src/path.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_hir_def/src') diff --git a/crates/ra_hir_def/src/path.rs b/crates/ra_hir_def/src/path.rs index ba16442bd..190d6d98d 100644 --- a/crates/ra_hir_def/src/path.rs +++ b/crates/ra_hir_def/src/path.rs @@ -154,7 +154,7 @@ pub enum GenericArg { impl Path { /// Converts an `ast::Path` to `Path`. Works with use trees. - /// DEPRECATED: It does not handle `$crate` from macro call. + #[deprecated = "Doesn't handle hygiene, don't add new calls, remove old ones"] pub fn from_ast(path: ast::Path) -> Option { lower::lower_path(path, &Hygiene::new_unhygienic()) } -- cgit v1.2.3