We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The #[must_use] attribute does not apply to type aliases, so it makes sense that bindgen won't put it on the alias itself.
#[must_use]
However, it would be nice if it would put it on the functions returning the given type alias instead.
#include <stdint.h> typedef uint32_t secbool; secbool must_check(int i);
bindgen input.h --must-use-type secbool --allowlist-type secbool --allowlist-function must_check
/* automatically generated by rust-bindgen 0.59.2 */ pub type secbool = u32; extern "C" { pub fn must_check(i: ::std::os::raw::c_int) -> secbool; }
pub type secbool = u32; extern "C" { #[must_use] pub fn must_check(i: ::std::os::raw::c_int) -> secbool; }
The text was updated successfully, but these errors were encountered:
must-use-type
closed by #2206
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
The
#[must_use]
attribute does not apply to type aliases, so it makes sense that bindgen won't put it on the alias itself.However, it would be nice if it would put it on the functions returning the given type alias instead.
Input C/C++ Header
Bindgen Invocation
Actual Results
Expected Results
The text was updated successfully, but these errors were encountered: