diff options
| author | ibraheemdev <ibrah1440@gmail.com> | 2021-07-25 13:35:06 -0400 |
|---|---|---|
| committer | ibraheemdev <ibrah1440@gmail.com> | 2021-07-25 13:35:06 -0400 |
| commit | b4a873f54899c31525d3f1e1717b1d1a54191c21 (patch) | |
| tree | 9a34a3756cc313ce9de8ff26f22046d67a0e476b /compiler | |
| parent | 70f282d46996ca381251890c28b9cd5226884ccd (diff) | |
| download | rust-b4a873f54899c31525d3f1e1717b1d1a54191c21.tar.gz rust-b4a873f54899c31525d3f1e1717b1d1a54191c21.zip | |
fmt
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_mir/src/borrow_check/diagnostics/mutability_errors.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_mir/src/borrow_check/diagnostics/mutability_errors.rs b/compiler/rustc_mir/src/borrow_check/diagnostics/mutability_errors.rs index e23280beb61..336f48bde55 100644 --- a/compiler/rustc_mir/src/borrow_check/diagnostics/mutability_errors.rs +++ b/compiler/rustc_mir/src/borrow_check/diagnostics/mutability_errors.rs @@ -119,9 +119,9 @@ impl<'a, 'tcx> MirBorrowckCtxt<'a, 'tcx> { && !self.upvars.is_empty() { item_msg = format!("`{}`", access_place_desc.unwrap()); - debug_assert!(self.body.local_decls[ty::CAPTURE_STRUCT_LOCAL] - .ty - .is_region_ptr()); + debug_assert!( + self.body.local_decls[ty::CAPTURE_STRUCT_LOCAL].ty.is_region_ptr() + ); debug_assert!(is_closure_or_generator( Place::ty_from( the_place_err.local, |
