Skip to content

Commit b4a873f

Browse files
committed
fmt
1 parent 70f282d commit b4a873f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/rustc_mir/src/borrow_check/diagnostics/mutability_errors.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ impl<'a, 'tcx> MirBorrowckCtxt<'a, 'tcx> {
119119
&& !self.upvars.is_empty()
120120
{
121121
item_msg = format!("`{}`", access_place_desc.unwrap());
122-
debug_assert!(self.body.local_decls[ty::CAPTURE_STRUCT_LOCAL]
123-
.ty
124-
.is_region_ptr());
122+
debug_assert!(
123+
self.body.local_decls[ty::CAPTURE_STRUCT_LOCAL].ty.is_region_ptr()
124+
);
125125
debug_assert!(is_closure_or_generator(
126126
Place::ty_from(
127127
the_place_err.local,

0 commit comments

Comments
 (0)