mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
Mark HasSource::source_old as deprecated but allow at all call sites
This commit is contained in:
parent
2de2b1eca3
commit
ea4708c444
15 changed files with 35 additions and 4 deletions
|
@ -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>>;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue