Skip to content

Commit a46bc56

Browse files
oli-obkpnkfelix
authored andcommitted
Tidy
1 parent a2f2179 commit a46bc56

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

compiler/rustc_middle/src/mir/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1952,7 +1952,10 @@ impl SourceScope {
19521952
/// Finds the original HirId this MIR item came from.
19531953
/// This is necessary after MIR optimizations, as otherwise we get a HirId
19541954
/// from the function that was inlined instead of the function call site.
1955-
pub fn lint_root(self, source_scopes: &IndexVec<SourceScope, SourceScopeData<'tcx>>) -> Option<HirId> {
1955+
pub fn lint_root(
1956+
self,
1957+
source_scopes: &IndexVec<SourceScope, SourceScopeData<'tcx>>,
1958+
) -> Option<HirId> {
19561959
let mut data = &source_scopes[self];
19571960
// FIXME(oli-obk): we should be able to just walk the `inlined_parent_scope`, but it
19581961
// does not work as I thought it would. Needs more investigation and documentation.

compiler/rustc_mir/src/transform/const_prop.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ use rustc_middle::mir::visit::{
1313
MutVisitor, MutatingUseContext, NonMutatingUseContext, PlaceContext, Visitor,
1414
};
1515
use rustc_middle::mir::{
16-
AssertKind, BasicBlock, BinOp, Body, Constant, ConstantKind, Local, LocalDecl,
17-
LocalKind, Location, Operand, Place, Rvalue, SourceInfo, SourceScope, SourceScopeData,
18-
Statement, StatementKind, Terminator, TerminatorKind, UnOp, RETURN_PLACE,
16+
AssertKind, BasicBlock, BinOp, Body, Constant, ConstantKind, Local, LocalDecl, LocalKind,
17+
Location, Operand, Place, Rvalue, SourceInfo, SourceScope, SourceScopeData, Statement,
18+
StatementKind, Terminator, TerminatorKind, UnOp, RETURN_PLACE,
1919
};
2020
use rustc_middle::ty::layout::{HasTyCtxt, LayoutError, TyAndLayout};
2121
use rustc_middle::ty::subst::{InternalSubsts, Subst};

src/test/ui/async-await/large_moves.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ fn main() {
2020

2121
async fn thing(y: &[u8]) {
2222
dbg!(y);
23-
}
23+
}

0 commit comments

Comments
 (0)