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#86080 - GuillaumeGomez:rollup-vb5g14e, r=Guil…
…laumeGomez Rollup of 8 pull requests Successful merges: - rust-lang#83433 (Pass --cfg=bootstrap for proc macros built by stage0) - rust-lang#84940 (Don't run sanity checks for `x.py setup`) - rust-lang#85912 (Use `Iterator::any` and `filter_map` instead of open-coding them) - rust-lang#85965 (Remove dead code from `LocalAnalyzer`) - rust-lang#86010 (Fix two ICEs in the parser) - rust-lang#86040 (Fix display for search results) - rust-lang#86058 (Remove `_` from E0121 diagnostic suggestions) - rust-lang#86077 (Fix corrected example in E0759.md) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
24 changed files
with
232 additions
and
121 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
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,3 @@ | ||
// error-pattern: this file contains an unclosed delimiter | ||
// error-pattern: expected one of | ||
#[i=i::<ښܖ< |
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 @@ | ||
error: this file contains an unclosed delimiter | ||
--> $DIR/issue-84104.rs:3:13 | ||
| | ||
LL | #[i=i::<ښܖ< | ||
| - ^ | ||
| | | ||
| unclosed delimiter | ||
|
||
error: expected one of `>`, a const expression, lifetime, or type, found `]` | ||
--> $DIR/issue-84104.rs:3:13 | ||
| | ||
LL | #[i=i::<ښܖ< | ||
| ^ expected one of `>`, a const expression, lifetime, or type | ||
|
||
error: aborting due to 2 previous errors | ||
|
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,4 @@ | ||
fn f(t:for<>t?) | ||
//~^ ERROR: expected parameter name | ||
//~| ERROR: expected one of | ||
//~| ERROR: expected one of |
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,23 @@ | ||
error: expected parameter name, found `?` | ||
--> $DIR/issue-84148-1.rs:1:14 | ||
| | ||
LL | fn f(t:for<>t?) | ||
| ^ expected parameter name | ||
|
||
error: expected one of `(`, `)`, `+`, `,`, `::`, or `<`, found `?` | ||
--> $DIR/issue-84148-1.rs:1:14 | ||
| | ||
LL | fn f(t:for<>t?) | ||
| ^ | ||
| | | ||
| expected one of `(`, `)`, `+`, `,`, `::`, or `<` | ||
| help: missing `,` | ||
|
||
error: expected one of `->`, `;`, `where`, or `{`, found `<eof>` | ||
--> $DIR/issue-84148-1.rs:1:15 | ||
| | ||
LL | fn f(t:for<>t?) | ||
| ^ expected one of `->`, `;`, `where`, or `{` | ||
|
||
error: aborting due to 3 previous errors | ||
|
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,4 @@ | ||
// error-pattern: this file contains an unclosed delimiter | ||
// error-pattern: expected parameter name | ||
// error-pattern: expected one of | ||
fn f(t:for<>t? |
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,31 @@ | ||
error: this file contains an unclosed delimiter | ||
--> $DIR/issue-84148-2.rs:4:16 | ||
| | ||
LL | fn f(t:for<>t? | ||
| - ^ | ||
| | | ||
| unclosed delimiter | ||
|
||
error: expected parameter name, found `?` | ||
--> $DIR/issue-84148-2.rs:4:14 | ||
| | ||
LL | fn f(t:for<>t? | ||
| ^ expected parameter name | ||
|
||
error: expected one of `(`, `)`, `+`, `,`, `::`, or `<`, found `?` | ||
--> $DIR/issue-84148-2.rs:4:14 | ||
| | ||
LL | fn f(t:for<>t? | ||
| ^ | ||
| | | ||
| expected one of `(`, `)`, `+`, `,`, `::`, or `<` | ||
| help: missing `,` | ||
|
||
error: expected one of `->`, `;`, `where`, or `{`, found `<eof>` | ||
--> $DIR/issue-84148-2.rs:4:16 | ||
| | ||
LL | fn f(t:for<>t? | ||
| ^ expected one of `->`, `;`, `where`, or `{` | ||
|
||
error: aborting due to 4 previous errors | ||
|
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 @@ | ||
// Check that a suggestion is issued if there are too many `<`s in a | ||
// generic argument list, and that the parser recovers properly. | ||
|
||
fn main() { | ||
foo::<<<<Ty<i32>>(); | ||
//~^ ERROR: unmatched angle brackets | ||
//~| ERROR: cannot find function `foo` in this scope [E0425] | ||
//~| ERROR: cannot find type `Ty` in this scope [E0412] | ||
} |
Oops, something went wrong.