Skip to content
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

Merged
merged 7 commits into from
Dec 23, 2016
Merged

save-analysis: add signature info #38529

merged 7 commits into from
Dec 23, 2016

Conversation

nrc
Copy link
Member

@nrc nrc commented Dec 22, 2016

These 'signatures' for definitions contain enough info for the RLS to create Rustdoc-style info on the fly.

@rust-highfive
Copy link
Collaborator

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

prev = tok;
continue;
}
if let TokenTree::Token(_, token::Semi) = tok {
Copy link
Contributor

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 ?

Copy link
Member Author

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.

@nikomatsakis
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented Dec 22, 2016

📌 Commit c24b192 has been approved by nikomatsakis

@bors
Copy link
Contributor

bors commented Dec 22, 2016

⌛ Testing commit c24b192 with merge e7ec3b3...

@bors
Copy link
Contributor

bors commented Dec 22, 2016

💔 Test failed - auto-linux-32-nopt-t

@nrc
Copy link
Member Author

nrc commented Dec 22, 2016

@bors: retry

@bors
Copy link
Contributor

bors commented Dec 23, 2016

⌛ Testing commit c24b192 with merge 00b4019...

bors added a commit that referenced this pull request Dec 23, 2016
save-analysis: add signature info

These 'signatures' for definitions contain enough info for the RLS to create Rustdoc-style info on the fly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants