-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing hover docs on primitive methods #7688
Comments
This only happens for |
It seem like related to #7423. |
TIL : the problem here is quite interesting , MWE : macro_rules! doc_comment {
($x:expr, $($tt:tt)*) => {
#[doc = $x]
$($tt)*
};
}
doc_comment! {
concat!("Hello"," world"),
struct Bar;
} And of course we don't handle this case, because it will be expanded to : #[doc = concat!("Hello", " world")]
struct Bar; And the interesting point is, the above expanded code is unstable in rustc too. But the macro one is stable. [Edit] Add #8092 for tracking the actual problem. |
Running the 2021.2.15 release.
It correctly provides completions for primitive types, but doesn't show their documentation. Not that big of a deal, but I figured I'd report it anyway since it doesn't appear to be an existing issue.
The text was updated successfully, but these errors were encountered: