Skip to content

Tests it_yields_the_most_recent_items_first failed #162

@jackyzy823

Description

@jackyzy823
thread 'test::iter::it_yields_the_most_recent_items_first' panicked at 'assertion failed: `(left == right)`
  left: `[(3, 1), (3, 3), (0, 0), (2, 2)]`,
 right: `[(1, 1), (3, 3), (0, 0), (2, 2)]`', src/lib.rs:738:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

---- test::notify_iter::it_yields_the_most_recent_items_first stdout ----
thread 'test::notify_iter::it_yields_the_most_recent_items_first' panicked at 'assertion failed: `(left == right)`
  left: `[(3, 1), (3, 3), (0, 0), (2, 2)]`,
 right: `[(1, 1), (3, 3), (0, 0), (2, 2)]`', src/lib.rs:786:13

Expected behavior
Tests passed.


The last work rust version is 1.66.1
The first broken rust version is 1.67.0

So there might be some internal changes in collect , which might conflict with lru_time_cache internal iterator implementation.

Desktop (please complete the following information where applicable):

  • lru_time_cache crate version 0.11.11

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions