Skip to content

Commit 4b9e0e1

Browse files
oriongonzaestebank
andcommitted
Update compiler/rustc_parse/src/parser/diagnostics.rs
Co-authored-by: Esteban Kuber <estebank@users.noreply.github.com>
1 parent 66bc68e commit 4b9e0e1

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

compiler/rustc_parse/src/parser/diagnostics.rs

+12-2
Original file line numberDiff line numberDiff line change
@@ -3050,8 +3050,18 @@ impl<'a> Parser<'a> {
30503050
if let Some(end) = end {
30513051
err.span_label(end, "this marker concludes the conflict region");
30523052
}
3053-
err.help("conflict markers indicate that a merge was started but could not be completed due to merge conflicts");
3054-
err.help("to resolve a conflict, keep only the code you want and then delete the lines containing conflict markers");
3053+
err.note(
3054+
"conflict markers indicate that a merge was started but could not be completed due \
3055+
to merge conflicts\n\
3056+
to resolve a conflict, keep only the code you want and then delete the lines \
3057+
containing conflict markers",
3058+
);
3059+
err.help(
3060+
"if you're having merge conflicts after pulling new code, the top section is the code \
3061+
you already had and the bottom section is the remote code\n\
3062+
if you're in the middle of a rebase, the top section is the code being rebased onto \
3063+
and the bottom section is the code coming from the current commit being rebased",
3064+
);
30553065

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

0 commit comments

Comments
 (0)