Skip to content

Debug build panics due to debug_assert_eq!("\t".width(), 0); assertion #922

@styris-ame

Description

@styris-ame

(1) When compiling a debug build and running a comparison with it, the mentioned assertion causes a panic:
left: 1
right: 0

I tested this on both Windows and macOS.

The code comment for that assertion states:

.width() on tabs returns 0, whereas we want to model them as tab_width spaces.

However this appears to somehow no longer be the case, at least for me?

(2) Irrelevant

(3) Latest commit

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