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

rustfmt wanted features & bugfixes #398

Open
2 of 9 tasks
ojeda opened this issue Jun 29, 2021 · 6 comments
Open
2 of 9 tasks

rustfmt wanted features & bugfixes #398

ojeda opened this issue Jun 29, 2021 · 6 comments
Labels
meta Meta issue. • toolchain Related to `rustc`, `bindgen`, `rustdoc`, LLVM, Clippy...

Comments

@ojeda
Copy link
Member

ojeda commented Jun 29, 2021

Features that we would like to see

Required (we almost certainly want them)

Nice to have (not critical, we could workaround if needed, etc.)

Low priority (we will likely not use them in the end)

Done (stabilized, fixed, not needed anymore, etc.)


Bugs that we would like to see fixed

Required (we almost certainly want them)

Nice to have (probably not critical, we could workaround if needed, etc.)

Low priority (we will likely not use them in the end)

Done (stabilized, fixed, or not needed anymore, etc.)

@bjorn3
Copy link
Member

bjorn3 commented Jun 29, 2021

Which unstable rustfmt features are actually used that necessitate RUSTC_BOOTSTRAP?

@ojeda
Copy link
Member Author

ojeda commented Jun 29, 2021

format_code_in_doc_comments is the one we are currently using.

@bjorn3
Copy link
Member

bjorn3 commented Jun 29, 2021

That one sounds useful. https://github.com/rust-lang/rustfmt/issues?q=format_code_in_doc_comments+is%3Aopen lists a couple of issues with it. Once those are fixed it would make sense to push for stabilization IMHO.

@ojeda
Copy link
Member Author

ojeda commented Jun 29, 2021

Indeed! We also have a few others in the .rustfmt.toml file that were not currently enabled. I have put them in the list above :-)

@ojeda ojeda added meta Meta issue. • toolchain Related to `rustc`, `bindgen`, `rustdoc`, LLVM, Clippy... labels Jun 30, 2021
@tgross35
Copy link
Collaborator

hex_literal_case seems useful, and potentially pretty easy to get over the stabilization line. Thinking about this because I noticed a patch that had a mix of upper- and lowercase hex, grepping through the kernel it seems like lowercase is much more common (and used by all in-tree Rust code so far)

Context: https://lore.kernel.org/rust-for-linux/CALNs47u6+EFYkvpyHZD5zLcjQeb2CuZNTOjPuZ4MKewoKZYPMg@mail.gmail.com/

@ojeda
Copy link
Member Author

ojeda commented Aug 24, 2024

Thanks Trevor! I agree, that one would be useful -- added above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta Meta issue. • toolchain Related to `rustc`, `bindgen`, `rustdoc`, LLVM, Clippy...
Development

No branches or pull requests

3 participants