@@ -161,6 +161,7 @@ struct BacktraceSymbol {
161
161
name : Option < Vec < u8 > > ,
162
162
filename : Option < BytesOrWide > ,
163
163
lineno : Option < u32 > ,
164
+ colno : Option < u32 > ,
164
165
}
165
166
166
167
enum BytesOrWide {
@@ -209,7 +210,7 @@ impl fmt::Debug for BacktraceSymbol {
209
210
write ! ( fmt, ", file: \" {:?}\" " , fname) ?;
210
211
}
211
212
212
- if let Some ( line) = self . lineno . as_ref ( ) {
213
+ if let Some ( line) = self . lineno {
213
214
write ! ( fmt, ", line: {:?}" , line) ?;
214
215
}
215
216
@@ -381,14 +382,15 @@ impl fmt::Display for Backtrace {
381
382
f. print_raw ( frame. frame . ip ( ) , None , None , None ) ?;
382
383
} else {
383
384
for symbol in frame. symbols . iter ( ) {
384
- f. print_raw (
385
+ f. print_raw_with_column (
385
386
frame. frame . ip ( ) ,
386
387
symbol. name . as_ref ( ) . map ( |b| backtrace_rs:: SymbolName :: new ( b) ) ,
387
388
symbol. filename . as_ref ( ) . map ( |b| match b {
388
389
BytesOrWide :: Bytes ( w) => BytesOrWideString :: Bytes ( w) ,
389
390
BytesOrWide :: Wide ( w) => BytesOrWideString :: Wide ( w) ,
390
391
} ) ,
391
392
symbol. lineno ,
393
+ symbol. colno ,
392
394
) ?;
393
395
}
394
396
}
@@ -427,6 +429,7 @@ impl Capture {
427
429
BytesOrWideString :: Wide ( b) => BytesOrWide :: Wide ( b. to_owned ( ) ) ,
428
430
} ) ,
429
431
lineno : symbol. lineno ( ) ,
432
+ colno : symbol. colno ( ) ,
430
433
} ) ;
431
434
} ) ;
432
435
}
0 commit comments