diff options
| author | Nathaniel McCallum <nathaniel@mccallum.life> | 2025-09-01 08:55:25 -0400 |
|---|---|---|
| committer | Nathaniel McCallum <nathaniel@mccallum.life> | 2025-09-01 08:55:25 -0400 |
| commit | 8dfd6b8ec208f4f31dd0e41c32e9239bf262068c (patch) | |
| tree | baf613301dee20f66cb3c60732e46a9e20c2c2df | |
| parent | 84a17470220e7adf249b18d7c0178dfbede89462 (diff) | |
| download | rust-8dfd6b8ec208f4f31dd0e41c32e9239bf262068c.tar.gz rust-8dfd6b8ec208f4f31dd0e41c32e9239bf262068c.zip | |
fix a constness ordering bug in rustfmt
Normally, changes to rustfmt go into the separate repo. But, in this case, the bug is introduced in a local change and therefore isn't present in the rustfmt repo.
| -rw-r--r-- | src/tools/rustfmt/src/items.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rustfmt/src/items.rs b/src/tools/rustfmt/src/items.rs index 6555679c394..75e468b3525 100644 --- a/src/tools/rustfmt/src/items.rs +++ b/src/tools/rustfmt/src/items.rs @@ -1175,8 +1175,8 @@ pub(crate) fn format_trait( let mut result = String::with_capacity(128); let header = format!( "{}{}{}{}trait ", - format_constness(constness), format_visibility(context, &item.vis), + format_constness(constness), format_safety(safety), format_auto(is_auto), ); |
