diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2018-05-13 16:14:43 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2018-05-17 23:13:09 +0300 |
| commit | c4352ff198e4725393f4f6fbadab7312b30b538c (patch) | |
| tree | 598a4b72559449ade1a86bd37dce70558fc1de7c /src/libsyntax/print | |
| parent | f4cbc2388f6a7abace3df9bf97b7758f0dfc0d4d (diff) | |
| download | rust-c4352ff198e4725393f4f6fbadab7312b30b538c.tar.gz rust-c4352ff198e4725393f4f6fbadab7312b30b538c.zip | |
Turn some functions from `token.rs` into methods on `Ident`
Diffstat (limited to 'src/libsyntax/print')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index a700799cde5..17f83a09c77 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -2374,7 +2374,7 @@ impl<'a> State<'a> { } pub fn print_ident(&mut self, ident: ast::Ident) -> io::Result<()> { - if token::is_raw_guess(ident) { + if ident.is_raw_guess() { self.s.word(&format!("r#{}", ident))?; } else { self.s.word(&ident.name.as_str())?; |
