From 2e65782c1780cb9327281c7f78c8b40a5b4f5f57 Mon Sep 17 00:00:00 2001 From: Seo Sanghyeon Date: Tue, 2 Jul 2013 18:31:00 +0900 Subject: Do not rely on newtype enum dereference --- src/libsyntax/codemap.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/libsyntax/codemap.rs') 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} +/// 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 -- cgit 1.4.1-3-g733a5