Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 377c924

Browse files
committed
fix: When hovering macro inputs, don't show everything that was downmapped
1 parent ad537be commit 377c924

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ide/src/hover.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ pub(crate) fn hover(
115115
});
116116
}
117117

118-
let descended = sema.descend_into_macros(original_token.clone());
118+
let descended = sema.descend_into_macros_with_same_text(original_token.clone());
119119

120120
// FIXME: Definition should include known lints and the like instead of having this special case here
121121
let hovered_lint = descended.iter().find_map(|token| {

0 commit comments

Comments
 (0)