Skip to content

Commit 3e9c95b

Browse files
Update compiler/rustc_mir/src/borrow_check/diagnostics/conflict_errors.rs
Co-authored-by: Esteban Kuber <[email protected]>
1 parent 5468d98 commit 3e9c95b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

compiler/rustc_mir/src/borrow_check/diagnostics/conflict_errors.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1331,9 +1331,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
13311331
}
13321332
ConstraintCategory::CallArgument => {
13331333
fr_name.highlight_region_name(&mut err);
1334-
if matches!(use_span.generator_kind(), Some(generator_kind)
1335-
if matches!(generator_kind, GeneratorKind::Async(_)))
1336-
{
1334+
if matches!(use_span.generator_kind(), Some(GeneratorKind::Async(_))) {
13371335
err.note(
13381336
"async blocks are not executed immediately and must either take a \
13391337
reference or ownership of outside variables they use",

0 commit comments

Comments
 (0)