mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
source_old -> source for cases that can be handled by simple bubbling
This commit is contained in:
parent
562e2ee28a
commit
c936e4b86f
5 changed files with 10 additions and 13 deletions
|
@ -1372,8 +1372,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 src = self.source(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