Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir/src/lib.rs')
-rw-r--r--crates/hir/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir/src/lib.rs b/crates/hir/src/lib.rs
index ac9adf592d..894bfe91b5 100644
--- a/crates/hir/src/lib.rs
+++ b/crates/hir/src/lib.rs
@@ -7467,11 +7467,11 @@ fn body_param_env_from_has_crate<'db>(
// FIXME: We probably don't want to expose this.
pub trait MacroCallIdExt {
- fn loc(self, db: &dyn HirDatabase) -> hir_expand::MacroCallLoc;
+ fn loc(self, db: &dyn HirDatabase) -> &hir_expand::MacroCallLoc;
}
impl MacroCallIdExt for span::MacroCallId {
#[inline]
- fn loc(self, db: &dyn HirDatabase) -> hir_expand::MacroCallLoc {
+ fn loc(self, db: &dyn HirDatabase) -> &hir_expand::MacroCallLoc {
hir_expand::MacroCallId::from(self).loc(db)
}
}