@@ -129,11 +129,11 @@ trait ext_ctxt {
129
129
fn parse_sess ( ) -> parse:: parse_sess ;
130
130
fn cfg ( ) -> ast:: crate_cfg ;
131
131
fn print_backtrace ( ) ;
132
- fn backtrace ( ) -> expn_info ;
132
+ fn backtrace ( ) -> Option < @ expn_info > ;
133
133
fn mod_push ( mod_name : ast:: ident ) ;
134
134
fn mod_pop ( ) ;
135
135
fn mod_path ( ) -> ~[ ast:: ident ] ;
136
- fn bt_push ( ei : codemap:: expn_info_ ) ;
136
+ fn bt_push ( ei : codemap:: expn_info ) ;
137
137
fn bt_pop ( ) ;
138
138
fn span_fatal ( sp : span , msg : & str ) -> !;
139
139
fn span_err ( sp : span , msg : & str ) ;
@@ -153,19 +153,19 @@ fn mk_ctxt(parse_sess: parse::parse_sess,
153
153
cfg : ast:: crate_cfg ) -> ext_ctxt {
154
154
type ctxt_repr = { parse_sess : parse:: parse_sess ,
155
155
cfg : ast:: crate_cfg ,
156
- mut backtrace : expn_info ,
156
+ mut backtrace : Option < @ expn_info > ,
157
157
mut mod_path : ~[ ast:: ident ] ,
158
158
mut trace_mac : bool } ;
159
159
impl ctxt_repr : ext_ctxt {
160
160
fn codemap ( ) -> @CodeMap { self . parse_sess . cm }
161
161
fn parse_sess ( ) -> parse:: parse_sess { self . parse_sess }
162
162
fn cfg ( ) -> ast:: crate_cfg { self . cfg }
163
163
fn print_backtrace ( ) { }
164
- fn backtrace ( ) -> expn_info { self . backtrace }
164
+ fn backtrace ( ) -> Option < @ expn_info > { self . backtrace }
165
165
fn mod_push ( i : ast:: ident ) { self . mod_path . push ( i) ; }
166
166
fn mod_pop ( ) { self . mod_path . pop ( ) ; }
167
167
fn mod_path ( ) -> ~[ ast:: ident ] { return self . mod_path ; }
168
- fn bt_push ( ei : codemap:: expn_info_ ) {
168
+ fn bt_push ( ei : codemap:: expn_info ) {
169
169
match ei {
170
170
expanded_from ( { call_site : cs, callie : callie} ) => {
171
171
self . backtrace =
0 commit comments