Skip to content

Commit 22221db

Browse files
authored
Rollup merge of rust-lang#122829 - ShoyuVanilla:gen-block-impl-fused-iter, r=compiler-errors
Implement `FusedIterator` for `gen` block cc rust-lang#117078
2 parents 571bfda + 1d8ba1b commit 22221db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/iter/traits/marker.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ pub unsafe trait TrustedFused {}
2828
#[rustc_unsafe_specialization_marker]
2929
// FIXME: this should be a #[marker] and have another blanket impl for T: TrustedFused
3030
// but that ICEs iter::Fuse specializations.
31+
#[cfg_attr(not(bootstrap), lang = "fused_iterator")]
3132
pub trait FusedIterator: Iterator {}
3233

3334
#[stable(feature = "fused", since = "1.26.0")]

0 commit comments

Comments
 (0)