-
Notifications
You must be signed in to change notification settings - Fork 936
Open
Description
Version: rustfmt 1.8.0-nightly (498ae9fed2 2025-07-28)
Minimal reproducible code:
pub const trait Foo {}
Same for any vis such as pub(crate or in...)
.
Formatting code above produces invalid code like this:
const pub trait Foo {}
Following is doesn't matter, but my rustfmt.toml
config:
reorder_imports = false
reorder_modules = false
reorder_impl_items = false
P.s.: This is a bug, but also
Currently we have three reordering options:
reorder_imports
reorder_modules
reorder_impl_items
I suppose we need new one for things like keywords (vis, effects, etc..).
eirnym and tuguzT
Metadata
Metadata
Assignees
Labels
No labels