Suggest .clone()
or ref binding
on E0382
This commit is contained in:
parent
d121aa3b55
commit
9e72e35ceb
86 changed files with 1092 additions and 49 deletions
|
@ -131,12 +131,12 @@ impl<'hir> LoweringContext<'_, 'hir> {
|
|||
let span = this.mark_span_with_reason(DesugaringKind::WhileLoop, e.span, None);
|
||||
this.lower_expr_while_in_loop_scope(span, cond, body, *opt_label)
|
||||
}),
|
||||
ExprKind::Loop(body, opt_label) => self.with_loop_scope(e.id, |this| {
|
||||
ExprKind::Loop(body, opt_label, span) => self.with_loop_scope(e.id, |this| {
|
||||
hir::ExprKind::Loop(
|
||||
this.lower_block(body, false),
|
||||
this.lower_label(*opt_label),
|
||||
hir::LoopSource::Loop,
|
||||
DUMMY_SP,
|
||||
this.lower_span(span),
|
||||
)
|
||||
}),
|
||||
ExprKind::TryBlock(body) => self.lower_expr_try_block(body),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue