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
is_aligned
The following should pass even with symbolic alignment checks:
#![feature(strict_provenance, pointer_is_aligned)] use std::ptr; fn main() { let p = ptr::invalid::<()>(1); assert!(p.is_aligned()); }
However, the assertion fails. This is almost certainly caused by rust-lang/rust#102795.
The text was updated successfully, but these errors were encountered:
align_offset
94ddca1
Auto merge of rust-lang#2683 - RalfJung:align_offset, r=RalfJung
8459a16
make align_offset always work on no-provenance pointers Fixes rust-lang/miri#2682
Successfully merging a pull request may close this issue.
The following should pass even with symbolic alignment checks:
However, the assertion fails. This is almost certainly caused by rust-lang/rust#102795.
The text was updated successfully, but these errors were encountered: