aboutsummaryrefslogtreecommitdiff
path: root/crates/hir/src
diff options
context:
space:
mode:
authorNick Spain <[email protected]>2021-01-01 04:02:39 +0000
committerNick Spain <[email protected]>2021-01-02 10:53:52 +0000
commitc936e4b86fd5de8e9709cd01547a69054cdec91b (patch)
treeda2e5ac682091deafecc9177b6bfa8e008541bc3 /crates/hir/src
parent562e2ee28a4397878accfde014d68ab17d1b504a (diff)
source_old -> source for cases that can be handled by simple bubbling
Diffstat (limited to 'crates/hir/src')
-rw-r--r--crates/hir/src/code_model.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/hir/src/code_model.rs b/crates/hir/src/code_model.rs
index 62237f481..3c83231cf 100644
--- a/crates/hir/src/code_model.rs
+++ b/crates/hir/src/code_model.rs
@@ -1372,8 +1372,7 @@ impl Impl {
1372 } 1372 }
1373 1373
1374 pub fn is_builtin_derive(self, db: &dyn HirDatabase) -> Option<InFile<ast::Attr>> { 1374 pub fn is_builtin_derive(self, db: &dyn HirDatabase) -> Option<InFile<ast::Attr>> {
1375 #[allow(deprecated)] 1375 let src = self.source(db)?;
1376 let src = self.source_old(db);
1377 let item = src.file_id.is_builtin_derive(db.upcast())?; 1376 let item = src.file_id.is_builtin_derive(db.upcast())?;
1378 let hygenic = hir_expand::hygiene::Hygiene::new(db.upcast(), item.file_id); 1377 let hygenic = hir_expand::hygiene::Hygiene::new(db.upcast(), item.file_id);
1379 1378