syntax: Some code cleanup

This commit is contained in:
Vadim Petrochenkov
2019-05-19 19:56:45 +03:00
parent ca2a50fad7
commit 90d15e7704
9 changed files with 177 additions and 228 deletions

View File

@@ -379,7 +379,7 @@ impl<'a> Rustc<'a> {
}
}
pub fn lit(&mut self, kind: token::LitKind, symbol: Symbol, suffix: Option<Symbol>) -> Literal {
fn lit(&mut self, kind: token::LitKind, symbol: Symbol, suffix: Option<Symbol>) -> Literal {
Literal {
lit: token::Lit::new(kind, symbol, suffix),
span: server::Span::call_site(self),