From 638a775642f5eddcd720826797085f1e8412614d Mon Sep 17 00:00:00 2001 From: Niklas Fiekas Date: Fri, 15 May 2026 14:53:18 +0200 Subject: [PATCH] Add pext/pdep as aliases for extract_bits/deposit_bits So that the methods will be found when searching for the corresponding intrinsics. Tracking issue: https://github.com/rust-lang/rust/issues/149069 --- library/core/src/num/uint_macros.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/core/src/num/uint_macros.rs b/library/core/src/num/uint_macros.rs index 8dc668584b658..0e6fa12702c46 100644 --- a/library/core/src/num/uint_macros.rs +++ b/library/core/src/num/uint_macros.rs @@ -710,6 +710,7 @@ macro_rules! uint_impl { /// assert_eq!(n.extract_bits(0b0010_0100), 0b0000_0011); /// assert_eq!(n.extract_bits(0xF0), 0b0000_1011); /// ``` + #[doc(alias = "pext")] #[unstable(feature = "uint_gather_scatter_bits", issue = "149069")] #[must_use = "this returns the result of the operation, \ without modifying the original"] @@ -727,6 +728,7 @@ macro_rules! uint_impl { /// assert_eq!(n.deposit_bits(0b0101_0101), 0b0101_0001); /// assert_eq!(n.deposit_bits(0xF0), 0b1101_0000); /// ``` + #[doc(alias = "pdep")] #[unstable(feature = "uint_gather_scatter_bits", issue = "149069")] #[must_use = "this returns the result of the operation, \ without modifying the original"]