Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-expand/src/lib.rs')
-rw-r--r--crates/hir-expand/src/lib.rs10
1 files changed, 1 insertions, 9 deletions
diff --git a/crates/hir-expand/src/lib.rs b/crates/hir-expand/src/lib.rs
index 05541e782e..4b2c75ed38 100644
--- a/crates/hir-expand/src/lib.rs
+++ b/crates/hir-expand/src/lib.rs
@@ -386,7 +386,7 @@ impl MacroCallKind {
impl HirFileId {
pub fn edition(self, db: &dyn ExpandDatabase) -> Edition {
match self {
- HirFileId::FileId(file_id) => file_id.editioned_file_id(db).edition(),
+ HirFileId::FileId(file_id) => file_id.edition(db),
HirFileId::MacroFile(m) => db.lookup_intern_macro_call(m).def.edition,
}
}
@@ -1118,14 +1118,6 @@ impl HirFileId {
HirFileId::MacroFile(_) => None,
}
}
-
- #[inline]
- pub fn krate(self, db: &dyn ExpandDatabase) -> Crate {
- match self {
- HirFileId::FileId(it) => it.krate(db),
- HirFileId::MacroFile(it) => it.loc(db).krate,
- }
- }
}
impl PartialEq<EditionedFileId> for HirFileId {