diff options
| author | Saleem Jaffer <saleem@acko.com> | 2019-03-19 13:35:50 +0530 |
|---|---|---|
| committer | Saleem Jaffer <saleem@acko.com> | 2019-03-19 13:35:50 +0530 |
| commit | 776407e4e65e537ee7471a90d8a48eb26e7f0fd7 (patch) | |
| tree | 2fa1a810d200a3f4f0542425005f21cb131155d1 | |
| parent | 23c87a1f53a502cfca3ced42a33cf1389f6c081e (diff) | |
tidy checks
| -rw-r--r-- | src/librustc_mir/borrow_check/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustc_mir/borrow_check/mod.rs b/src/librustc_mir/borrow_check/mod.rs index e538622103a..0358fffcde5 100644 --- a/src/librustc_mir/borrow_check/mod.rs +++ b/src/librustc_mir/borrow_check/mod.rs @@ -1985,7 +1985,8 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> { Place::Base(PlaceBase::Static(ref static_)) => { if static_.promoted.is_some() || (static_.promoted.is_none() && - self.infcx.tcx.is_static(static_.def_id) == Some(hir::Mutability::MutMutable) + self.infcx.tcx.is_static(static_.def_id) + == Some(hir::Mutability::MutMutable) ){ Ok(RootPlace { place, |
