diff options
author | Nick Spain <[email protected]> | 2021-01-01 02:50:50 +0000 |
---|---|---|
committer | Nick Spain <[email protected]> | 2021-01-02 10:53:51 +0000 |
commit | ea4708c444509449b86c50b7b1b23f9ff5af4e97 (patch) | |
tree | 2c5c5c17589f0457ba9e63b4370eb9c6951b1d87 /crates/hir/src/has_source.rs | |
parent | 2de2b1eca3c3a3a74c0374f4de0b0c3ff25e66a9 (diff) |
Mark HasSource::source_old as deprecated but allow at all call sites
Diffstat (limited to 'crates/hir/src/has_source.rs')
-rw-r--r-- | crates/hir/src/has_source.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/hir/src/has_source.rs b/crates/hir/src/has_source.rs index 84fbeca75..8a7306def 100644 --- a/crates/hir/src/has_source.rs +++ b/crates/hir/src/has_source.rs | |||
@@ -16,6 +16,7 @@ use crate::{ | |||
16 | 16 | ||
17 | pub trait HasSource { | 17 | pub trait HasSource { |
18 | type Ast; | 18 | type Ast; |
19 | #[deprecated = "migrating to source() method that returns an Option"] | ||
19 | fn source_old(self, db: &dyn HirDatabase) -> InFile<Self::Ast>; | 20 | fn source_old(self, db: &dyn HirDatabase) -> InFile<Self::Ast>; |
20 | fn source(self, db: &dyn HirDatabase) -> Option<InFile<Self::Ast>>; | 21 | fn source(self, db: &dyn HirDatabase) -> Option<InFile<Self::Ast>>; |
21 | } | 22 | } |