-
Notifications
You must be signed in to change notification settings - Fork 13k
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 #53578 - varkor:disappearing-turbofish-crater-run, r=<try>
[Do not merge] Optional turbofish breakage test As an academic exercise, to satisfy ourselves that we completely understand the lay of the land, we'd like to see how often ambiguous cases arise in real-world Rust code. (Following on from #53511.) @rust-lang/infra: is it possible to get a check-only crater run for this change? r? @ghost
- Loading branch information
Showing
9 changed files
with
77 additions
and
76 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -167,7 +167,7 @@ pub enum Token { | |
Comma, | ||
Semi, | ||
Colon, | ||
ModSep, | ||
ModSep, // `::` | ||
RArrow, | ||
LArrow, | ||
FatArrow, | ||
|
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,38 +1,18 @@ | ||
error: chained comparison operators require parentheses | ||
--> $DIR/issue-40396.rs:12:37 | ||
error[E0423]: expected function, found struct `Vec` | ||
--> $DIR/issue-40396.rs:20:38 | ||
| | ||
LL | println!("{:?}", (0..13).collect<Vec<i32>>()); //~ ERROR chained comparison | ||
| ^^^^^^^^ | ||
| | ||
= help: use `::<...>` instead of `<...>` if you meant to specify type arguments | ||
= help: or use `(...)` if you meant to specify fn arguments | ||
|
||
error: chained comparison operators require parentheses | ||
--> $DIR/issue-40396.rs:16:25 | ||
| | ||
LL | println!("{:?}", Vec<i32>::new()); //~ ERROR chained comparison | ||
| ^^^^^^^ | ||
| | ||
= help: use `::<...>` instead of `<...>` if you meant to specify type arguments | ||
= help: or use `(...)` if you meant to specify fn arguments | ||
|
||
error: chained comparison operators require parentheses | ||
--> $DIR/issue-40396.rs:20:37 | ||
| | ||
LL | println!("{:?}", (0..13).collect<Vec<i32>()); //~ ERROR chained comparison | ||
| ^^^^^^^^ | ||
| | ||
= help: use `::<...>` instead of `<...>` if you meant to specify type arguments | ||
= help: or use `(...)` if you meant to specify fn arguments | ||
LL | println!("{:?}", (0..13).collect<Vec<i32>()); //~ ERROR expected function, found struct `Vec` | ||
| ^^^^^^^^ did you mean `Vec { /* fields */ }`? | ||
|
||
error: chained comparison operators require parentheses | ||
--> $DIR/issue-40396.rs:20:41 | ||
error[E0615]: attempted to take value of method `collect` on type `std::ops::Range<{integer}>` | ||
--> $DIR/issue-40396.rs:20:30 | ||
| | ||
LL | println!("{:?}", (0..13).collect<Vec<i32>()); //~ ERROR chained comparison | ||
| ^^^^^^ | ||
LL | println!("{:?}", (0..13).collect<Vec<i32>()); //~ ERROR expected function, found struct `Vec` | ||
| ^^^^^^^ | ||
| | ||
= help: use `::<...>` instead of `<...>` if you meant to specify type arguments | ||
= help: or use `(...)` if you meant to specify fn arguments | ||
= help: maybe a `()` to call it is missing? | ||
|
||
error: aborting due to 4 previous errors | ||
error: aborting due to 2 previous errors | ||
|
||
Some errors occurred: E0423, E0615. | ||
For more information about an error, try `rustc --explain E0423`. |
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,20 +1,20 @@ | ||
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `true` | ||
error: expected one of `!`, `.`, `::`, `;`, `<`, `?`, `{`, `}`, or an operator, found `true` | ||
--> $DIR/raw-literal-keywords.rs:14:10 | ||
| | ||
LL | r#if true { } //~ ERROR found `true` | ||
| ^^^^ expected one of 8 possible tokens here | ||
| ^^^^ expected one of 9 possible tokens here | ||
|
||
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `Test` | ||
error: expected one of `!`, `.`, `::`, `;`, `<`, `?`, `{`, `}`, or an operator, found `Test` | ||
--> $DIR/raw-literal-keywords.rs:18:14 | ||
| | ||
LL | r#struct Test; //~ ERROR found `Test` | ||
| ^^^^ expected one of 8 possible tokens here | ||
| ^^^^ expected one of 9 possible tokens here | ||
|
||
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `Test` | ||
error: expected one of `!`, `.`, `::`, `;`, `<`, `?`, `{`, `}`, or an operator, found `Test` | ||
--> $DIR/raw-literal-keywords.rs:22:13 | ||
| | ||
LL | r#union Test; //~ ERROR found `Test` | ||
| ^^^^ expected one of 8 possible tokens here | ||
| ^^^^ expected one of 9 possible tokens here | ||
|
||
error: aborting due to 3 previous errors | ||
|