diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs index 68574560533fe..d6c28d4144792 100644 --- a/src/libsyntax/parse/mod.rs +++ b/src/libsyntax/parse/mod.rs @@ -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(), diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index 0b211cd073320..8958370fda544 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -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 {