Version: rustfmt 1.8.0-nightly (498ae9fed2 2025-07-28)
Minimal reproducible code:
Same for any vis such as pub(crate or in...).
Formatting code above produces invalid code like this:
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..).