We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44824f1 commit 25c9ccaCopy full SHA for 25c9cca
library/core/src/ptr/alignment.rs
@@ -80,8 +80,7 @@ impl Alignment {
80
#[unstable(feature = "ptr_alignment_type", issue = "102070")]
81
#[rustc_const_unstable(feature = "ptr_alignment_type", issue = "102070")]
82
#[inline]
83
- #[requires(align > 0)]
84
- #[requires((align & (align - 1)) == 0)]
+ #[requires(align > 0 && (align & (align - 1)) == 0)]
85
pub const unsafe fn new_unchecked(align: usize) -> Self {
86
#[cfg(debug_assertions)]
87
assert_unsafe_precondition!(
0 commit comments