Skip to content

Commit

Permalink
Update compiler/rustc_parse/src/parser/diagnostics.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Esteban Kuber <estebank@users.noreply.github.com>
  • Loading branch information
dev-ardi and estebank committed Jun 14, 2024
1 parent 66bc68e commit 4b9e0e1
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions compiler/rustc_parse/src/parser/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3050,8 +3050,18 @@ impl<'a> Parser<'a> {
if let Some(end) = end {
err.span_label(end, "this marker concludes the conflict region");
}
err.help("conflict markers indicate that a merge was started but could not be completed due to merge conflicts");
err.help("to resolve a conflict, keep only the code you want and then delete the lines containing conflict markers");
err.note(
"conflict markers indicate that a merge was started but could not be completed due \
to merge conflicts\n\
to resolve a conflict, keep only the code you want and then delete the lines \
containing conflict markers",
);
err.help(
"if you're having merge conflicts after pulling new code, the top section is the code \
you already had and the bottom section is the remote code\n\
if you're in the middle of a rebase, the top section is the code being rebased onto \
and the bottom section is the code coming from the current commit being rebased",
);

err.note(
"for an explanation on these markers from the `git` documentation, visit \
Expand Down

0 comments on commit 4b9e0e1

Please sign in to comment.