-
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
Miri terminator handling: only do progress sanity check for 'Call' terminator #70771
Conversation
8e736f2
to
f8b6e83
Compare
This comment has been minimized.
This comment has been minimized.
@@ -0,0 +1,5 @@ | |||
#![feature(const_loop)] | |||
|
|||
static _X: () = loop {}; //~ ERROR could not evaluate static initializer |
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 long does this test take? If more than a second, please lower the step limit
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 takes not even 200ms here:
$ time rustc +rustc.2-s1 src/test/ui/consts/const-eval/issue-70723.rs
error[E0080]: could not evaluate static initializer
--> src/test/ui/consts/const-eval/issue-70723.rs:3:17
|
3 | static _X: () = loop {}; //~ ERROR could not evaluate static initializer
| ^^^^^^^ exceeded interpreter step limit (see `#[const_eval_limit]`)
error: aborting due to previous error
For more information about this error, try `rustc --explain E0080`.
real 0m0,125s
user 0m0,064s
sys 0m0,029s
r=me after ensuring that the new test doesn't consume too much time |
@bors r=oli-obk |
📌 Commit e92bde3 has been approved by |
☀️ Test successful - checks-azure |
This will still catch mistakes in bad intrinsic/foreign-item shims, which is the main source of errors here.
Fixes #70723
r? @oli-obk