diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-05-16 00:16:13 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-06-11 09:11:40 -0700 |
| commit | 53ad426e92f8099a701f3f54c02dc8f069f5939a (patch) | |
| tree | cef835fc4f6319f12bf1c47c90682bdbcf17afac /src/libsyntax/codemap.rs | |
| parent | 531ed3d599000de2517cba102c83fe44a1f1e252 (diff) | |
| download | rust-53ad426e92f8099a701f3f54c02dc8f069f5939a.tar.gz rust-53ad426e92f8099a701f3f54c02dc8f069f5939a.zip | |
syntax: Move the AST from @T to Gc<T>
Diffstat (limited to 'src/libsyntax/codemap.rs')
| -rw-r--r-- | src/libsyntax/codemap.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/codemap.rs b/src/libsyntax/codemap.rs index f31d0d86940..d9e3e4e941d 100644 --- a/src/libsyntax/codemap.rs +++ b/src/libsyntax/codemap.rs @@ -23,8 +23,8 @@ source code snippets, etc. use serialize::{Encodable, Decodable, Encoder, Decoder}; use std::cell::RefCell; +use std::gc::Gc; use std::rc::Rc; -use std::string::String; pub trait Pos { fn from_uint(n: uint) -> Self; @@ -91,7 +91,7 @@ pub struct Span { pub hi: BytePos, /// Information about where the macro came from, if this piece of /// code was created by a macro expansion. - pub expn_info: Option<@ExpnInfo> + pub expn_info: Option<Gc<ExpnInfo>> } pub static DUMMY_SP: Span = Span { lo: BytePos(0), hi: BytePos(0), expn_info: None }; |
