From 377c9247e6c8c5392acc5b6e935aee89457bd6f4 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Mon, 23 May 2022 16:11:36 +0200 Subject: [PATCH] fix: When hovering macro inputs, don't show everything that was downmapped --- crates/ide/src/hover.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ide/src/hover.rs b/crates/ide/src/hover.rs index ae9be8adbd2..d2d367c8c55 100644 --- a/crates/ide/src/hover.rs +++ b/crates/ide/src/hover.rs @@ -115,7 +115,7 @@ pub(crate) fn hover( }); } - let descended = sema.descend_into_macros(original_token.clone()); + let descended = sema.descend_into_macros_with_same_text(original_token.clone()); // FIXME: Definition should include known lints and the like instead of having this special case here let hovered_lint = descended.iter().find_map(|token| {