Fix ordering of "const unsafe fn"

This commit is contained in:
Amanieu d'Antras 2016-03-02 15:37:20 +00:00
parent 93029638a0
commit 698027c4c4

View File

@ -1078,12 +1078,13 @@ fn rewrite_fn_base(context: &RewriteContext,
let mut result = String::with_capacity(1024);
// Vis unsafety abi.
result.push_str(format_visibility(vis));
result.push_str(::utils::format_unsafety(unsafety));
if let ast::Constness::Const = constness {
result.push_str("const ");
}
result.push_str(::utils::format_unsafety(unsafety));
if abi != abi::Abi::Rust {
result.push_str(&::utils::format_abi(abi));
}