syntax: convert LitBinary from @[u8] to Rc<~[u8]>.

This commit is contained in:
Huon Wilson
2014-02-01 15:54:41 +11:00
parent b972cadf61
commit 891ada9be1
5 changed files with 8 additions and 9 deletions

View File

@@ -20,6 +20,7 @@ use parse::token;
use std::cell::RefCell;
use std::hashmap::HashMap;
use std::option::Option;
use std::rc::Rc;
use std::to_str::ToStr;
use extra::serialize::{Encodable, Decodable, Encoder, Decoder};
@@ -724,7 +725,7 @@ pub type Lit = Spanned<Lit_>;
#[deriving(Clone, Eq, Encodable, Decodable, IterBytes)]
pub enum Lit_ {
LitStr(InternedString, StrStyle),
LitBinary(@[u8]),
LitBinary(Rc<~[u8]>),
LitChar(u32),
LitInt(i64, IntTy),
LitUint(u64, UintTy),