Skip to content

Commit 48636f3

Browse files
committed
Add missing inline attribute to Not impl for Wrapping<T>
1 parent d8b64c7 commit 48636f3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libcore/num/wrapping.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ macro_rules! wrapping_impl {
123123
impl Not for Wrapping<$t> {
124124
type Output = Wrapping<$t>;
125125

126+
#[inline(always)]
126127
fn not(self) -> Wrapping<$t> {
127128
Wrapping(!self.0)
128129
}

0 commit comments

Comments
 (0)