Two more small fixes.

This commit is contained in:
Niko Matsakis 2015-05-22 08:45:05 -04:00
parent df93deab10
commit 82ded3cd03
2 changed files with 2 additions and 1 deletions

View File

@ -923,6 +923,7 @@ mod tests {
variadic: false
}),
ast::Unsafety::Normal,
ast::Constness::NotConst,
abi::Rust,
ast::Generics{ // no idea on either of these:
lifetimes: Vec::new(),

View File

@ -2997,7 +2997,7 @@ impl<'a> State<'a> {
match constness {
ast::Constness::NotConst => {}
ast::Constness::Const => try!(self.word_nbsp("unsafe"))
ast::Constness::Const => try!(self.word_nbsp("const"))
}
if abi != abi::Rust {