You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
Note: see as well:
rustfmtas a "transpiler" (not as a formatting action, which is already available) to Compiler Explorer: [COMPILER REQUEST]:rustfmtfor Rust compiler-explorer/compiler-explorer#4553.Features that we would like to see
Required (we almost certainly want them)
rustfmtgenerates when using a trailing empty comment, but without having to use the comment.used items on individual lines when requested rust-lang/rustfmt#6829.imports_layout): [unstable option] imports_layout rust-lang/rustfmt#3361.imports_granularity): [unstable option]imports_granularityrust-lang/rustfmt#4991.Nice to have (not critical, we could workaround if needed, etc.)
Stabilize
wrap_comments.wrap_doc_comments(even just that would already be quite nice to have).Stabilize
format_code_in_doc_comments.doc_comment_code_block_width.Support
RUSTC_BOOTSTRAP.RUSTC_BOOTSTRAPrust-lang/rustfmt#4884.Stabilize
reorder_impl_items.Stabilize
comment_width.Stabilize
normalize_comments.Stabilize
hex_literal_case.hex_literal_caserust-lang/rustfmt#5081.Support
skip_macro_invocations, i.e. skipping the formatting of some macro invocations by the macro name.skip_macro_invocationsrust-lang/rustfmt#5346.module!) -- no concrete one yet though.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.)
#[no_mangle]functions should not haveextern "Rust"removed.extern "Rust"from functions rust-lang/rustfmt#5701.rustfmtICEs (apparently on purpose) on certain expanded-Zunpretty=expanded(i.e..rsi) constructs (e.g.offset_of!).rustfmtwants us to report the ICEs and they are also happy to use small snippets like the one we reported as test cases.rustfmtICE with expanded code rust-lang/rustfmt#6105.const): ICE: unreachablesrc/tools/rustfmt/src/expr.rs:407:13rust-lang/rustfmt#5885.