Skip to content

Commit 9a985bf

Browse files
committed
Remove a third DiagnosticBuilder::emit_without_consuming call.
It's not clear why this was here, because the created error is returned as normal error anyway. Nor is it clear why removing the call works. The change doesn't affect any tests; `tests/ui/parser/issues/issue-102182-impl-trait-recover.rs` looks like the only test that could have been affected.
1 parent a75f647 commit 9a985bf

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

compiler/rustc_parse/src/parser/generics.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ impl<'a> Parser<'a> {
7777
Applicability::MachineApplicable,
7878
);
7979
}
80-
err.emit_without_consuming();
8180
return Err(err);
8281
}
8382
}

0 commit comments

Comments
 (0)