Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
552: Fix subtraction overflow in DuplicatesBy size_hint r=phimuemue a=arpankapoor Sample that panics with `attempt to subtract with overflow` in a `debug` build: ```rust use itertools::Itertools; fn main() { println!("{:?}", vec!["a", "b", "c", "c"].iter().duplicates().collect_vec()); } ``` Co-authored-by: Arpan Kapoor <a@arpankapoor.com>
- Loading branch information
Showing
2 changed files
with
18 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters