@@ -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;
@@ -3023,17 +3023,10 @@ impl<'a> Parser<'a> {
30233023 }
30243024
30253025 pub ( super ) fn recover_vcs_conflict_marker ( & mut self ) {
3026- if let Err ( err) = self . err_vcs_conflict_marker ( ) {
3027- err. emit ( ) ;
3028- FatalError . raise ( ) ;
3029- }
3030- }
3031-
3032- pub ( crate ) fn err_vcs_conflict_marker ( & mut self ) -> PResult < ' a , ( ) > {
30333026 // <<<<<<<
30343027 let Some ( start) = self . conflict_marker ( & TokenKind :: BinOp ( token:: Shl ) , & TokenKind :: Lt )
30353028 else {
3036- return Ok ( ( ) ) ;
3029+ return ;
30373030 } ;
30383031 let mut spans = Vec :: with_capacity ( 3 ) ;
30393032 spans. push ( start) ;
@@ -3063,7 +3056,7 @@ impl<'a> Parser<'a> {
30633056 self . bump ( ) ;
30643057 }
30653058
3066- let mut err = self . dcx ( ) . struct_span_err ( spans, "encountered diff marker" ) ;
3059+ let mut err = self . dcx ( ) . struct_span_fatal ( spans, "encountered diff marker" ) ;
30673060 match middlediff3 {
30683061 // We're using diff3
30693062 Some ( middlediff3) => {
@@ -3106,7 +3099,7 @@ impl<'a> Parser<'a> {
31063099 visit <https://git-scm.com/book/en/v2/Git-Tools-Advanced-Merging#_checking_out_conflicts>",
31073100 ) ;
31083101
3109- Err ( err)
3102+ err. emit ( ) ;
31103103 }
31113104
31123105 /// Parse and throw away a parenthesized comma separated
0 commit comments