forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#134267 - matthiaskrgr:rollup-k2ur2yf, r=<try>
Rollup of 3 pull requests Successful merges: - rust-lang#134081 (Try to evaluate constants in legacy mangling) - rust-lang#134192 (Remove `Lexer`'s dependency on `Parser`.) - rust-lang#134211 (On Neutrino QNX, reduce the need to set archiver via environment variables) r? `@ghost` `@rustbot` modify labels: rollup try-job: dist-x86_64-linux
- Loading branch information
Showing
14 changed files
with
174 additions
and
178 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
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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
// The diff marker detection was removed for this example, because it relied on | ||
// the lexer having a dependency on the parser, which was horrible. | ||
|
||
macro_rules! foo { | ||
<<<<<<< HEAD | ||
//~^ ERROR encountered diff marker | ||
() { | ||
======= | ||
() { // | ||
>>>>>>> 7a4f13c blah blah blah | ||
} | ||
} | ||
} //~ this file contains an unclosed delimiter |
27 changes: 10 additions & 17 deletions
27
tests/ui/parser/diff-markers/unclosed-delims-in-macro.stderr
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 |
---|---|---|
@@ -1,23 +1,16 @@ | ||
error: encountered diff marker | ||
--> $DIR/unclosed-delims-in-macro.rs:2:1 | ||
error: this file contains an unclosed delimiter | ||
--> $DIR/unclosed-delims-in-macro.rs:11:48 | ||
| | ||
LL | macro_rules! foo { | ||
| - unclosed delimiter | ||
LL | <<<<<<< HEAD | ||
| ^^^^^^^ between this marker and `=======` is the code that we're merging into | ||
LL | () { | ||
| - this delimiter might not be properly closed... | ||
... | ||
LL | ======= | ||
| ------- between this marker and `>>>>>>>` is the incoming code | ||
LL | () { // | ||
LL | >>>>>>> 7a4f13c blah blah blah | ||
| ^^^^^^^ this marker concludes the conflict region | ||
| | ||
= note: conflict markers indicate that a merge was started but could not be completed due to merge conflicts | ||
to resolve a conflict, keep only the code you want and then delete the lines containing conflict markers | ||
= 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 | ||
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> | ||
LL | } | ||
| - ^ | ||
| | | ||
| ...as it matches this but it has different indentation | ||
|
||
error: aborting due to 1 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 |
---|---|---|
@@ -1,18 +1,12 @@ | ||
// The diff marker detection was removed for this example, because it relied on | ||
// the lexer having a dependency on the parser, which was horrible. | ||
|
||
mod tests { | ||
#[test] | ||
<<<<<<< HEAD | ||
//~^ ERROR encountered diff marker | ||
//~| NOTE between this marker and `=======` | ||
|
||
//~| NOTE conflict markers indicate that | ||
//~| HELP if you're having merge conflicts | ||
//~| NOTE for an explanation on these markers | ||
|
||
fn test1() { | ||
======= | ||
//~^ NOTE between this marker and `>>>>>>>` | ||
fn test2() { | ||
>>>>>>> 7a4f13c blah blah blah | ||
//~^ NOTE this marker concludes the conflict region | ||
} | ||
} | ||
} //~ this file contains an unclosed delimiter |
Oops, something went wrong.