File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/librustc_data_structures/obligation_forest Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -355,10 +355,9 @@ impl<O: ForestObligation> ObligationForest<O> {
355
355
let mut errors = vec ! [ ] ;
356
356
for ( index, node) in self . nodes . iter ( ) . enumerate ( ) {
357
357
if let NodeState :: Pending = node. state . get ( ) {
358
- let backtrace = self . error_at ( index) ;
359
358
errors. push ( Error {
360
359
error : error. clone ( ) ,
361
- backtrace,
360
+ backtrace : self . error_at ( index ) ,
362
361
} ) ;
363
362
}
364
363
}
@@ -439,10 +438,9 @@ impl<O: ForestObligation> ObligationForest<O> {
439
438
}
440
439
ProcessResult :: Error ( err) => {
441
440
stalled = false ;
442
- let backtrace = self . error_at ( index) ;
443
441
errors. push ( Error {
444
442
error : err,
445
- backtrace,
443
+ backtrace : self . error_at ( index ) ,
446
444
} ) ;
447
445
}
448
446
}
You can’t perform that action at this time.
0 commit comments