Skip to content

Update generate_rust_analyzer.py - #488

Merged
ojeda merged 2 commits into
Rust-for-Linux:rustfrom
Bobo1239:rust-analyzer-updates
Aug 26, 2021
Merged

Update generate_rust_analyzer.py#488
ojeda merged 2 commits into
Rust-for-Linux:rustfrom
Bobo1239:rust-analyzer-updates

Conversation

@Bobo1239

Copy link
Copy Markdown
  1. Sets the newly introducedis_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 <bobo1239@web.de>
Update the script to account for the new way helpers are handled since
commit 7324a8.
Signed-off-by: Boris-Chengbiao Zhou <bobo1239@web.de>
@ojeda

Copy link
Copy Markdown
Member

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:rustAug 26, 2021
@Bobo1239
Bobo1239 deleted the rust-analyzer-updates branch August 26, 2021 23:07
Sign up for freeto 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

@Bobo1239@ojeda@nbdd0121@bjorn3