Skip to content

Create read-only file fails on nightly #31453

@danburkert

Description

@danburkert

cc @alexcrichton

There has recently been a regression introduced to std::fs. The following line results in Ok on stable and Err on nightly:

std::fs::OpenOptions::new().read(true).create(true).open("some-file")

This regression is affecting Linux, Windows, and OS X. You can see it in action in recent fs2 CI builds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions