Skip to content

Commit b3dd56c

Browse files
committed
Fix ordering of "const unsafe fn"
1 parent 684596f commit b3dd56c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/items.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1079,12 +1079,13 @@ fn rewrite_fn_base(context: &RewriteContext,
10791079
let mut result = String::with_capacity(1024);
10801080
// Vis unsafety abi.
10811081
result.push_str(format_visibility(vis));
1082-
result.push_str(::utils::format_unsafety(unsafety));
10831082

10841083
if let ast::Constness::Const = constness {
10851084
result.push_str("const ");
10861085
}
10871086

1087+
result.push_str(::utils::format_unsafety(unsafety));
1088+
10881089
if abi != abi::Rust {
10891090
result.push_str(&::utils::format_abi(abi));
10901091
}

0 commit comments

Comments
 (0)