diff options
Diffstat (limited to 'src/libsyntax/ast.rs')
| -rw-r--r-- | src/libsyntax/ast.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index a5a49b78906..72330bb7f31 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -125,10 +125,9 @@ pub type Name = u32; /// A mark represents a unique id associated with a macro expansion pub type Mrk = u32; -impl<S:Encoder> Encodable<S> for Ident { +impl<S: Encoder> Encodable<S> for Ident { fn encode(&self, s: &mut S) { - let string = token::get_ident(self.name); - s.emit_str(string.get()); + s.emit_str(token::get_ident(*self).get()); } } |
