Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-expand/src/proc_macro.rs')
-rw-r--r--crates/hir-expand/src/proc_macro.rs11
1 files changed, 3 insertions, 8 deletions
diff --git a/crates/hir-expand/src/proc_macro.rs b/crates/hir-expand/src/proc_macro.rs
index 93bc5daa5b..94c105761d 100644
--- a/crates/hir-expand/src/proc_macro.rs
+++ b/crates/hir-expand/src/proc_macro.rs
@@ -84,13 +84,8 @@ impl ProcMacrosBuilder {
);
}
- /// Builds [`ProcMacros`] and adds id to `db` with the provided `durability`.
- pub(crate) fn build_in(
- self,
- db: &mut dyn ExpandDatabase,
- durability: Durability,
- crates_id_map: &CratesIdMap,
- ) {
+ /// Builds [`ProcMacros`] and adds id to `db`
+ pub(crate) fn build_in(self, db: &mut dyn ExpandDatabase, crates_id_map: &CratesIdMap) {
let mut map = self
.0
.into_iter()
@@ -100,7 +95,7 @@ impl ProcMacrosBuilder {
ProcMacros::try_get(db)
.unwrap_or_else(|| ProcMacros::new(db, Default::default()))
.set_by_crate(db)
- .with_durability(durability)
+ .with_durability(Durability::HIGH)
.to(map);
}
}