@@ -16,8 +16,8 @@ use rustc_ast_pretty::pprust;
1616use rustc_data_structures:: fx:: FxHashSet ;
1717use rustc_data_structures:: sync:: Lrc ;
1818use rustc_errors:: {
19- Applicability , Diag , DiagCtxtHandle , ErrorGuaranteed , FatalError , PResult , Subdiagnostic ,
20- Suggestions , pluralize,
19+ Applicability , Diag , DiagCtxtHandle , ErrorGuaranteed , PResult , Subdiagnostic , Suggestions ,
20+ pluralize,
2121} ;
2222use rustc_session:: errors:: ExprParenthesesNeeded ;
2323use rustc_span:: edit_distance:: find_best_match_for_name;
@@ -3057,17 +3057,10 @@ impl<'a> Parser<'a> {
30573057 }
30583058
30593059 pub ( super ) fn recover_vcs_conflict_marker ( & mut self ) {
3060- if let Err ( err) = self . err_vcs_conflict_marker ( ) {
3061- err. emit ( ) ;
3062- FatalError . raise ( ) ;
3063- }
3064- }
3065-
3066- pub ( crate ) fn err_vcs_conflict_marker ( & mut self ) -> PResult < ' a , ( ) > {
30673060 // <<<<<<<
30683061 let Some ( start) = self . conflict_marker ( & TokenKind :: BinOp ( token:: Shl ) , & TokenKind :: Lt )
30693062 else {
3070- return Ok ( ( ) ) ;
3063+ return ;
30713064 } ;
30723065 let mut spans = Vec :: with_capacity ( 3 ) ;
30733066 spans. push ( start) ;
@@ -3097,7 +3090,7 @@ impl<'a> Parser<'a> {
30973090 self . bump ( ) ;
30983091 }
30993092
3100- let mut err = self . dcx ( ) . struct_span_err ( spans, "encountered diff marker" ) ;
3093+ let mut err = self . dcx ( ) . struct_span_fatal ( spans, "encountered diff marker" ) ;
31013094 match middlediff3 {
31023095 // We're using diff3
31033096 Some ( middlediff3) => {
@@ -3140,7 +3133,7 @@ impl<'a> Parser<'a> {
31403133 visit <https://git-scm.com/book/en/v2/Git-Tools-Advanced-Merging#_checking_out_conflicts>",
31413134 ) ;
31423135
3143- Err ( err)
3136+ err. emit ( ) ;
31443137 }
31453138
31463139 /// Parse and throw away a parenthesized comma separated
0 commit comments