Auto merge of #29274 - thepowersgang:issues-29107-const-unsafe-fn-order, r=nikomatsakis
This PR switches the implemented ordering from `unsafe const fn` (as was in the original RFC) to `const unsafe fn` (which is what the lang team decided on)
This commit is contained in:
@@ -3058,13 +3058,14 @@ impl<'a> State<'a> {
|
||||
abi: abi::Abi,
|
||||
vis: ast::Visibility) -> io::Result<()> {
|
||||
try!(word(&mut self.s, &visibility_qualified(vis, "")));
|
||||
try!(self.print_unsafety(unsafety));
|
||||
|
||||
match constness {
|
||||
ast::Constness::NotConst => {}
|
||||
ast::Constness::Const => try!(self.word_nbsp("const"))
|
||||
}
|
||||
|
||||
try!(self.print_unsafety(unsafety));
|
||||
|
||||
if abi != abi::Rust {
|
||||
try!(self.word_nbsp("extern"));
|
||||
try!(self.word_nbsp(&abi.to_string()));
|
||||
|
||||
Reference in New Issue
Block a user