Skip to content

unknown variant "AvailableOnlyInDefaultEvalMethodAttr" #37

@coffeenotfound

Description

@coffeenotfound

I'm trying to update physx-rs to a newer version and it has a little script which uses clang-ast to generate type bindings, but running it crashes with the following:

    Finished `release` profile [optimized] target(s) in 0.02s
     Running `target/release/pxbind`
[2025-01-25T23:54:25Z INFO  pxbind::dump] Gathering AST via clang...
[2025-01-25T23:54:27Z INFO  pxbind::dump] Gathered AST in 1876ms
[2025-01-25T23:54:27Z INFO  pxbind::dump] Parsing AST...
Error: failed to parse AST

Caused by:
    unknown variant `AvailableOnlyInDefaultEvalMethodAttr`, expected one of `AbiTagAttr`, `AccessSpecDecl`, `AliasAttr`, `AlignedAttr`, `AllocAlignAttr`, `AllocSizeAttr`, `AlwaysInlineAttr`, `ArrayInitIndexExpr`, `ArrayInitLoopExpr`, `ArraySubscriptExpr`, `ArrayTypeTraitExpr`, `AsmLabelAttr`, `AtomicExpr`, `AtomicType`, `AttributedStmt`, `AttributedType`, `AutoType`, `AvailabilityAttr`, `BinaryConditionalOperator`, `BinaryOperator`, `BindingDecl`, ...

(and a huge long list of other variants)

I have clang 19.1.7
Is that too new?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions