fix: When hovering macro inputs, don't show everything that was downmapped

This commit is contained in:
Lukas Wirth 2022-05-23 16:11:36 +02:00
parent ad537be194
commit 377c9247e6

View File

@ -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| {