summary refs log tree commit diff
path: root/src/libsyntax/codemap.rs
diff options
context:
space:
mode:
authorSeo Sanghyeon <sanxiyn@gmail.com>2013-07-02 18:31:00 +0900
committerSeo Sanghyeon <sanxiyn@gmail.com>2013-07-05 13:03:04 +0900
commit2e65782c1780cb9327281c7f78c8b40a5b4f5f57 (patch)
tree25eb22d723c1724b821a2dd828ceef19b9a61762 /src/libsyntax/codemap.rs
parentc9b9462e8f7f0181fcc7f5883c4502e81d260b12 (diff)
downloadrust-2e65782c1780cb9327281c7f78c8b40a5b4f5f57.tar.gz
rust-2e65782c1780cb9327281c7f78c8b40a5b4f5f57.zip
Do not rely on newtype enum dereference
Diffstat (limited to 'src/libsyntax/codemap.rs')
-rw-r--r--src/libsyntax/codemap.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/libsyntax/codemap.rs b/src/libsyntax/codemap.rs
index bcf617c56ae..7e89d040781 100644
--- a/src/libsyntax/codemap.rs
+++ b/src/libsyntax/codemap.rs
@@ -174,18 +174,13 @@ pub struct FileMapAndBytePos {fm: @FileMap, pos: BytePos}
 #[deriving(IterBytes)]
 pub struct NameAndSpan {name: @str, span: Option<span>}
 
+/// Extra information for tracking macro expansion of spans
 #[deriving(IterBytes)]
-pub struct CallInfo {
+pub struct ExpnInfo {
     call_site: span,
     callee: NameAndSpan
 }
 
-/// Extra information for tracking macro expansion of spans
-#[deriving(IterBytes)]
-pub enum ExpnInfo {
-    ExpandedFrom(CallInfo)
-}
-
 pub type FileName = @str;
 
 pub struct FileLines