Skip to content

Commit ee499dd

Browse files
github-actions[bot]nik-revThe Miri Cronjob BottheemathasKobzol
authored
Merge subtree update for toolchain nightly-2025-08-07 (#450)
This is an automated PR to merge library subtree updates from 2025-08-06 (rust-lang/rust@ec7c026) to 2025-08-07 (rust-lang/rust@7d82b83), inclusive. This is a clean merge, no conflicts were detected. **Do not remove or edit the following annotations:** git-subtree-dir: library git-subtree-split: 4ff8a80 --------- Signed-off-by: Ayush Singh <[email protected]> Signed-off-by: Jonathan Brouwer <[email protected]> Co-authored-by: Nik Revenco <[email protected]> Co-authored-by: The Miri Cronjob Bot <[email protected]> Co-authored-by: Tim (Theemathas) Chirananthavat <[email protected]> Co-authored-by: Jakub Beránek <[email protected]> Co-authored-by: Chris Denton <[email protected]> Co-authored-by: Folkert de Vries <[email protected]> Co-authored-by: Samuel Tardieu <[email protected]> Co-authored-by: Travis Cross <[email protected]> Co-authored-by: Amanieu d'Antras <[email protected]> Co-authored-by: bors <[email protected]> Co-authored-by: Oli Scherer <[email protected]> Co-authored-by: David Mládek <[email protected]> Co-authored-by: SunkenPotato <[email protected]> Co-authored-by: Deadbeef <[email protected]> Co-authored-by: Ralf Jung <[email protected]> Co-authored-by: Cameron Steffen <[email protected]> Co-authored-by: Martin Ombura Jr <[email protected]> Co-authored-by: Madhav Madhusoodanan <[email protected]> Co-authored-by: sayantn <[email protected]> Co-authored-by: León Orell Valerian Liehr <[email protected]> Co-authored-by: Matthias Krüger <[email protected]> Co-authored-by: Trevor Gross <[email protected]> Co-authored-by: WANG Rui <[email protected]> Co-authored-by: Folkert de Vries <[email protected]> Co-authored-by: Luigi Sartor Piucco <[email protected]> Co-authored-by: Julien THILLARD <[email protected]> Co-authored-by: The rustc-josh-sync Cronjob Bot <[email protected]> Co-authored-by: Marijn Schouten <[email protected]> Co-authored-by: usamoi <[email protected]> Co-authored-by: Rémy Rakic <[email protected]> Co-authored-by: Alisa Sireneva <[email protected]> Co-authored-by: Josh Triplett <[email protected]> Co-authored-by: Nurzhan Sakén <[email protected]> Co-authored-by: ltdk <[email protected]> Co-authored-by: bjorn3 <[email protected]> Co-authored-by: Guillaume Gomez <[email protected]> Co-authored-by: Evgenii Zheltonozhskii <[email protected]> Co-authored-by: roblabla <[email protected]> Co-authored-by: 许杰友 Jieyou Xu (Joe) <[email protected]> Co-authored-by: Ayush Singh <[email protected]> Co-authored-by: Kornel <[email protected]> Co-authored-by: Jonas Platte <[email protected]> Co-authored-by: Alex Crichton <[email protected]> Co-authored-by: Zachary S <[email protected]> Co-authored-by: Jeremy Smart <[email protected]> Co-authored-by: Ivan Tadeu Ferreira Antunes Filho <[email protected]> Co-authored-by: okaneco <[email protected]> Co-authored-by: Trevor Gross <[email protected]> Co-authored-by: Jacob Pratt <[email protected]> Co-authored-by: Scott McMurray <[email protected]> Co-authored-by: xonx <[email protected]> Co-authored-by: Yosh <[email protected]> Co-authored-by: joboet <[email protected]> Co-authored-by: Stuart Cook <[email protected]> Co-authored-by: Connor Tsui <[email protected]> Co-authored-by: Aandreba <[email protected]> Co-authored-by: Lucas Werkmeister <[email protected]> Co-authored-by: Orson Peters <[email protected]> Co-authored-by: Balt <[email protected]> Co-authored-by: Tsukasa OI <[email protected]> Co-authored-by: Nico Lehmann <[email protected]> Co-authored-by: stifskere <[email protected]> Co-authored-by: Christopher Hotchkiss <[email protected]> Co-authored-by: Kivooeo <[email protected]> Co-authored-by: Jonathan Brouwer <[email protected]> Co-authored-by: Eric Huss <[email protected]> Co-authored-by: gitbot <git@bot>
1 parent 6dfbad5 commit ee499dd

File tree

11 files changed

+46
-46
lines changed

11 files changed

+46
-46
lines changed

library/alloc/src/collections/btree/map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ impl<'a, K: 'a, V: 'a> Default for Iter<'a, K, V> {
382382
/// documentation for more.
383383
///
384384
/// [`iter_mut`]: BTreeMap::iter_mut
385+
#[must_use = "iterators are lazy and do nothing unless consumed"]
385386
#[stable(feature = "rust1", since = "1.0.0")]
386387
pub struct IterMut<'a, K: 'a, V: 'a> {
387388
range: LazyLeafRange<marker::ValMut<'a>, K, V>,
@@ -391,7 +392,6 @@ pub struct IterMut<'a, K: 'a, V: 'a> {
391392
_marker: PhantomData<&'a mut (K, V)>,
392393
}
393394

394-
#[must_use = "iterators are lazy and do nothing unless consumed"]
395395
#[stable(feature = "collection_debug", since = "1.17.0")]
396396
impl<K: fmt::Debug, V: fmt::Debug> fmt::Debug for IterMut<'_, K, V> {
397397
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {

library/core/src/intrinsics/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2692,7 +2692,7 @@ pub unsafe fn vtable_align(_ptr: *const ()) -> usize;
26922692
/// More specifically, this is the offset in bytes between successive
26932693
/// items of the same type, including alignment padding.
26942694
///
2695-
/// The stabilized version of this intrinsic is [`size_of`].
2695+
/// The stabilized version of this intrinsic is [`core::mem::size_of`].
26962696
#[rustc_nounwind]
26972697
#[unstable(feature = "core_intrinsics", issue = "none")]
26982698
#[rustc_intrinsic_const_stable_indirect]
@@ -2706,7 +2706,7 @@ pub const fn size_of<T>() -> usize;
27062706
/// Therefore, implementations must not require the user to uphold
27072707
/// any safety invariants.
27082708
///
2709-
/// The stabilized version of this intrinsic is [`align_of`].
2709+
/// The stabilized version of this intrinsic is [`core::mem::align_of`].
27102710
#[rustc_nounwind]
27112711
#[unstable(feature = "core_intrinsics", issue = "none")]
27122712
#[rustc_intrinsic_const_stable_indirect]
@@ -2729,7 +2729,7 @@ pub const fn variant_count<T>() -> usize;
27292729

27302730
/// The size of the referenced value in bytes.
27312731
///
2732-
/// The stabilized version of this intrinsic is [`size_of_val`].
2732+
/// The stabilized version of this intrinsic is [`core::mem::size_of_val`].
27332733
///
27342734
/// # Safety
27352735
///
@@ -2742,7 +2742,7 @@ pub const unsafe fn size_of_val<T: ?Sized>(ptr: *const T) -> usize;
27422742

27432743
/// The required alignment of the referenced value.
27442744
///
2745-
/// The stabilized version of this intrinsic is [`align_of_val`].
2745+
/// The stabilized version of this intrinsic is [`core::mem::align_of_val`].
27462746
///
27472747
/// # Safety
27482748
///

library/core/src/num/int_macros.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,14 +177,14 @@ macro_rules! int_impl {
177177
///
178178
#[doc = concat!("let n: ", stringify!($SelfT), " = 0b_01100100;")]
179179
///
180-
/// assert_eq!(n.isolate_most_significant_one(), 0b_01000000);
181-
#[doc = concat!("assert_eq!(0_", stringify!($SelfT), ".isolate_most_significant_one(), 0);")]
180+
/// assert_eq!(n.isolate_highest_one(), 0b_01000000);
181+
#[doc = concat!("assert_eq!(0_", stringify!($SelfT), ".isolate_highest_one(), 0);")]
182182
/// ```
183183
#[unstable(feature = "isolate_most_least_significant_one", issue = "136909")]
184184
#[must_use = "this returns the result of the operation, \
185185
without modifying the original"]
186186
#[inline(always)]
187-
pub const fn isolate_most_significant_one(self) -> Self {
187+
pub const fn isolate_highest_one(self) -> Self {
188188
self & (((1 as $SelfT) << (<$SelfT>::BITS - 1)).wrapping_shr(self.leading_zeros()))
189189
}
190190

@@ -198,14 +198,14 @@ macro_rules! int_impl {
198198
///
199199
#[doc = concat!("let n: ", stringify!($SelfT), " = 0b_01100100;")]
200200
///
201-
/// assert_eq!(n.isolate_least_significant_one(), 0b_00000100);
202-
#[doc = concat!("assert_eq!(0_", stringify!($SelfT), ".isolate_least_significant_one(), 0);")]
201+
/// assert_eq!(n.isolate_lowest_one(), 0b_00000100);
202+
#[doc = concat!("assert_eq!(0_", stringify!($SelfT), ".isolate_lowest_one(), 0);")]
203203
/// ```
204204
#[unstable(feature = "isolate_most_least_significant_one", issue = "136909")]
205205
#[must_use = "this returns the result of the operation, \
206206
without modifying the original"]
207207
#[inline(always)]
208-
pub const fn isolate_least_significant_one(self) -> Self {
208+
pub const fn isolate_lowest_one(self) -> Self {
209209
self & self.wrapping_neg()
210210
}
211211

library/core/src/num/nonzero.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -654,15 +654,15 @@ macro_rules! nonzero_integer {
654654
#[doc = concat!("let a = NonZero::<", stringify!($Int), ">::new(0b_01100100)?;")]
655655
#[doc = concat!("let b = NonZero::<", stringify!($Int), ">::new(0b_01000000)?;")]
656656
///
657-
/// assert_eq!(a.isolate_most_significant_one(), b);
657+
/// assert_eq!(a.isolate_highest_one(), b);
658658
/// # Some(())
659659
/// # }
660660
/// ```
661661
#[unstable(feature = "isolate_most_least_significant_one", issue = "136909")]
662662
#[must_use = "this returns the result of the operation, \
663663
without modifying the original"]
664664
#[inline(always)]
665-
pub const fn isolate_most_significant_one(self) -> Self {
665+
pub const fn isolate_highest_one(self) -> Self {
666666
let n = self.get() & (((1 as $Int) << (<$Int>::BITS - 1)).wrapping_shr(self.leading_zeros()));
667667

668668
// SAFETY:
@@ -684,15 +684,15 @@ macro_rules! nonzero_integer {
684684
#[doc = concat!("let a = NonZero::<", stringify!($Int), ">::new(0b_01100100)?;")]
685685
#[doc = concat!("let b = NonZero::<", stringify!($Int), ">::new(0b_00000100)?;")]
686686
///
687-
/// assert_eq!(a.isolate_least_significant_one(), b);
687+
/// assert_eq!(a.isolate_lowest_one(), b);
688688
/// # Some(())
689689
/// # }
690690
/// ```
691691
#[unstable(feature = "isolate_most_least_significant_one", issue = "136909")]
692692
#[must_use = "this returns the result of the operation, \
693693
without modifying the original"]
694694
#[inline(always)]
695-
pub const fn isolate_least_significant_one(self) -> Self {
695+
pub const fn isolate_lowest_one(self) -> Self {
696696
let n = self.get();
697697
let n = n & n.wrapping_neg();
698698

library/core/src/num/uint_macros.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -229,14 +229,14 @@ macro_rules! uint_impl {
229229
///
230230
#[doc = concat!("let n: ", stringify!($SelfT), " = 0b_01100100;")]
231231
///
232-
/// assert_eq!(n.isolate_most_significant_one(), 0b_01000000);
233-
#[doc = concat!("assert_eq!(0_", stringify!($SelfT), ".isolate_most_significant_one(), 0);")]
232+
/// assert_eq!(n.isolate_highest_one(), 0b_01000000);
233+
#[doc = concat!("assert_eq!(0_", stringify!($SelfT), ".isolate_highest_one(), 0);")]
234234
/// ```
235235
#[unstable(feature = "isolate_most_least_significant_one", issue = "136909")]
236236
#[must_use = "this returns the result of the operation, \
237237
without modifying the original"]
238238
#[inline(always)]
239-
pub const fn isolate_most_significant_one(self) -> Self {
239+
pub const fn isolate_highest_one(self) -> Self {
240240
self & (((1 as $SelfT) << (<$SelfT>::BITS - 1)).wrapping_shr(self.leading_zeros()))
241241
}
242242

@@ -250,14 +250,14 @@ macro_rules! uint_impl {
250250
///
251251
#[doc = concat!("let n: ", stringify!($SelfT), " = 0b_01100100;")]
252252
///
253-
/// assert_eq!(n.isolate_least_significant_one(), 0b_00000100);
254-
#[doc = concat!("assert_eq!(0_", stringify!($SelfT), ".isolate_least_significant_one(), 0);")]
253+
/// assert_eq!(n.isolate_lowest_one(), 0b_00000100);
254+
#[doc = concat!("assert_eq!(0_", stringify!($SelfT), ".isolate_lowest_one(), 0);")]
255255
/// ```
256256
#[unstable(feature = "isolate_most_least_significant_one", issue = "136909")]
257257
#[must_use = "this returns the result of the operation, \
258258
without modifying the original"]
259259
#[inline(always)]
260-
pub const fn isolate_least_significant_one(self) -> Self {
260+
pub const fn isolate_lowest_one(self) -> Self {
261261
self & self.wrapping_neg()
262262
}
263263

library/coretests/tests/nonzero.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ fn nonzero_trailing_zeros() {
321321
}
322322

323323
#[test]
324-
fn test_nonzero_isolate_most_significant_one() {
324+
fn test_nonzero_isolate_highest_one() {
325325
// Signed most significant one
326326
macro_rules! nonzero_int_impl {
327327
($($T:ty),+) => {
@@ -335,8 +335,8 @@ fn test_nonzero_isolate_most_significant_one() {
335335
let mut i = 0;
336336
while i < <$T>::BITS {
337337
assert_eq!(
338-
NonZero::<$T>::new(BITS >> i).unwrap().isolate_most_significant_one(),
339-
NonZero::<$T>::new(MOST_SIG_ONE >> i).unwrap().isolate_most_significant_one()
338+
NonZero::<$T>::new(BITS >> i).unwrap().isolate_highest_one(),
339+
NonZero::<$T>::new(MOST_SIG_ONE >> i).unwrap().isolate_highest_one()
340340
);
341341
i += 1;
342342
}
@@ -356,8 +356,8 @@ fn test_nonzero_isolate_most_significant_one() {
356356
let mut i = 0;
357357
while i < <$T>::BITS {
358358
assert_eq!(
359-
NonZero::<$T>::new(BITS >> i).unwrap().isolate_most_significant_one(),
360-
NonZero::<$T>::new(MOST_SIG_ONE >> i).unwrap().isolate_most_significant_one(),
359+
NonZero::<$T>::new(BITS >> i).unwrap().isolate_highest_one(),
360+
NonZero::<$T>::new(MOST_SIG_ONE >> i).unwrap().isolate_highest_one(),
361361
);
362362
i += 1;
363363
}
@@ -371,7 +371,7 @@ fn test_nonzero_isolate_most_significant_one() {
371371
}
372372

373373
#[test]
374-
fn test_nonzero_isolate_least_significant_one() {
374+
fn test_nonzero_isolate_lowest_one() {
375375
// Signed least significant one
376376
macro_rules! nonzero_int_impl {
377377
($($T:ty),+) => {
@@ -385,8 +385,8 @@ fn test_nonzero_isolate_least_significant_one() {
385385
let mut i = 0;
386386
while i < <$T>::BITS {
387387
assert_eq!(
388-
NonZero::<$T>::new(BITS << i).unwrap().isolate_least_significant_one(),
389-
NonZero::<$T>::new(LEAST_SIG_ONE << i).unwrap().isolate_least_significant_one()
388+
NonZero::<$T>::new(BITS << i).unwrap().isolate_lowest_one(),
389+
NonZero::<$T>::new(LEAST_SIG_ONE << i).unwrap().isolate_lowest_one()
390390
);
391391
i += 1;
392392
}
@@ -406,8 +406,8 @@ fn test_nonzero_isolate_least_significant_one() {
406406
let mut i = 0;
407407
while i < <$T>::BITS {
408408
assert_eq!(
409-
NonZero::<$T>::new(BITS << i).unwrap().isolate_least_significant_one(),
410-
NonZero::<$T>::new(LEAST_SIG_ONE << i).unwrap().isolate_least_significant_one(),
409+
NonZero::<$T>::new(BITS << i).unwrap().isolate_lowest_one(),
410+
NonZero::<$T>::new(LEAST_SIG_ONE << i).unwrap().isolate_lowest_one(),
411411
);
412412
i += 1;
413413
}

library/coretests/tests/num/int_macros.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ macro_rules! int_module {
194194
}
195195

196196
#[test]
197-
fn test_isolate_most_significant_one() {
197+
fn test_isolate_highest_one() {
198198
const BITS: $T = -1;
199199
const MOST_SIG_ONE: $T = 1 << (<$T>::BITS - 1);
200200

@@ -203,15 +203,15 @@ macro_rules! int_module {
203203
let mut i = 0;
204204
while i < <$T>::BITS {
205205
assert_eq!(
206-
(BITS >> i).isolate_most_significant_one(),
207-
(MOST_SIG_ONE >> i).isolate_most_significant_one()
206+
(BITS >> i).isolate_highest_one(),
207+
(MOST_SIG_ONE >> i).isolate_highest_one()
208208
);
209209
i += 1;
210210
}
211211
}
212212

213213
#[test]
214-
fn test_isolate_least_significant_one() {
214+
fn test_isolate_lowest_one() {
215215
const BITS: $T = -1;
216216
const LEAST_SIG_ONE: $T = 1;
217217

@@ -220,8 +220,8 @@ macro_rules! int_module {
220220
let mut i = 0;
221221
while i < <$T>::BITS {
222222
assert_eq!(
223-
(BITS << i).isolate_least_significant_one(),
224-
(LEAST_SIG_ONE << i).isolate_least_significant_one()
223+
(BITS << i).isolate_lowest_one(),
224+
(LEAST_SIG_ONE << i).isolate_lowest_one()
225225
);
226226
i += 1;
227227
}

library/coretests/tests/num/uint_macros.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ macro_rules! uint_module {
151151
}
152152

153153
#[test]
154-
fn test_isolate_most_significant_one() {
154+
fn test_isolate_highest_one() {
155155
const BITS: $T = <$T>::MAX;
156156
const MOST_SIG_ONE: $T = 1 << (<$T>::BITS - 1);
157157

@@ -160,15 +160,15 @@ macro_rules! uint_module {
160160
let mut i = 0;
161161
while i < <$T>::BITS {
162162
assert_eq!(
163-
(BITS >> i).isolate_most_significant_one(),
164-
(MOST_SIG_ONE >> i).isolate_most_significant_one(),
163+
(BITS >> i).isolate_highest_one(),
164+
(MOST_SIG_ONE >> i).isolate_highest_one(),
165165
);
166166
i += 1;
167167
}
168168
}
169169

170170
#[test]
171-
fn test_isolate_least_significant_one() {
171+
fn test_isolate_lowest_one() {
172172
const BITS: $T = <$T>::MAX;
173173
const LEAST_SIG_ONE: $T = 1;
174174

@@ -177,8 +177,8 @@ macro_rules! uint_module {
177177
let mut i = 0;
178178
while i < <$T>::BITS {
179179
assert_eq!(
180-
(BITS << i).isolate_least_significant_one(),
181-
(LEAST_SIG_ONE << i).isolate_least_significant_one(),
180+
(BITS << i).isolate_lowest_one(),
181+
(LEAST_SIG_ONE << i).isolate_lowest_one(),
182182
);
183183
i += 1;
184184
}

library/std/src/sys/args/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ impl !Sync for Args {}
1212

1313
impl Args {
1414
#[inline]
15-
pub(super) fn new(args: Vec<OsString>) -> Self {
15+
pub fn new(args: Vec<OsString>) -> Self {
1616
Args { iter: args.into_iter() }
1717
}
1818
}

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
# standard library we currently track.
33

44
[toolchain]
5-
channel = "nightly-2025-08-06"
5+
channel = "nightly-2025-08-07"
66
components = ["llvm-tools-preview", "rustc-dev", "rust-src", "rustfmt"]

0 commit comments

Comments
 (0)