diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-08-15 17:23:13 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-08-15 17:23:13 +0100 |
commit | 19c41a9152eff5fdb5d6f7000db16522e1cfad73 (patch) | |
tree | 3aad42f8befaf43435e2e485498d432ef1419390 /crates/hir_def | |
parent | f0ad68b96292bf6f8a1380b9af9cadc1c9b1a5f6 (diff) | |
parent | 2052d33b9b0e2254f53848501a9113aa12ddf4da (diff) |
Merge #5768
5768: Remove deprecated Path::from_ast
r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/hir_def')
-rw-r--r-- | crates/hir_def/src/path.rs | 6 |
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 | ||
155 | impl Path { | 155 | impl 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) |