-
Notifications
You must be signed in to change notification settings - Fork 698
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
Should have better error messages when input files aren't files #1029
Comments
Hi! If you have any questions regarding this issue, feel free to make a comment here, or ask it in the If you intend to work on this issue, then add |
Thanks for the bug report! To whoever wants to pick this up: the |
@highfive: assign me |
Hey @seemyvest! Thanks for your interest in working on this issue. It's now assigned to you! |
@seemyvest if you have any questions don't hesitate to ask :) |
Sorry it's been a while, I do have a few questions.
Thanks for the help :) |
Ideally we won't panic, and will return an
The other benefit to doing the checking inside
How about two versions of the function? #[cfg(unix)]
fn can_read(perms: &std::fs::Permissions) -> bool {
use std::os::unix::PermissionsExt;
perms.mode() & 0o0444 > 0
}
#[cfg(not(unix))]
fn can_read(_: &std::fs::Permissions) -> bool {
true
}
No problem! Let me know if anything I said isn't clear :) |
Fixed in #1092 |
The hashtag for my bindgen version is 4dd4ac7 .
folder
is just an empty directory. Should we provide a more friendly error message?$ RUST_BACKTRACE=1 bindgen folder/
The text was updated successfully, but these errors were encountered: