Skip to content

Commit f0ab469

Browse files
Remove unnecessary block
1 parent a5c1851 commit f0ab469

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/librustc_mir/interpret/operand.rs

+4-6
Original file line numberDiff line numberDiff line change
@@ -453,13 +453,11 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
453453
place: mir::Place<'tcx>,
454454
layout: Option<TyAndLayout<'tcx>>,
455455
) -> InterpResult<'tcx, OpTy<'tcx, M::PointerTag>> {
456-
let base_op = {
457-
// Do not use the layout passed in as argument if the base we are looking at
458-
// here is not the entire place.
459-
let layout = if place.projection.is_empty() { layout } else { None };
456+
// Do not use the layout passed in as argument if the base we are looking at
457+
// here is not the entire place.
458+
let layout = if place.projection.is_empty() { layout } else { None };
460459

461-
self.access_local(self.frame(), place.local, layout)?
462-
};
460+
let base_op = self.access_local(self.frame(), place.local, layout)?;
463461

464462
let op = place
465463
.projection

0 commit comments

Comments
 (0)