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.
#[allow(unused_parens)]
1 parent c311aaf commit edc1293Copy full SHA for edc1293
library/core/src/ptr/alignment.rs
@@ -84,7 +84,6 @@ impl Alignment {
84
#[inline]
85
#[track_caller]
86
#[rustc_allow_const_fn_unstable(contracts)]
87
- #[allow(unused_parens)]
88
#[core::contracts::requires(align.is_power_of_two())]
89
#[core::contracts::ensures(
90
move |result: &Alignment|
@@ -143,7 +142,6 @@ impl Alignment {
143
142
#[unstable(feature = "ptr_alignment_type", issue = "102070")]
144
145
#[rustc_const_unstable(feature = "contracts", issue = "128044")]
146
147
#[core::contracts::requires(self.as_usize().is_power_of_two())]
148
149
move |result: &u32|
0 commit comments