Skip to content

Commit edc1293

Browse files
committed
#[allow(unused_parens)] no longer required
1 parent c311aaf commit edc1293

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

library/core/src/ptr/alignment.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ impl Alignment {
8484
#[inline]
8585
#[track_caller]
8686
#[rustc_allow_const_fn_unstable(contracts)]
87-
#[allow(unused_parens)]
8887
#[core::contracts::requires(align.is_power_of_two())]
8988
#[core::contracts::ensures(
9089
move |result: &Alignment|
@@ -143,7 +142,6 @@ impl Alignment {
143142
#[unstable(feature = "ptr_alignment_type", issue = "102070")]
144143
#[inline]
145144
#[rustc_const_unstable(feature = "contracts", issue = "128044")]
146-
#[allow(unused_parens)]
147145
#[core::contracts::requires(self.as_usize().is_power_of_two())]
148146
#[core::contracts::ensures(
149147
move |result: &u32|

0 commit comments

Comments
 (0)