diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2015-05-22 08:45:05 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2015-05-22 08:45:05 -0400 |
| commit | 82ded3cd03e001e82b9dce9aedac621a5292231b (patch) | |
| tree | 09a36dde83581cd66b6ed4f0e0535ff214f2f354 | |
| parent | df93deab10850d52252829770895b0249b0d7f1e (diff) | |
| download | rust-82ded3cd03e001e82b9dce9aedac621a5292231b.tar.gz rust-82ded3cd03e001e82b9dce9aedac621a5292231b.zip | |
Two more small fixes.
| -rw-r--r-- | src/libsyntax/parse/mod.rs | 1 | ||||
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 2 |
2 files changed, 2 insertions, 1 deletions
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 { |
