Skip to content

Commit b66ddc8

Browse files
authored
Unrolled build for #146089
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 a2c8b0b + 8dfd6b8 commit b66ddc8

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)