Add extra unchecked_disjoint_bitor implementations. by bjoernager · Pull Request #147368 · rust-lang/rust (original) (raw)

impl bool { pub const unsafe fn unchecked_disjoint_bitor(self, rhs: Self) -> Self; }

impl i8 { pub const unsafe fn unchecked_disjoint_bitor(self, rhs: Self) -> Self; }

impl i16 { pub const unsafe fn unchecked_disjoint_bitor(self, rhs: Self) -> Self; }

impl i32 { pub const unsafe fn unchecked_disjoint_bitor(self, rhs: Self) -> Self; }

impl i64 { pub const unsafe fn unchecked_disjoint_bitor(self, rhs: Self) -> Self; }

impl i128 { pub const unsafe fn unchecked_disjoint_bitor(self, rhs: Self) -> Self; }

impl isize { pub const unsafe fn unchecked_disjoint_bitor(self, rhs: Self) -> Self; }

Our disjoint_bitor intrinsic is already implemented for these types. This method specifically is also already present on unsigned, integral types.