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> {
355355 let mut errors = vec ! [ ] ;
356356 for ( index, node) in self . nodes . iter ( ) . enumerate ( ) {
357357 if let NodeState :: Pending = node. state . get ( ) {
358- let backtrace = self . error_at ( index) ;
359358 errors. push ( Error {
360359 error : error. clone ( ) ,
361- backtrace,
360+ backtrace : self . error_at ( index ) ,
362361 } ) ;
363362 }
364363 }
@@ -439,10 +438,9 @@ impl<O: ForestObligation> ObligationForest<O> {
439438 }
440439 ProcessResult :: Error ( err) => {
441440 stalled = false ;
442- let backtrace = self . error_at ( index) ;
443441 errors. push ( Error {
444442 error : err,
445- backtrace,
443+ backtrace : self . error_at ( index ) ,
446444 } ) ;
447445 }
448446 }
You can’t perform that action at this time.
0 commit comments