Skip to content

regex-syntax fails to compile with unicode-perl feature #770

Closed
@ThouCheese

Description

@ThouCheese

What version of regex are you using?

Regex 1.5.2, regex-syntax 0.6.24

Describe the bug at a high level.

regex-syntax doesn't compile when default features are turned off and unicode-perl is turned on.

What are the steps to reproduce the behavior?

Create a new cargo project and list either regex or regex-syntax with default-features turned off and unicode-perl turned on. Easy repro: clone this git repository: https://github.com/ThouCheese/regex-issue

What is the actual behavior?

I expect this to compile.

What is the expected behavior?

I doesn't compile with the error message:

    |
375 |         use unicode_tables::perl_decimal::DECIMAL_NUMBER;
    |             ^^^^^^^^^^^^^^ use of undeclared crate or module `unicode_tables`

This should be fixed if line 375 is changed to use crate::unicode_tables::perl_decimal::DECIMAL_NUMBER;, I believe.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions