Skip to content

Commit 9910dee

Browse files
committed
tidy fixes
1 parent 2255786 commit 9910dee

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

src/librustc/mir/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2933,4 +2933,4 @@ impl<'tcx> TypeFoldable<'tcx> for Literal<'tcx> {
29332933
}
29342934
}
29352935

2936-
newtype_index!(LocalWithRegion);
2936+
newtype_index!(LocalWithRegion);

src/librustc_mir/borrow_check/nll/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,10 @@ impl ToRegionVid for RegionVid {
408408
}
409409
}
410410

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 {
412415
// sort and deduplicate:
413416
let all_locals: BTreeSet<_> = regular.iter().chain(drops.iter()).collect();
414417

src/librustc_mir/util/liveness.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,10 @@ impl LiveVariableMap for NllLivenessMap {
570570
impl NllLivenessMap {
571571
pub fn compute(mir: &Mir) -> Self {
572572
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)| {
574577
if local_decl.ty.has_free_regions() {
575578
Some(to_local.push(local))
576579
}
@@ -582,4 +585,3 @@ impl NllLivenessMap {
582585
Self { from_local, to_local }
583586
}
584587
}
585-

0 commit comments

Comments
 (0)