Skip to content

Commit a12e0e8

Browse files
committed
Drop ModuleSelfAnnotation arm absent from pinned v4.0.2 AST
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
1 parent 17ea0ed commit a12e0e8

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

rust/ruby-rbs/src/ast/convert.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1212,7 +1212,6 @@ fn node_kind(node: &Node<'_>) -> &'static str {
12121212
Node::InstanceVariableAnnotation(_) => "InstanceVariableAnnotation",
12131213
Node::MethodTypesAnnotation(_) => "MethodTypesAnnotation",
12141214
Node::ModuleAliasAnnotation(_) => "ModuleAliasAnnotation",
1215-
Node::ModuleSelfAnnotation(_) => "ModuleSelfAnnotation",
12161215
Node::NodeTypeAssertion(_) => "NodeTypeAssertion",
12171216
Node::ParamTypeAnnotation(_) => "ParamTypeAnnotation",
12181217
Node::ReturnTypeAnnotation(_) => "ReturnTypeAnnotation",

0 commit comments

Comments
 (0)