mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +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
|
@ -989,6 +989,7 @@ impl MacroDef {
|
|||
if self.is_proc_macro() {
|
||||
return None;
|
||||
}
|
||||
#[allow(deprecated)]
|
||||
self.source_old(db).value.name().map(|it| it.as_name())
|
||||
}
|
||||
|
||||
|
@ -1378,6 +1379,7 @@ impl Impl {
|
|||
}
|
||||
|
||||
pub fn is_builtin_derive(self, db: &dyn HirDatabase) -> Option<InFile<ast::Attr>> {
|
||||
#[allow(deprecated)]
|
||||
let src = self.source_old(db);
|
||||
let item = src.file_id.is_builtin_derive(db.upcast())?;
|
||||
let hygenic = hir_expand::hygiene::Hygiene::new(db.upcast(), item.file_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue