rustc_borrowck
: remove ref
patterns
This commit is contained in:
parent
c5351ad4dc
commit
c75817fb1b
13 changed files with 145 additions and 160 deletions
|
@ -921,7 +921,7 @@ impl<'a, 'tcx> MirBorrowckCtxt<'a, 'tcx> {
|
|||
}
|
||||
}
|
||||
hir::ExprKind::Block(blk, _) => {
|
||||
if let Some(ref expr) = blk.expr {
|
||||
if let Some(expr) = blk.expr {
|
||||
// only when the block is a closure
|
||||
if let hir::ExprKind::Closure(hir::Closure {
|
||||
capture_clause: hir::CaptureBy::Ref,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue