-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add a couple more tests #122888
add a couple more tests #122888
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// ICE #105210 self.lines.iter().all(|r| !r.iter().any(|sc| sc.chr == \'\\t\')) | ||
// ignore-tidy-tab | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this necessary? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I like to have some context in the test what the ice looked like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, I mean There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah lol. |
||
//@ edition:2021 | ||
pub fn main() {} | ||
|
||
fn box () { | ||
(( h (const {( default ( await ( await ( (move {await((((}} | ||
//~^ ERROR mismatched closing delimiter: `}` | ||
//~^^ ERROR mismatched closing delimiter: `}` | ||
//~ ERROR this file contains an unclosed delimiter |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
error: mismatched closing delimiter: `}` | ||
--> $DIR/parser-ice-ed2021-await-105210.rs:7:58 | ||
| | ||
LL | (( h (const {( default ( await ( await ( (move {await((((}} | ||
| - ^^ mismatched closing delimiter | ||
| | | | ||
| | unclosed delimiter | ||
| closing delimiter possibly meant for this | ||
|
||
error: mismatched closing delimiter: `}` | ||
--> $DIR/parser-ice-ed2021-await-105210.rs:7:43 | ||
| | ||
LL | (( h (const {( default ( await ( await ( (move {await((((}} | ||
| - ^ ^ mismatched closing delimiter | ||
| | | | ||
| | unclosed delimiter | ||
| closing delimiter possibly meant for this | ||
|
||
error: this file contains an unclosed delimiter | ||
--> $DIR/parser-ice-ed2021-await-105210.rs:10:52 | ||
| | ||
LL | fn box () { | ||
| - unclosed delimiter | ||
LL | (( h (const {( default ( await ( await ( (move {await((((}} | ||
| -- - unclosed delimiter | ||
| || | ||
| |unclosed delimiter | ||
| unclosed delimiter | ||
... | ||
LL | | ||
| ^ | ||
|
||
error: aborting due to 3 previous errors | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does
-Zunstable-options
change behavior of this test?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume the thing that causes that test to fail is not
-Znunstable-options
, but just debug assertions. We don't test those in CI afaict.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would have caught the original ice which is reason enough to add it imo.
I do run x.py test with debug assertions from time to time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I am asking why you believe
-Zunstable-options
would have caught the original ICE?-Zunstable-options
afaict does nothing on its own -- it's required to pass other unstable flags, but it doesn't do anything behavioral on its own.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have been reporting several ices where
-Zunstable-options
was crucial to reproducing the ICE, with no other flags being involved.https://github.com/rust-lang/rust/issues?q=is%3Aissue+%22-Zunstable-options%22++author%3Amatthiaskrgr+
As to why that happens, no idea 🤷