Skip to content

compiletest path normalization is too aggressive #59109

Closed
@euclio

Description

@euclio

Notice that the backslashes in the help output for intra-doc link warnings are incorrectly converted to forward slashes:

= help: to escape `[` and `]` characters, just add '/' before them like `/[` or `/]`

The normalization is currently just a replace on all backslashes:

.replace("\\", "/") // normalize for paths on windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-testsuiteArea: The testsuite used to check the correctness of rustc

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions