Skip to content

Commit 891ff4b

Browse files
committed
Auto merge of rust-lang#86904 - m-ou-se:prelude-collision-check-trait, r=nikomatsakis
Check FromIterator trait impl in prelude collision check. Fixes rust-lang#86902.
2 parents 6de1af8 + ec85c32 commit 891ff4b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/iter/traits/collect.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
over elements of type `{A}`",
9090
label = "value of type `{Self}` cannot be built from `std::iter::Iterator<Item={A}>`"
9191
)]
92+
#[rustc_diagnostic_item = "FromIterator"]
9293
pub trait FromIterator<A>: Sized {
9394
/// Creates a value from an iterator.
9495
///

0 commit comments

Comments
 (0)