Skip to content

Commit

Permalink
Two more small fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed May 22, 2015
1 parent df93dea commit 82ded3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/libsyntax/parse/mod.rs
Expand Up @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion src/libsyntax/print/pprust.rs
Expand Up @@ -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 {
Expand Down

0 comments on commit 82ded3c

Please sign in to comment.