Skip to content

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!

flip1995 added a commit to flip1995/rust that referenced this pull request Jul 10, 2025
r? @ghost

changelog: none
Muscraft pushed a commit to Muscraft/rust that referenced this pull request Jul 21, 2025
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