Skip to content

Commit 26d30a0

Browse files
github-actions[bot]tgross35borsmatthiaskrgrorlp
authored
Merge subtree update for toolchain nightly-2025-06-17 (#392)
This is an automated PR to merge library subtree updates from 2025-06-03 (rust-lang/rust@5d707b0) to 2025-06-17 (rust-lang/rust@45acf54) (inclusive) into main. `git merge` resulted in conflicts, which require manual resolution. Files were commited with merge conflict markers. **Do not remove or edit the following annotations:** git-subtree-dir: library git-subtree-split: 3b96c9b --------- Signed-off-by: xizheyin <[email protected]> Signed-off-by: onur-ozkan <[email protected]> Co-authored-by: Trevor Gross <[email protected]> Co-authored-by: bors <[email protected]> Co-authored-by: Matthias Krüger <[email protected]> Co-authored-by: Orson Peters <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Scott McMurray <[email protected]> Co-authored-by: Jubilee <[email protected]> Co-authored-by: xizheyin <[email protected]> Co-authored-by: The Miri Cronjob Bot <[email protected]> Co-authored-by: Ruan Comelli <[email protected]> Co-authored-by: Ralf Jung <[email protected]> Co-authored-by: Jacob Pratt <[email protected]> Co-authored-by: zacryol <[email protected]> Co-authored-by: Guillaume Gomez <[email protected]> Co-authored-by: neeko-cat <[email protected]> Co-authored-by: usamoi <[email protected]> Co-authored-by: Jakub Beránek <[email protected]> Co-authored-by: Eric Huss <[email protected]> Co-authored-by: Sidney Cammeresi <[email protected]> Co-authored-by: Josh Stone <[email protected]> Co-authored-by: Jeremy Smart <[email protected]> Co-authored-by: zachs18 <[email protected]> Co-authored-by: onur-ozkan <[email protected]> Co-authored-by: sayantn <[email protected]> Co-authored-by: LorrensP-2158466 <[email protected]> Co-authored-by: Oli Scherer <[email protected]> Co-authored-by: Oli Scherer <[email protected]> Co-authored-by: Jieyou Xu <[email protected]> Co-authored-by: Travis Cross <[email protected]> Co-authored-by: Josh Triplett <[email protected]> Co-authored-by: Taylor Cramer <[email protected]> Co-authored-by: Paolo Barbolini <[email protected]> Co-authored-by: Tobias Bucher <[email protected]> Co-authored-by: Thalia Archibald <[email protected]> Co-authored-by: WANG Rui <[email protected]> Co-authored-by: Tshepang Mbambo <[email protected]> Co-authored-by: schvv31n <[email protected]> Co-authored-by: Marijn Schouten <[email protected]> Co-authored-by: Urgau <[email protected]> Co-authored-by: Trevor Gross <[email protected]> Co-authored-by: binarycat <[email protected]> Co-authored-by: Alona Enraght-Moony <[email protected]> Co-authored-by: Ed Page <[email protected]> Co-authored-by: kiseitai3 <[email protected]> Co-authored-by: Folkert de Vries <[email protected]> Co-authored-by: León Orell Valerian Liehr <[email protected]> Co-authored-by: Gray Olson <[email protected]> Co-authored-by: Pascal S. de Kloe <[email protected]> Co-authored-by: Shun Sakai <[email protected]> Co-authored-by: Mara Bos <[email protected]> Co-authored-by: github-actions <[email protected]> Co-authored-by: Tamir Duberstein <[email protected]> Co-authored-by: mejrs <[email protected]> Co-authored-by: qinghon <[email protected]> Co-authored-by: Chris Denton <[email protected]> Co-authored-by: Sasha Pourcelot <[email protected]> Co-authored-by: David Tolnay <[email protected]> Co-authored-by: bjorn3 <[email protected]> Co-authored-by: Christopher Berner <[email protected]> Co-authored-by: Yotam Ofek <[email protected]> Co-authored-by: gitbot <git@bot> Co-authored-by: Carolyn Zech <[email protected]> Co-authored-by: Michael Tautschnig <[email protected]>
1 parent 86005d5 commit 26d30a0

File tree

487 files changed

+55782
-2876
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

487 files changed

+55782
-2876
lines changed

.github/workflows/kani.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,13 @@ jobs:
282282
name: Kani List
283283
runs-on: ubuntu-latest
284284
steps:
285+
- name: Remove unnecessary software to free up disk space
286+
run: |
287+
# inspired by https://github.com/easimon/maximize-build-space/blob/master/action.yml
288+
df -h
289+
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /usr/local/.ghcup
290+
df -h
291+
285292
# Step 1: Check out the repository
286293
- name: Checkout Repository
287294
uses: actions/checkout@v4

library/Cargo.lock

Lines changed: 32 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

library/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,4 @@ rustc-demangle.opt-level = "s"
5050
rustc-std-workspace-core = { path = 'rustc-std-workspace-core' }
5151
rustc-std-workspace-alloc = { path = 'rustc-std-workspace-alloc' }
5252
rustc-std-workspace-std = { path = 'rustc-std-workspace-std' }
53+
compiler_builtins = { path = "compiler-builtins/compiler-builtins" }

library/alloc/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ bench = false
1616

1717
[dependencies]
1818
core = { path = "../core", public = true }
19+
compiler_builtins = { path = "../compiler-builtins/compiler-builtins", features = ["rustc-dep-of-std"] }
1920
safety = { path = "../contracts/safety" }
20-
compiler_builtins = { version = "=0.1.160", features = ['rustc-dep-of-std'] }
2121

2222
[features]
2323
compiler-builtins-mem = ['compiler_builtins/mem']
@@ -33,7 +33,6 @@ optimize_for_size = ["core/optimize_for_size"]
3333
[lints.rust.unexpected_cfgs]
3434
level = "warn"
3535
check-cfg = [
36-
'cfg(bootstrap)',
3736
'cfg(no_global_oom_handling)',
3837
'cfg(no_rc)',
3938
'cfg(no_sync)',

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,18 +1416,18 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
14161416
///
14171417
/// # Examples
14181418
///
1419-
/// Splitting a map into even and odd keys, reusing the original map:
1420-
///
14211419
/// ```
14221420
/// #![feature(btree_extract_if)]
14231421
/// use std::collections::BTreeMap;
14241422
///
1423+
/// // Splitting a map into even and odd keys, reusing the original map:
14251424
/// let mut map: BTreeMap<i32, i32> = (0..8).map(|x| (x, x)).collect();
14261425
/// let evens: BTreeMap<_, _> = map.extract_if(.., |k, _v| k % 2 == 0).collect();
14271426
/// let odds = map;
14281427
/// assert_eq!(evens.keys().copied().collect::<Vec<_>>(), [0, 2, 4, 6]);
14291428
/// assert_eq!(odds.keys().copied().collect::<Vec<_>>(), [1, 3, 5, 7]);
14301429
///
1430+
/// // Splitting a map into low and high halves, reusing the original map:
14311431
/// let mut map: BTreeMap<i32, i32> = (0..8).map(|x| (x, x)).collect();
14321432
/// let low: BTreeMap<_, _> = map.extract_if(0..4, |_k, _v| true).collect();
14331433
/// let high = map;

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,30 +1201,30 @@ impl<T, A: Allocator + Clone> BTreeSet<T, A> {
12011201
/// [`retain`]: BTreeSet::retain
12021202
/// # Examples
12031203
///
1204-
/// Splitting a set into even and odd values, reusing the original set:
1205-
///
12061204
/// ```
12071205
/// #![feature(btree_extract_if)]
12081206
/// use std::collections::BTreeSet;
12091207
///
1208+
/// // Splitting a set into even and odd values, reusing the original set:
12101209
/// let mut set: BTreeSet<i32> = (0..8).collect();
12111210
/// let evens: BTreeSet<_> = set.extract_if(.., |v| v % 2 == 0).collect();
12121211
/// let odds = set;
12131212
/// assert_eq!(evens.into_iter().collect::<Vec<_>>(), vec![0, 2, 4, 6]);
12141213
/// assert_eq!(odds.into_iter().collect::<Vec<_>>(), vec![1, 3, 5, 7]);
12151214
///
1216-
/// let mut map: BTreeSet<i32> = (0..8).collect();
1217-
/// let low: BTreeSet<_> = map.extract_if(0..4, |_v| true).collect();
1218-
/// let high = map;
1215+
/// // Splitting a set into low and high halves, reusing the original set:
1216+
/// let mut set: BTreeSet<i32> = (0..8).collect();
1217+
/// let low: BTreeSet<_> = set.extract_if(0..4, |_v| true).collect();
1218+
/// let high = set;
12191219
/// assert_eq!(low.into_iter().collect::<Vec<_>>(), [0, 1, 2, 3]);
12201220
/// assert_eq!(high.into_iter().collect::<Vec<_>>(), [4, 5, 6, 7]);
12211221
/// ```
12221222
#[unstable(feature = "btree_extract_if", issue = "70530")]
1223-
pub fn extract_if<'a, F, R>(&'a mut self, range: R, pred: F) -> ExtractIf<'a, T, R, F, A>
1223+
pub fn extract_if<F, R>(&mut self, range: R, pred: F) -> ExtractIf<'_, T, R, F, A>
12241224
where
12251225
T: Ord,
12261226
R: RangeBounds<T>,
1227-
F: 'a + FnMut(&T) -> bool,
1227+
F: FnMut(&T) -> bool,
12281228
{
12291229
let (inner, alloc) = self.map.extract_if_inner(range);
12301230
ExtractIf { pred, inner, alloc }
@@ -1585,11 +1585,11 @@ where
15851585
}
15861586

15871587
#[unstable(feature = "btree_extract_if", issue = "70530")]
1588-
impl<'a, T, R, F, A: Allocator + Clone> Iterator for ExtractIf<'_, T, R, F, A>
1588+
impl<T, R, F, A: Allocator + Clone> Iterator for ExtractIf<'_, T, R, F, A>
15891589
where
15901590
T: PartialOrd,
15911591
R: RangeBounds<T>,
1592-
F: 'a + FnMut(&T) -> bool,
1592+
F: FnMut(&T) -> bool,
15931593
{
15941594
type Item = T;
15951595

library/alloc/src/ffi/c_str.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,8 @@ impl ops::Deref for CString {
714714
}
715715
}
716716

717+
/// Delegates to the [`CStr`] implementation of [`fmt::Debug`],
718+
/// showing invalid UTF-8 as hex escapes.
717719
#[stable(feature = "rust1", since = "1.0.0")]
718720
impl fmt::Debug for CString {
719721
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {

library/alloc/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@
6666
)]
6767
#![doc(cfg_hide(
6868
not(test),
69-
not(any(test, bootstrap)),
7069
no_global_oom_handling,
7170
not(no_global_oom_handling),
7271
not(no_rc),
@@ -133,7 +132,6 @@
133132
#![feature(local_waker)]
134133
#![feature(maybe_uninit_slice)]
135134
#![feature(maybe_uninit_uninit_array_transpose)]
136-
#![feature(nonnull_provenance)]
137135
#![feature(panic_internals)]
138136
#![feature(pattern)]
139137
#![feature(pin_coerce_unsized_trait)]

library/alloc/src/slice.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,8 +493,6 @@ impl<T> [T] {
493493
///
494494
/// # Examples
495495
///
496-
/// Basic usage:
497-
///
498496
/// ```
499497
/// assert_eq!([1, 2].repeat(3), vec![1, 2, 1, 2, 1, 2]);
500498
/// ```

library/alloc/src/str.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,6 @@ impl str {
246246
///
247247
/// # Examples
248248
///
249-
/// Basic usage:
250-
///
251249
/// ```
252250
/// let s = "this is old";
253251
///
@@ -303,8 +301,6 @@ impl str {
303301
///
304302
/// # Examples
305303
///
306-
/// Basic usage:
307-
///
308304
/// ```
309305
/// let s = "foo foo 123 foo";
310306
/// assert_eq!("new new 123 foo", s.replacen("foo", "new", 2));

0 commit comments

Comments
 (0)