Skip to content

Commit 2b3a37b

Browse files
committed
Restore Vec::from_iter() specialization
Since I said "no intentional functional change" in the previous commit, I guess it was inevitable there were unintentional changes. Not functional, but optimization-wise. This restores the extend specialization's use in Vec::from_iter.
1 parent 5058e58 commit 2b3a37b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcollections/vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1517,7 +1517,7 @@ impl<T> FromIterator<T> for Vec<T> {
15171517
vector
15181518
}
15191519
};
1520-
vector.extend_desugared(iterator);
1520+
vector.extend(iterator);
15211521
vector
15221522
}
15231523
}

0 commit comments

Comments
 (0)