-
Notifications
You must be signed in to change notification settings - Fork 16
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
unsafe
annotations
#67
unsafe
annotations
#67
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR changes LGTM; only issue is how the lint is enabled.
I confirmed that the lint was stabilised in 1.51.0, and our MSRV for the Zcash Rust crates is currently 1.56.1, so we can use this lint everywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
Should we also add a rust-version = "1.51"
(or match the MSRV) line to Cargo.toml to catch anyone trying to build with an older version?
Signed-off-by: Daira Hopwood <[email protected]>
Signed-off-by: Daira Hopwood <[email protected]>
23bbbe1
to
4e6ec87
Compare
Yes at some point (I have already done this in the Android SDK), but doesn't have to happen in this PR (as the MSRV is unaltered by it). The actual MSRV is at least 1.56.1 (and is 1.59 over in the Android SDK, but I think that's because of an Android-specific dependency). |
This enables
deny(unsafe_op_in_unsafe_fn)
globally and addsunsafe
annotations as necessary. fixes #65