-
Couldn't load subscription status.
- Fork 961
Closed
rust-lang/rust
#146089Description
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 = falseP.s.: This is a bug, but also
Currently we have three reordering options:
reorder_importsreorder_modulesreorder_impl_items
I suppose we need new one for things like keywords (vis, effects, etc..).
eirnym and tuguzTtheemathas
Metadata
Metadata
Assignees
Labels
No labels