Skip to content

Commit 82ded3c

Browse files
committed
Two more small fixes.
1 parent df93dea commit 82ded3c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/libsyntax/parse/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,7 @@ mod tests {
923923
variadic: false
924924
}),
925925
ast::Unsafety::Normal,
926+
ast::Constness::NotConst,
926927
abi::Rust,
927928
ast::Generics{ // no idea on either of these:
928929
lifetimes: Vec::new(),

src/libsyntax/print/pprust.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2997,7 +2997,7 @@ impl<'a> State<'a> {
29972997

29982998
match constness {
29992999
ast::Constness::NotConst => {}
3000-
ast::Constness::Const => try!(self.word_nbsp("unsafe"))
3000+
ast::Constness::Const => try!(self.word_nbsp("const"))
30013001
}
30023002

30033003
if abi != abi::Rust {

0 commit comments

Comments
 (0)