Skip to content

cargo fmt doesn't accept --message-format. #3274

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
eddyb opened this issue Dec 29, 2018 · 1 comment · Fixed by #3752
Closed

cargo fmt doesn't accept --message-format. #3274

eddyb opened this issue Dec 29, 2018 · 1 comment · Fixed by #3752

Comments

@eddyb
Copy link
Member

eddyb commented Dec 29, 2018

This means it can't easily be invoked by tools (e.g. editors) that want to avoid dealing with multiline error messages.

#2817 is related, in that cargo fmt should probably accept most general Cargo flags.

cc @Manishearth @oli-obk Does cargo clippy do anything special here?

@oli-obk
Copy link
Contributor

oli-obk commented Dec 29, 2018

Clippy calls cargo check and forwards all arguments, so I presume message-format will work, too.

I think we need a general way to invoke drivers like rustfmt, clippy-driver and others. I opened an issue on the cargo repo a while ago: rust-lang/cargo#6356

Any discussion on my suggestions are very welcome

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

Successfully merging a pull request may close this issue.

4 participants