Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
dc3786e
stabilize map_next_if
jdonszelmann Nov 14, 2025
1cd8752
Unix implementation for stdio set/take/replace
the8472 Jan 4, 2026
139d59f
Reword the collect() docs to stress that the return type determines t…
chojs23 Jan 7, 2026
ebd0151
Fix the connect_error test on FreeBSD 15+
asomers Jan 7, 2026
f82dd82
Use `rand` crate more idiomatically
yotamofek Jan 7, 2026
20a94d6
Bump `diesel` to the most recent commit in `cargotest`
jieyouxu Jan 8, 2026
484ea76
adding minicore to test file to avoid duplicating lang error
paradoxicalguy Dec 31, 2025
7e433eb
[miri] make closing stdio file descriptions noops
the8472 Jan 9, 2026
87d7167
Reenable GCC CI download
Kobzol Jan 9, 2026
58a9fdd
Bump `download-ci-gcc-stamp`
Kobzol Jan 9, 2026
6426635
Fix unpacking of gcc-dev component
Kobzol Jan 9, 2026
f6f901f
std: sys: fs: uefi: Implement File::{flush, *sync}
Ayush1325 Jan 9, 2026
07fa70e
llvm: Update `reliable_f16` configuration for LLVM22
tgross35 Jan 10, 2026
fc06a57
Introduce hir::ConstArgKind::Array
reddevilmidzy Jan 7, 2026
618b0b5
Lower hir::ConstArgKind::Array to a ValTree
reddevilmidzy Jan 8, 2026
522be7f
Fix clippy
reddevilmidzy Jan 8, 2026
f2f45ff
Add mGCA array expression tests
reddevilmidzy Jan 9, 2026
99a8e38
improve eii macro by using ecx methods
jdonszelmann Jan 8, 2026
00ad671
Subscribe myself to attr parsing
JonathanBrouwer Jan 10, 2026
da0dda1
Remove special case for `AllowedTargets::CrateLevel`
JonathanBrouwer Jan 10, 2026
6878e73
std: sys: fs: uefi: Implement File::seek
Ayush1325 Jan 10, 2026
917d900
Rollup merge of #148941 - stabilize-map-if, r=jhpratt
Zalathar Jan 11, 2026
2b313a5
Rollup merge of #150368 - minicore-ordering, r=workingjubilee
Zalathar Jan 11, 2026
a373085
Rollup merge of #150668 - stdio-swap, r=Mark-Simulacrum,RalfJung
Zalathar Jan 11, 2026
728cb7c
Rollup merge of #150743 - docs/iterator, r=Mark-Simulacrum
Zalathar Jan 11, 2026
6c98b01
Rollup merge of #150776 - connect_error-fbsd15, r=Mark-Simulacrum
Zalathar Jan 11, 2026
d987101
Rollup merge of #150781 - pr/cleanup-rand-usages, r=Mark-Simulacrum
Zalathar Jan 11, 2026
3bf42fc
Rollup merge of #150786 - mgca-array, r=BoxyUwU
Zalathar Jan 11, 2026
3d61923
Rollup merge of #150812 - bump-cargotest-diesel, r=Mark-Simulacrum
Zalathar Jan 11, 2026
8c72f6f
Rollup merge of #150862 - uefi-fs-flush, r=the8472
Zalathar Jan 11, 2026
4f73483
Rollup merge of #150873 - reenable-gcc-download-ci, r=marcoieni
Zalathar Jan 11, 2026
801c310
Rollup merge of #150906 - eii-ecx-mehods, r=Kivooeo
Zalathar Jan 11, 2026
aef1512
Rollup merge of #150908 - llvm-f16-cfg, r=nikic
Zalathar Jan 11, 2026
23cfb4b
Rollup merge of #150918 - uefi-fs-seek, r=jhpratt
Zalathar Jan 11, 2026
a54c4e2
Rollup merge of #150922 - subscribe-attr-parsing, r=Urgau
Zalathar Jan 11, 2026
b6f2eb4
Rollup merge of #150930 - crate_level, r=jdonszelmann
Zalathar Jan 11, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
stabilize map_next_if
  • Loading branch information
jdonszelmann committed Dec 17, 2025
commit dc3786eb3c0b373665939763ddeac1d630f07ac8
7 changes: 2 additions & 5 deletions library/core/src/iter/adapters/peekable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,6 @@ impl<I: Iterator> Peekable<I> {
///
/// Parse the leading decimal number from an iterator of characters.
/// ```
/// #![feature(peekable_next_if_map)]
/// let mut iter = "125 GOTO 10".chars().peekable();
/// let mut line_num = 0_u32;
/// while let Some(digit) = iter.next_if_map(|c| c.to_digit(10).ok_or(c)) {
Expand All @@ -349,7 +348,6 @@ impl<I: Iterator> Peekable<I> {
///
/// Matching custom types.
/// ```
/// #![feature(peekable_next_if_map)]
///
/// #[derive(Debug, PartialEq, Eq)]
/// enum Node {
Expand Down Expand Up @@ -408,7 +406,7 @@ impl<I: Iterator> Peekable<I> {
///# ],
///# )
/// ```
#[unstable(feature = "peekable_next_if_map", issue = "143702")]
#[stable(feature = "peekable_next_if_map", since = "CURRENT_RUSTC_VERSION")]
pub fn next_if_map<R>(&mut self, f: impl FnOnce(I::Item) -> Result<R, I::Item>) -> Option<R> {
let unpeek = if let Some(item) = self.next() {
match f(item) {
Expand Down Expand Up @@ -437,7 +435,6 @@ impl<I: Iterator> Peekable<I> {
///
/// Parse the leading decimal number from an iterator of characters.
/// ```
/// #![feature(peekable_next_if_map)]
/// let mut iter = "125 GOTO 10".chars().peekable();
/// let mut line_num = 0_u32;
/// while let Some(digit) = iter.next_if_map_mut(|c| c.to_digit(10)) {
Expand All @@ -446,7 +443,7 @@ impl<I: Iterator> Peekable<I> {
/// assert_eq!(line_num, 125);
/// assert_eq!(iter.collect::<String>(), " GOTO 10");
/// ```
#[unstable(feature = "peekable_next_if_map", issue = "143702")]
#[stable(feature = "peekable_next_if_map", since = "CURRENT_RUSTC_VERSION")]
pub fn next_if_map_mut<R>(&mut self, f: impl FnOnce(&mut I::Item) -> Option<R>) -> Option<R> {
let unpeek = if let Some(mut item) = self.next() {
match f(&mut item) {
Expand Down
1 change: 0 additions & 1 deletion library/coretests/tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@
#![feature(one_sided_range)]
#![feature(option_reduce)]
#![feature(pattern)]
#![feature(peekable_next_if_map)]
#![feature(pointer_is_aligned_to)]
#![feature(portable_simd)]
#![feature(ptr_metadata)]
Expand Down
Loading