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.
Short summary: Various formatting fixes (several const generic related) and introduction of
imports_granularity
config optionLong summary copied from changelog:
Changed
merge_imports
configuration has been deprecated in favor of the newimports_granularity
option. Any existing usage ofmerge_imports
will be automatically mapped to the corresponding value onimports_granularity
with a warning message printed to encourage users to update their config files.Added
imports_granularity
option has been added which succeedsmerge_imports
. This new option supports several additional variants which allow users to merge imports at different levels (crate or module), and even flatten imports to have a single use statement per item. (PR rust-lang/rustfmt#4634, PR rust-lang/rustfmt#4639)See the section on the configuration site for more information
https://rust-lang.github.io/rustfmt/?version=v1.4.33&search=#imports_granularity
Fixed
const
keyword on const trait impl (rust-lang/rustfmt#4084)