Skip to content

Commit b5adb2c

Browse files
github-actions[bot]xtqqczzeRalfJungasder8215sayantn
authored
Merge subtree update for toolchain nightly-2026-11-19 (#784)
This is an automated PR to merge library subtree updates from 2026-11-12 (rust-lang/rust@3ef0c22) to 2026-11-19 (rust-lang/rust@65ce861), 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: 9016e78 --------- Signed-off-by: Xubai Wang <xubaiwwj@gmail.com> Signed-off-by: Hardik Kumar <hardikxk@gmail.com> Signed-off-by: Ayush Singh <ayush@beagleboard.org> Co-authored-by: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Co-authored-by: Ralf Jung <post@ralfj.de> Co-authored-by: Mahdi Ali-Raihan <asder8215@gmail.com> Co-authored-by: Sayantan Chakraborty <142906350+sayantn@users.noreply.github.com> Co-authored-by: Daniel Scherzer <daniel.e.scherzer@gmail.com> Co-authored-by: Jonathan Brouwer <jonathantbrouwer@gmail.com> Co-authored-by: Valaphee64.exe <iam@valaphee.com> Co-authored-by: Jakub Beránek <berykubik@gmail.com> Co-authored-by: arvindkhoisnam <khoisnamarvind@gmail.com> Co-authored-by: Max Dexheimer <maxdexh03@gmail.com> Co-authored-by: Folkert de Vries <folkert@folkertdev.nl> Co-authored-by: Tim (Theemathas Chirananthavat) <theemathas@gmail.com> Co-authored-by: bors <bors@rust-lang.org> Co-authored-by: malezjaa <poreba.kris@gmail.com> Co-authored-by: Xing Xue <xingxue@outlook.com> Co-authored-by: mejrs <59372212+mejrs@users.noreply.github.com> Co-authored-by: Jana Dönszelmann <jana@donsz.nl> Co-authored-by: León Orell Valerian Liehr <me@fmease.dev> Co-authored-by: Joy <soniqjjj@gmail.com> Co-authored-by: Zac Harrold <zac@harrold.com.au> Co-authored-by: Marius Melzer <marius.melzer@kernkonzept.com> Co-authored-by: Chris Denton <chris@chrisdenton.dev> Co-authored-by: krokodeyu <1146060340@qq.com> Co-authored-by: Beat Küng <beat-kueng@gmx.net> Co-authored-by: Jacob Pratt <jacob@jhpratt.dev> Co-authored-by: yhx-12243 <yhx12243@gmail.com> Co-authored-by: Xubai Wang <xubaiwwj@gmail.com> Co-authored-by: waffle <wffl+16@riseup.net> Co-authored-by: Guillaume Gomez <contact@guillaume-gomez.fr> Co-authored-by: Toni Peter <mail@tonipeter.de> Co-authored-by: Bas Schoenmaeckers <bas.schoenmaeckers@gmail.com> Co-authored-by: Zalathar <Zalathar@users.noreply.github.com> Co-authored-by: zannabianca1997 <zannabianca199712@gmail.com> Co-authored-by: Hardik Kumar <hardikxk@gmail.com> Co-authored-by: lazerg <lazerg2@gmail.com> Co-authored-by: Ayush Singh <ayush@beagleboard.org> Co-authored-by: Lewis McClelland <lewis@lewismcclelland.me> Co-authored-by: Aelin Reidel <aelin@trifectatech.org> Co-authored-by: Dennis Duda <git@seri.tools> Co-authored-by: Nicole LeGare <legaren@immunant.com> Co-authored-by: Pavel Grigorenko <GrigorenkoPV@ya.ru> Co-authored-by: Shun Sakai <sorairolake@protonmail.ch> Co-authored-by: WANG Rui <wangrui@loongson.cn> Co-authored-by: Yilin Chen <1479826151@qq.com> Co-authored-by: Josh Stone <jistone@redhat.com> Co-authored-by: Stefan Lankes <slankes@eonerc.rwth-aachen.de> Co-authored-by: ywxt <ywxtcwh@gmail.com> Co-authored-by: Vlad Mashkautsan <47895995+vladmashk@users.noreply.github.com> Co-authored-by: Joseph Zhao <zhaozihan542259545@gmail.com> Co-authored-by: Joseph Zhao <65984904+programskillforverification@users.noreply.github.com> Co-authored-by: The rustc-josh-sync Cronjob Bot <github-actions@github.com> Co-authored-by: Ben Kimock <kimockb@gmail.com> Co-authored-by: Tess4552 <tesshobbes@fastmail.com> Co-authored-by: Clar Fon <15850505+clarfonthey@users.noreply.github.com> Co-authored-by: Gennaro Biondi <throwawayishereultrakill@gmail.com> Co-authored-by: N1ark <opale.sjostedt@gmail.com> Co-authored-by: Walentalien <voliinyk@student.agh.edu.pl> Co-authored-by: user.email <valentynfyi@gmail.com> Co-authored-by: suryansh-dey <suryanshdey@gmail.com> Co-authored-by: panstromek <panstromek@seznam.cz> Co-authored-by: Folkert de Vries <flokkievids@gmail.com> Co-authored-by: T0mstone <t0mstone@helium-plasma.de> Co-authored-by: Jubilee Young <workingjubilee@gmail.com> Co-authored-by: Khashayar Fereidani <info@fereidani.com> Co-authored-by: Jules Bertholet <julesbertholet@quoi.xyz> Co-authored-by: jyn <github@jyn.dev> Co-authored-by: Trevor Gross <tg@trevorgross.com> Co-authored-by: gitbot <git@bot> Co-authored-by: Felipe R. Monteiro <rms.felipe@gmail.com>
1 parent 525414a commit b5adb2c

216 files changed

Lines changed: 42975 additions & 4887 deletions

File tree

Some content is hidden

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

‎.github/workflows/flux.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
branches: [main]
99

1010
env:
11-
FLUX_VERSION: "0301038641e330c133a237d66bb95a6f214058c4"
11+
FLUX_VERSION: "828d6086c94a1171fce81fab449ace2abc9e1540"
1212
FIXPOINT_VERSION: "nightly"
1313

1414
jobs:

‎library/alloc/src/boxed/convert.rs‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,13 +290,12 @@ impl<T, const N: usize, A: Allocator> TryFrom<Vec<T, A>> for Box<[T; N], A> {
290290

291291
/// Attempts to convert a `Vec<T>` into a `Box<[T; N]>`.
292292
///
293-
/// Like [`Vec::into_boxed_slice`], this is in-place if `vec.capacity() == N`,
294-
/// but will require a reallocation otherwise.
293+
/// For allocation behavior, see [`Vec::into_boxed_slice`].
295294
///
296295
/// # Errors
297296
///
298297
/// Returns the original `Vec<T>` in the `Err` variant if
299-
/// `boxed_slice.len()` does not equal `N`.
298+
/// `vec.len()` does not equal `N`.
300299
///
301300
/// # Examples
302301
///

‎library/alloc/src/collections/binary_heap/mod.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1441,7 +1441,7 @@ impl<T, A: Allocator> BinaryHeap<T, A> {
14411441
#[must_use]
14421442
#[stable(feature = "rust1", since = "1.0.0")]
14431443
#[rustc_confusables("length", "size")]
1444-
#[rustc_const_stable(feature = "const_binary_heap_len", since = "CURRENT_RUSTC_VERSION")]
1444+
#[rustc_const_stable(feature = "const_binary_heap_len", since = "1.101.0")]
14451445
pub const fn len(&self) -> usize {
14461446
self.data.len()
14471447
}
@@ -1466,7 +1466,7 @@ impl<T, A: Allocator> BinaryHeap<T, A> {
14661466
/// ```
14671467
#[must_use]
14681468
#[stable(feature = "rust1", since = "1.0.0")]
1469-
#[rustc_const_stable(feature = "const_binary_heap_len", since = "CURRENT_RUSTC_VERSION")]
1469+
#[rustc_const_stable(feature = "const_binary_heap_len", since = "1.101.0")]
14701470
pub const fn is_empty(&self) -> bool {
14711471
self.len() == 0
14721472
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2837,7 +2837,7 @@ impl<K, V, A: AllocatorClone> BTreeMap<K, V, A> {
28372837
/// ```
28382838
#[must_use]
28392839
#[stable(feature = "rust1", since = "1.0.0")]
2840-
#[rustc_const_stable(feature = "const_btree_len", since = "CURRENT_RUSTC_VERSION")]
2840+
#[rustc_const_stable(feature = "const_btree_len", since = "1.101.0")]
28412841
#[rustc_confusables("length", "size")]
28422842
pub const fn len(&self) -> usize {
28432843
self.length
@@ -2857,7 +2857,7 @@ impl<K, V, A: AllocatorClone> BTreeMap<K, V, A> {
28572857
/// ```
28582858
#[must_use]
28592859
#[stable(feature = "rust1", since = "1.0.0")]
2860-
#[rustc_const_stable(feature = "const_btree_len", since = "CURRENT_RUSTC_VERSION")]
2860+
#[rustc_const_stable(feature = "const_btree_len", since = "1.101.0")]
28612861
pub const fn is_empty(&self) -> bool {
28622862
self.len() == 0
28632863
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,7 +1266,7 @@ impl<T, A: AllocatorClone> BTreeSet<T, A> {
12661266
/// ```
12671267
#[must_use]
12681268
#[stable(feature = "rust1", since = "1.0.0")]
1269-
#[rustc_const_stable(feature = "const_btree_len", since = "CURRENT_RUSTC_VERSION")]
1269+
#[rustc_const_stable(feature = "const_btree_len", since = "1.101.0")]
12701270
#[rustc_confusables("length", "size")]
12711271
pub const fn len(&self) -> usize {
12721272
self.map.len()
@@ -1286,7 +1286,7 @@ impl<T, A: AllocatorClone> BTreeSet<T, A> {
12861286
/// ```
12871287
#[must_use]
12881288
#[stable(feature = "rust1", since = "1.0.0")]
1289-
#[rustc_const_stable(feature = "const_btree_len", since = "CURRENT_RUSTC_VERSION")]
1289+
#[rustc_const_stable(feature = "const_btree_len", since = "1.101.0")]
12901290
pub const fn is_empty(&self) -> bool {
12911291
self.len() == 0
12921292
}

‎library/alloc/src/collections/linked_list.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ impl<T, A: Allocator> LinkedList<T, A> {
689689
#[inline]
690690
#[must_use]
691691
#[stable(feature = "rust1", since = "1.0.0")]
692-
#[rustc_const_stable(feature = "const_linked_list_len", since = "CURRENT_RUSTC_VERSION")]
692+
#[rustc_const_stable(feature = "const_linked_list_len", since = "1.101.0")]
693693
pub const fn is_empty(&self) -> bool {
694694
self.head.is_none()
695695
}
@@ -717,7 +717,7 @@ impl<T, A: Allocator> LinkedList<T, A> {
717717
#[inline]
718718
#[must_use]
719719
#[stable(feature = "rust1", since = "1.0.0")]
720-
#[rustc_const_stable(feature = "const_linked_list_len", since = "CURRENT_RUSTC_VERSION")]
720+
#[rustc_const_stable(feature = "const_linked_list_len", since = "1.101.0")]
721721
#[rustc_confusables("length", "size")]
722722
pub const fn len(&self) -> usize {
723723
self.len

‎library/alloc/src/collections/vec_deque/drain.rs‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@ impl<'a, T, A: Allocator> Drain<'a, T, A> {
7272
(deque.buffer_range(a_range), deque.buffer_range(b_range))
7373
}
7474
}
75+
76+
/// Returns a reference to the underlying allocator.
77+
#[unstable(feature = "allocator_ext", issue = "163177", implied_by = "allocator_api")]
78+
#[inline]
79+
pub fn allocator(&self) -> &A {
80+
// SAFETY: `deque` is valid for reads for the lifetime of the `Drain`.
81+
unsafe { self.deque.as_ref().allocator() }
82+
}
7583
}
7684

7785
#[stable(feature = "collection_debug", since = "1.17.0")]

‎library/alloc/src/collections/vec_deque/into_iter.rs‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ impl<T, A: Allocator> IntoIter<T, A> {
3131
pub(super) fn into_vecdeque(self) -> VecDeque<T, A> {
3232
self.inner
3333
}
34+
35+
/// Returns a reference to the underlying allocator.
36+
#[unstable(feature = "allocator_ext", issue = "163177", implied_by = "allocator_api")]
37+
#[inline]
38+
pub fn allocator(&self) -> &A {
39+
self.inner.allocator()
40+
}
3441
}
3542

3643
#[stable(feature = "collection_debug", since = "1.17.0")]

‎library/alloc/src/collections/vec_deque/mod.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1807,7 +1807,7 @@ impl<T, A: Allocator> VecDeque<T, A> {
18071807
/// assert_eq!(deque.len(), 1);
18081808
/// ```
18091809
#[stable(feature = "rust1", since = "1.0.0")]
1810-
#[rustc_const_stable(feature = "const_vec_deque_len", since = "CURRENT_RUSTC_VERSION")]
1810+
#[rustc_const_stable(feature = "const_vec_deque_len", since = "1.101.0")]
18111811
#[rustc_confusables("length", "size")]
18121812
pub const fn len(&self) -> usize {
18131813
self.len
@@ -1826,7 +1826,7 @@ impl<T, A: Allocator> VecDeque<T, A> {
18261826
/// assert!(!deque.is_empty());
18271827
/// ```
18281828
#[stable(feature = "rust1", since = "1.0.0")]
1829-
#[rustc_const_stable(feature = "const_vec_deque_len", since = "CURRENT_RUSTC_VERSION")]
1829+
#[rustc_const_stable(feature = "const_vec_deque_len", since = "1.101.0")]
18301830
pub const fn is_empty(&self) -> bool {
18311831
self.len == 0
18321832
}

‎library/alloc/src/fmt.rs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@
139139
//! The width can also be provided dynamically by referencing another argument
140140
//! with a `$` suffix. Use `{:N$}` to reference the Nth positional argument
141141
//! (where N is an integer), or `{:name$}` to reference a named argument. The
142-
//! referenced argument must be of type [`usize`].
142+
//! referenced argument must be of type [`usize`]. Currently formatting will
143+
//! panic if the width exceeds [`u16::MAX`].
143144
//!
144145
//! Referring to an argument with the dollar syntax does not affect the "next
145146
//! argument" counter, so it's usually a good idea to refer to arguments by

0 commit comments

Comments
 (0)