-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
save-analysis: add signature info #38529
Conversation
Occurs when we produce save-analysis before type checking is complete (due to errors).
(rust_highfive has picked a reviewer for you, use r? to override) |
prev = tok; | ||
continue; | ||
} | ||
if let TokenTree::Token(_, token::Semi) = tok { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
out of curiosity, what will happen if part of this is generated by a macro ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Horrible failure. Pretty much any use of the span_utils module has to be guarded by checks for generated code. There are a couple of macros to help with that.
@bors r+ |
📌 Commit c24b192 has been approved by |
⌛ Testing commit c24b192 with merge e7ec3b3... |
💔 Test failed - auto-linux-32-nopt-t |
@bors: retry |
save-analysis: add signature info These 'signatures' for definitions contain enough info for the RLS to create Rustdoc-style info on the fly.
These 'signatures' for definitions contain enough info for the RLS to create Rustdoc-style info on the fly.