Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f77a31f

Browse files
Rollup merge of #146089 - npmccallum:rustfmt, r=fmease
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. Related to: #146071 Fixes rust-lang/rustfmt#6619.
2 parents 90ed791 + 8dfd6b8 commit f77a31f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/tools/rustfmt/src/items.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1175,8 +1175,8 @@ pub(crate) fn format_trait(
11751175
let mut result = String::with_capacity(128);
11761176
let header = format!(
11771177
"{}{}{}{}trait ",
1178-
format_constness(constness),
11791178
format_visibility(context, &item.vis),
1179+
format_constness(constness),
11801180
format_safety(safety),
11811181
format_auto(is_auto),
11821182
);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /