Version: `rustfmt 1.8.0-nightly (498ae9fed2 2025-07-28)` ### Minimal reproducible code: ```rust pub const trait Foo {} ``` _Same for any vis such as `pub(crate or in...)`._ Formatting code above produces invalid code like this: ```rust const pub trait Foo {} ``` - - - Following __is doesn't matter__, but my `rustfmt.toml` config: ```toml 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..).