Skip to content

Do not emit file name on stdin mode #4225

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

Merged
merged 1 commit into from
Jun 2, 2020

Conversation

topecongiro
Copy link
Contributor

Currently, rustfmt emits stdin: prefix unnecessarily on stdin mode:

$ rustfmt
fn main()
{}^D
stdin:

fn main() {}

This PR fixes it so that rustfmt no longer emits the prefix.

@topecongiro topecongiro merged commit 5f536d6 into rust-lang:master Jun 2, 2020
@topecongiro topecongiro deleted the fix-stdin branch June 2, 2020 02:57
@ytmimi
Copy link
Contributor

ytmimi commented Apr 3, 2022

I'm unable to reproduce this behavior on rustfmt 1.4.38-nightly (7d6ca7c3 2022-04-02). Does this need to be backported?

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

Successfully merging this pull request may close these issues.

4 participants