Skip to content

Commit 1b6c8e7

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 a 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 3ce34f4 commit 1b6c8e7

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)