File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -2933,4 +2933,4 @@ impl<'tcx> TypeFoldable<'tcx> for Literal<'tcx> {
2933
2933
}
2934
2934
}
2935
2935
2936
- newtype_index ! ( LocalWithRegion ) ;
2936
+ newtype_index ! ( LocalWithRegion ) ;
Original file line number Diff line number Diff line change @@ -408,7 +408,10 @@ impl ToRegionVid for RegionVid {
408
408
}
409
409
}
410
410
411
- fn live_variable_set ( regular : & LocalSet < LocalWithRegion > , drops : & LocalSet < LocalWithRegion > ) -> String {
411
+ fn live_variable_set (
412
+ regular : & LocalSet < LocalWithRegion > ,
413
+ drops : & LocalSet < LocalWithRegion >
414
+ ) -> String {
412
415
// sort and deduplicate:
413
416
let all_locals: BTreeSet < _ > = regular. iter ( ) . chain ( drops. iter ( ) ) . collect ( ) ;
414
417
Original file line number Diff line number Diff line change @@ -570,7 +570,10 @@ impl LiveVariableMap for NllLivenessMap {
570
570
impl NllLivenessMap {
571
571
pub fn compute ( mir : & Mir ) -> Self {
572
572
let mut to_local = IndexVec :: default ( ) ;
573
- let from_local: IndexVec < Local , Option < _ > > = mir. local_decls . iter_enumerated ( ) . map ( |( local, local_decl) | {
573
+ let from_local: IndexVec < Local , Option < _ > > = mir
574
+ . local_decls
575
+ . iter_enumerated ( )
576
+ . map ( |( local, local_decl) | {
574
577
if local_decl. ty . has_free_regions ( ) {
575
578
Some ( to_local. push ( local) )
576
579
}
@@ -582,4 +585,3 @@ impl NllLivenessMap {
582
585
Self { from_local, to_local }
583
586
}
584
587
}
585
-
You can’t perform that action at this time.
0 commit comments