From 82ded3cd03e001e82b9dce9aedac621a5292231b Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Fri, 22 May 2015 08:45:05 -0400 Subject: Two more small fixes. --- src/libsyntax/parse/mod.rs | 1 + src/libsyntax/print/pprust.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libsyntax') diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs index 68574560533..d6c28d41447 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 0b211cd0733..8958370fda5 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 { -- cgit 1.4.1-3-g733a5