You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As annotating #[must_use] on functions was stabilized in 1.27, it should be possible to automatically carry the __attribute__((warn_unused_result)) attribute from C/C++ into rust with #[must_use]. This will then require a --rust-target option of 1.27 to allow generation of this code.
Yeah, I agree this would be useful. Generally we have a very hard time getting attributes from libclang, but I'd have to check how the libclang AST looks like in that test-case.
As annotating
#[must_use]
on functions was stabilized in 1.27, it should be possible to automatically carry the__attribute__((warn_unused_result))
attribute from C/C++ into rust with#[must_use]
. This will then require a--rust-target
option of 1.27 to allow generation of this code.Input C/C++ Header
Actual Results
Expected Results
The text was updated successfully, but these errors were encountered: