Skip to content

Path equality isn't correct #31374

Description

@GuillaumeGomez

The following code always returns false whereas it shouldn't:

use std::path::Path;

fn main() {
    println!("{}", Path::new("src") == Path::new("./src"));
}

Here, both Paths refer to the same location. I'm writing a patch (canonicalize function).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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