Skip to content

Add owned Rust AST#2985

Open
soutaro wants to merge 4 commits into
masterfrom
rust-ast
Open

Add owned Rust AST#2985
soutaro wants to merge 4 commits into
masterfrom
rust-ast

Conversation

@soutaro
Copy link
Copy Markdown
Member

@soutaro soutaro commented Jun 3, 2026

Summary

  • Add owned pure-Rust AST data structures for RBS types
  • Add owned AST declarations, members, and directives
  • Add converters from parser nodes into the owned AST

Test

  • shadowenv exec -- cargo fmt --all
  • shadowenv exec -- cargo test

This PR is stacked on rust-constant-pool-typename.

Base automatically changed from rust-constant-pool-typename to master June 6, 2026 03:18
@soutaro soutaro added the no-milestone This PR doesn't associate with a milestone. label Jun 6, 2026
The generated Node enum is built from vendor/rbs/config.yml, which is
synced from the pinned v4.0.2 tag. v4.0.2 has no ModuleSelfAnnotation
node, so node_kind referenced a non-existent variant and failed to
compile under cargo clippy / cargo test.

https://claude.ai/code/session_01Bb4HnSKGf3PMGo1F8LUpz4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-milestone This PR doesn't associate with a milestone.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants