diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2014-01-10 14:02:36 -0800 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2014-02-02 01:44:48 +1100 |
| commit | 8e52b85d5a6f6e3aaa2f15d7c1e907d0ce8589ee (patch) | |
| tree | afcac214c65f792304926a71117ffdf37a0fd060 /src/libsyntax/ext/bytes.rs | |
| parent | 70c5a0fbf784d6a89b1c2c50f9fe83093bd21abc (diff) | |
| download | rust-8e52b85d5a6f6e3aaa2f15d7c1e907d0ce8589ee.tar.gz rust-8e52b85d5a6f6e3aaa2f15d7c1e907d0ce8589ee.zip | |
libsyntax: De-`@str` literal strings in the AST
Diffstat (limited to 'src/libsyntax/ext/bytes.rs')
| -rw-r--r-- | src/libsyntax/ext/bytes.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/ext/bytes.rs b/src/libsyntax/ext/bytes.rs index 0c9a23be558..6852a0cec33 100644 --- a/src/libsyntax/ext/bytes.rs +++ b/src/libsyntax/ext/bytes.rs @@ -31,8 +31,8 @@ pub fn expand_syntax_ext(cx: &mut ExtCtxt, sp: Span, tts: &[ast::TokenTree]) -> // expression is a literal ast::ExprLit(lit) => match lit.node { // string literal, push each byte to vector expression - ast::LitStr(s, _) => { - for byte in s.bytes() { + ast::LitStr(ref s, _) => { + for byte in s.get().bytes() { bytes.push(cx.expr_u8(expr.span, byte)); } } |
