Skip to content

Fix implicit overwrite for extensionless files #15243

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Fix implicit overwrite for extensionless files #15243

wants to merge 1 commit into from

Conversation

natepisarski
Copy link

This change fixes issues #15240, which I filed earlier. It's a check to ensure that any file being compiled cannot be assigned an output file with the same name as the source implicitly.

For instance, rustc myfile would before overwrite myfile with the binary of itself. Now, the compiler sees this as an error, unless the compiler is given a directive to overwrite the file via the -o flag.

@sfackler
Copy link
Member

There's a tidy issue: https://travis-ci.org/rust-lang/rust/jobs/28689187

@sfackler
Copy link
Member

Ping?

@sfackler
Copy link
Member

(Also needs a rebase)

@alexcrichton
Copy link
Member

Closing due to inactivity, but feel free to reopen with a rebase!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants