Sync rustfmt subtree 2024-01-20 #1
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
r? @ghost
[1.7.0] 2023-10-22
Fixed
format_code_in_doc_comments=truewas set some line comments were converted to block comments #5533.will now be wrapped in parenthesis. e.g.0. .to_string()will be formatted as(0.).to_string()#5791macro_rules!branch #5730vec!{}#5735macro_rules!defintion e.g.macro_rules! foo {}#5882.or)won't be treated as ordered markdown lists because.or)must be preceded by a number to start an ordered markdown list #5835.#4808for<T>when using the#![feature(non_lifetime_binders)]#5721version = Twonewlines between where clause bounds will be removed #5655let-elsestatements that have leading attributes When settingversion = Two#5901Changed
RustABIs. e.gextern "Rust" fn im_a_rust_fn() {}#5701trailing_semicolon = falsewill only remove trailing;on the last expression in a block #5797cargo help fmtto be more consistent with other standard commands #5908Added
skip_macro_invocationsinrustfmt.toml#5816let-chains.let-chainsare still a nightly feature and their formatting is subject to change #5910. Formatting was implemented following the rules outlined in rust-lang/rust#110568Misc
dyn*syntax, enabled by#![feature(dyn_star)]#5542unicode_categoriesdependency withunicode-properties#5864