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

Rust: ast-based extractor #17502

Merged
merged 12 commits into from
Sep 19, 2024
Merged

Rust: ast-based extractor #17502

merged 12 commits into from
Sep 19, 2024

Conversation

aibaars
Copy link
Contributor

@aibaars aibaars commented Sep 18, 2024

This pull request rewrites the Rust extractor to extract the AST nodes of rust-analyzer instead the HIR nodes. The implementation is generated from the rust.ungram syntax definition.

@github-actions github-actions bot added the Rust Pull requests that update Rust code label Sep 18, 2024
Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

@aibaars aibaars force-pushed the aibaars/rust-extract-ast branch 9 times, most recently from fce5d6b to 0ae8d33 Compare September 18, 2024 19:59
@aibaars aibaars force-pushed the aibaars/rust-extract-ast branch from 0ae8d33 to ecc69dc Compare September 19, 2024 08:59
@aibaars aibaars marked this pull request as ready for review September 19, 2024 08:59
@aibaars aibaars requested a review from a team as a code owner September 19, 2024 08:59
@aibaars aibaars force-pushed the aibaars/rust-extract-ast branch from ecc69dc to 23d2e03 Compare September 19, 2024 09:05
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for follow-up: we can pull in this file with bazel instead of checking it in

@redsun82
Copy link
Contributor

The go failures are probably being handled by #17513 if I got it right

@aibaars aibaars force-pushed the aibaars/rust-extract-ast branch from ebd0d2f to 4a19902 Compare September 19, 2024 10:36
@aibaars aibaars force-pushed the aibaars/rust-extract-ast branch from 4a19902 to cad6e6a Compare September 19, 2024 11:01
@aibaars aibaars force-pushed the aibaars/rust-extract-ast branch from cad6e6a to 3aa47a3 Compare September 19, 2024 11:13
Copy link
Contributor

@redsun82 redsun82 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great stuff!

@aibaars aibaars merged commit 3c09f70 into main Sep 19, 2024
29 checks passed
@aibaars aibaars deleted the aibaars/rust-extract-ast branch September 19, 2024 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants