Skip to content

Commit

Permalink
tidy checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Saleem Jaffer committed Mar 19, 2019
1 parent 23c87a1 commit 776407e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/librustc_mir/borrow_check/mod.rs
Expand Up @@ -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,
Expand Down

0 comments on commit 776407e

Please sign in to comment.