Skip to content
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

--message-format=json panic on broken pipe #6183

Closed
richardscollin opened this issue Jun 4, 2024 · 1 comment
Closed

--message-format=json panic on broken pipe #6183

richardscollin opened this issue Jun 4, 2024 · 1 comment

Comments

@richardscollin
Copy link

rustc version: 1.80.0-nightly (7c52d2db6 2024-06-03)
platform: x86_64-unknown-linux-gnu

On a clean project run:

cargo +nightly fmt --message-format=json | echo ice

If the program which is being piped to (echo in this case) doesn't consume the input, the write will cause a panic in rustfmt.

rustc-ice-2024-06-04T16_38_03-53230.txt

My expected behavior is the command would fail, but it would not generate a rustc-ice-2024-06-04T16_38_03-53230.txt file or suggesting filing an issue.

@ytmimi
Copy link
Contributor

ytmimi commented Jun 4, 2024

Thanks for the report. This is likely a duplicate of #6089 and other reported piping issues like #2926

@ytmimi ytmimi closed this as not planned Won't fix, can't repro, duplicate, stale Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants