Mark HasSource::source_old as deprecated but allow at all call sites

This commit is contained in:
Nick Spain 2021-01-01 13:50:50 +11:00
parent 2de2b1eca3
commit ea4708c444
15 changed files with 35 additions and 4 deletions

View file

@ -16,6 +16,7 @@ use crate::{
pub trait HasSource {
type Ast;
#[deprecated = "migrating to source() method that returns an Option"]
fn source_old(self, db: &dyn HirDatabase) -> InFile<Self::Ast>;
fn source(self, db: &dyn HirDatabase) -> Option<InFile<Self::Ast>>;
}