1
Fork 0

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 variadic: false
}), }),
ast::Unsafety::Normal, ast::Unsafety::Normal,
ast::Constness::NotConst,
abi::Rust, abi::Rust,
ast::Generics{ // no idea on either of these: ast::Generics{ // no idea on either of these:
lifetimes: Vec::new(), lifetimes: Vec::new(),

View file

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