You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mod A {
pub(crate) struct Test;
}
mod B {
pub(crate) struct Test;
}
fn test_substitution_hover<T>(t: T) {
}
fn test() {
let a = A::Test;
let b = B::Test;
test_substitution_hover(a); // hover on test_substitution_hover show T = Test
test_substitution_hover(b); // hover on test_substitution_hover show T = Test
}
In this case, the hover shows T = Test, which indeed causes confusion because we cannot differentiate between A::Test and B::Test via hover.
Displaying T = Test with the ability to click on Test to jump to its definition would help resolve this issue, while also showing the full definition of Test when hovering over it.
Specifically, something like the following could help:
The text was updated successfully, but these errors were encountered:
In this case, the hover shows
T = Test
, which indeed causes confusion because we cannot differentiate betweenA::Test
andB::Test
via hover.Displaying
T = Test
with the ability to click onTest
to jump to its definition would help resolve this issue, while also showing the full definition ofTest
when hovering over it.Specifically, something like the following could help:
The text was updated successfully, but these errors were encountered: