Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide/src/annotations.rs')
-rw-r--r--crates/ide/src/annotations.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide/src/annotations.rs b/crates/ide/src/annotations.rs
index d44d4bfd2b..3d71da985b 100644
--- a/crates/ide/src/annotations.rs
+++ b/crates/ide/src/annotations.rs
@@ -149,7 +149,7 @@ pub(crate) fn annotations(
source_file_id: FileId,
) -> Option<(TextRange, Option<TextRange>)> {
if let Some(InRealFile { file_id, value }) = node.original_ast_node_rooted(db) {
- if file_id == source_file_id {
+ if file_id.file_id(db) == source_file_id {
return Some((
value.syntax().text_range(),
value.name().map(|name| name.syntax().text_range()),