We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df93dea commit 82ded3cCopy full SHA for 82ded3c
src/libsyntax/parse/mod.rs
@@ -923,6 +923,7 @@ mod tests {
923
variadic: false
924
}),
925
ast::Unsafety::Normal,
926
+ ast::Constness::NotConst,
927
abi::Rust,
928
ast::Generics{ // no idea on either of these:
929
lifetimes: Vec::new(),
src/libsyntax/print/pprust.rs
@@ -2997,7 +2997,7 @@ impl<'a> State<'a> {
2997
2998
match constness {
2999
ast::Constness::NotConst => {}
3000
- ast::Constness::Const => try!(self.word_nbsp("unsafe"))
+ ast::Constness::Const => try!(self.word_nbsp("const"))
3001
}
3002
3003
if abi != abi::Rust {
0 commit comments