mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
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.
This commit is contained in:
@@ -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),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user