Skip to content

Commit 142ac73

Browse files
committed
PR feedback
1 parent 89a7c84 commit 142ac73

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

alloc/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@
140140
#![feature(maybe_uninit_extra, maybe_uninit_slice, maybe_uninit_uninit_array)]
141141
#![feature(alloc_layout_extra)]
142142
#![feature(trusted_random_access)]
143-
#![feature(try_trait)]
144-
#![feature(try_trait_v2)]
143+
#![cfg_attr(bootstrap, feature(try_trait))]
144+
#![cfg_attr(not(bootstrap), feature(try_trait_v2))]
145145
#![feature(min_type_alias_impl_trait)]
146146
#![feature(associated_type_bounds)]
147147
#![feature(slice_group_by)]

core/src/iter/traits/iterator.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2418,7 +2418,8 @@ pub trait Iterator {
24182418
Self: Sized,
24192419
F: FnMut(&Self::Item) -> R,
24202420
R: Try<Output = bool>,
2421-
// FIXME: This is a weird bound; the API should change
2421+
// FIXME: This bound is rather strange, but means minimal breakage on nightly.
2422+
// See #85115 for the issue tracking a holistic solution for this and try_map.
24222423
R: crate::ops::TryV2<Residual = Result<crate::convert::Infallible, E>>,
24232424
{
24242425
#[inline]

0 commit comments

Comments
 (0)