forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#106242 - estebank:diff-markers, r=jyn514
Detect diff markers in the parser Partly address rust-lang#32059.
- Loading branch information
Showing
26 changed files
with
438 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
enum E { | ||
Foo { | ||
<<<<<<< HEAD //~ ERROR encountered diff marker | ||
x: u8, | ||
||||||| | ||
z: (), | ||
======= | ||
y: i8, | ||
>>>>>>> branch | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
error: encountered diff marker | ||
--> $DIR/enum-2.rs:3:1 | ||
| | ||
LL | <<<<<<< HEAD | ||
| ^^^^^^^ after this is the code before the merge | ||
LL | x: u8, | ||
LL | ||||||| | ||
| ------- | ||
LL | z: (), | ||
LL | ======= | ||
| ------- | ||
LL | y: i8, | ||
LL | >>>>>>> branch | ||
| ^^^^^^^ above this are the incoming code changes | ||
| | ||
= 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 | ||
= help: 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 | ||
= note: for an explanation on these markers from the `git` documentation, visit <https://git-scm.com/book/en/v2/Git-Tools-Advanced-Merging#_checking_out_conflicts> | ||
|
||
error: aborting due to previous error | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
enum E { | ||
<<<<<<< HEAD //~ ERROR encountered diff marker | ||
Foo(u8), | ||
======= | ||
Bar(i8), | ||
>>>>>>> branch | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
error: encountered diff marker | ||
--> $DIR/enum.rs:2:1 | ||
| | ||
LL | <<<<<<< HEAD | ||
| ^^^^^^^ after this is the code before the merge | ||
LL | Foo(u8), | ||
LL | ======= | ||
| ------- | ||
LL | Bar(i8), | ||
LL | >>>>>>> branch | ||
| ^^^^^^^ above this are the incoming code changes | ||
| | ||
= 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 | ||
= help: 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 | ||
= note: for an explanation on these markers from the `git` documentation, visit <https://git-scm.com/book/en/v2/Git-Tools-Advanced-Merging#_checking_out_conflicts> | ||
|
||
error: aborting due to previous error | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
trait T { | ||
fn foo( | ||
<<<<<<< HEAD //~ ERROR encountered diff marker | ||
x: u8, | ||
======= | ||
x: i8, | ||
>>>>>>> branch | ||
) {} | ||
} | ||
|
||
struct S; | ||
impl T for S {} | ||
|
||
fn main() { | ||
S::foo(42); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
error: encountered diff marker | ||
--> $DIR/fn-arg.rs:3:1 | ||
| | ||
LL | <<<<<<< HEAD | ||
| ^^^^^^^ after this is the code before the merge | ||
LL | x: u8, | ||
LL | ======= | ||
| ------- | ||
LL | x: i8, | ||
LL | >>>>>>> branch | ||
| ^^^^^^^ above this are the incoming code changes | ||
| | ||
= 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 | ||
= help: 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 | ||
= note: for an explanation on these markers from the `git` documentation, visit <https://git-scm.com/book/en/v2/Git-Tools-Advanced-Merging#_checking_out_conflicts> | ||
|
||
error: aborting due to previous error | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#[attribute] | ||
<<<<<<< HEAD //~ ERROR encountered diff marker | ||
fn foo() {} | ||
======= | ||
fn bar() {} | ||
>>>>>>> branch | ||
|
||
fn main() { | ||
foo(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
error: encountered diff marker | ||
--> $DIR/item-with-attr.rs:2:1 | ||
| | ||
LL | <<<<<<< HEAD | ||
| ^^^^^^^ after this is the code before the merge | ||
LL | fn foo() {} | ||
LL | ======= | ||
| ------- | ||
LL | fn bar() {} | ||
LL | >>>>>>> branch | ||
| ^^^^^^^ above this are the incoming code changes | ||
| | ||
= 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 | ||
= help: 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 | ||
= note: for an explanation on these markers from the `git` documentation, visit <https://git-scm.com/book/en/v2/Git-Tools-Advanced-Merging#_checking_out_conflicts> | ||
|
||
error: aborting due to previous error | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<<<<<<< HEAD //~ ERROR encountered diff marker | ||
fn foo() {} | ||
======= | ||
fn bar() {} | ||
>>>>>>> branch | ||
|
||
fn main() { | ||
foo(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
error: encountered diff marker | ||
--> $DIR/item.rs:1:1 | ||
| | ||
LL | <<<<<<< HEAD | ||
| ^^^^^^^ after this is the code before the merge | ||
LL | fn foo() {} | ||
LL | ======= | ||
| ------- | ||
LL | fn bar() {} | ||
LL | >>>>>>> branch | ||
| ^^^^^^^ above this are the incoming code changes | ||
| | ||
= 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 | ||
= help: 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 | ||
= note: for an explanation on these markers from the `git` documentation, visit <https://git-scm.com/book/en/v2/Git-Tools-Advanced-Merging#_checking_out_conflicts> | ||
|
||
error: aborting due to previous error | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
trait T { | ||
fn foo() {} | ||
fn bar() {} | ||
} | ||
|
||
struct S; | ||
impl T for S {} | ||
|
||
fn main() { | ||
<<<<<<< HEAD //~ ERROR encountered diff marker | ||
S::foo(); | ||
======= | ||
S::bar(); | ||
>>>>>>> branch | ||
} |
Oops, something went wrong.