Fix rebase

This commit is contained in:
Esteban Küber 2022-11-23 12:15:22 -08:00
parent 0da4c44190
commit 78b8d126db
2 changed files with 2 additions and 3 deletions

View File

@ -136,7 +136,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
this.lower_block(body, false),
this.lower_label(*opt_label),
hir::LoopSource::Loop,
this.lower_span(span),
this.lower_span(*span),
)
}),
ExprKind::TryBlock(body) => self.lower_expr_try_block(body),

View File

@ -740,8 +740,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
if infcx
.type_implements_trait(
tcx.lang_items().clone_trait().unwrap(),
tcx.erase_regions(ty),
ty::List::empty(),
[tcx.erase_regions(ty)],
self.param_env,
)
.must_apply_modulo_regions()