Skip to content

Update generate_rust_analyzer.py #488

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

Merged
merged 2 commits into from
Aug 26, 2021

Conversation

Bobo1239
Copy link

  1. Sets the newly introduced is_proc_macro field in the generated rust-project.json. rust-analyzer now properly resolves the use use proc_macro::TokenStream import. I've also taken the liberty to slightly refactor the script a bit to reduce duplication.
  2. Update the script to account for rust: generate bindings for helpers #359.

…ro field

rust-analyzer now doesn't complain about unresolved imports anymore
inside of the rust/macros crate.

Upstream PR which added the field:
rust-lang/rust-analyzer#9752

Signed-off-by: Boris-Chengbiao Zhou <[email protected]>
Update the script to account for the new way helpers are handled since
commit 7324a8.

Signed-off-by: Boris-Chengbiao Zhou <[email protected]>
@ojeda
Copy link
Member

ojeda commented Aug 26, 2021

Thanks!

A small note: changes should be in different commits, i.e. the change of default parameters should be on a different commit. It is OK now because we still rebase for upstreaming, but later on we will not be able to take commits that mix them!

@ojeda ojeda merged commit be91a55 into Rust-for-Linux:rust Aug 26, 2021
@Bobo1239 Bobo1239 deleted the rust-analyzer-updates branch August 26, 2021 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants