Skip to content

Make rustc careful about implicit overwrites #15240

@natepisarski

Description

@natepisarski

rustc currently overwrites source files without warning or failure if they do not have a file extension. For example rustc myfile succeeds without output, but is allowed to replace myfile with the binary output, deleting its contents.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions