Skip to content

Broken comparison function in compute_suggestion #1

@ghost

Description

This comparison function is broken.

According to it, these two statements are true at the same time:

  • (11, 0.0) < (14, 0.0)
  • (14, 0.0) < (11, 0.0)

The vector will be sorted in a totally unreliable order.
See this issue and the fix suggested by @bluss: rust-lang/rust#38685

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions