rust-itertools / itertools

Extra iterator adaptors, iterator methods, free functions, and macros.
https://docs.rs/itertools/
Apache License 2.0
2.76k stars 309 forks source link

Add track_caller attr for asser_equal #976

Closed l4l closed 1 month ago

l4l commented 3 months ago

Without the attribute the panic location is useless, see playground:

thread 'main' panicked at /playground/.cargo/registry/src/index.crates.io-6f17d22bba15001f/itertools-0.13.0/src/lib.rs:4289:17:
Failed assertion Some(1) == Some(2) for iteration 0

Stable since 1.44: https://github.com/rust-lang/rust/pull/72445

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.47%. Comparing base (6814180) to head (97d9ecc). Report is 128 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #976 +/- ## ========================================== + Coverage 94.38% 94.47% +0.08% ========================================== Files 48 49 +1 Lines 6665 6769 +104 ========================================== + Hits 6291 6395 +104 Misses 374 374 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.