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=true
was 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 = Two
newlines between where clause bounds will be removed #5655let-else
statements that have leading attributes When settingversion = Two
#5901Changed
Rust
ABIs. e.gextern "Rust" fn im_a_rust_fn() {}
#5701trailing_semicolon = false
will only remove trailing;
on the last expression in a block #5797cargo help fmt
to be more consistent with other standard commands #5908Added
skip_macro_invocations
inrustfmt.toml
#5816let-chains
.let-chains
are 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_categories
dependency withunicode-properties
#5864