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

Attr parsing for #[diplomat::opaque_mut] #263

Merged

Conversation

QnnOkabayashi
Copy link
Collaborator

This is the first PR towards #225.

The first step towards adding opaque_mut is supporting parsing it from the AST. The way we parsed our custom attributes from the AST was a bit of a mess, so this PR improves that mechanism, and then uses the improved version to also support parsing #[diplomat::opaque_mut]. It then uses this information to set a new flag field in ast::OpaqueStruct when constructed, which dictates whether or not it's an opaque_mut.

Copy link
Contributor

@Manishearth Manishearth left a comment

Choose a reason for hiding this comment

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

praise: quite straightforward!

(didn't realize we already had output_only!)

@QnnOkabayashi QnnOkabayashi merged commit f17510b into rust-diplomat:main Sep 27, 2022
@QnnOkabayashi QnnOkabayashi deleted the improve-diplomat-struct-attrs branch September 27, 2022 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants