-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Making ICEs and test them in incremental #66060
Conversation
r? @davidtwco (rust_highfive has picked a reviewer for you, use r? to override) |
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.
Thanks for the PR. @traxys! This looks good in general. I wonder though if the // should-ice
functionality can be achieved with existing means. I'll take a closer look later today. Meanwhile, would you mind addressing the nit listed below?
@traxys, I'm not quite clear if // revisions: cfail1 cfail2
// error-pattern: delayed span bug triggered by #[rustc_error(delay_span_bug_from_inside_query)]
// failure-status: 101
#![feature(rustc_attrs)]
#[rustc_error(delay_span_bug_from_inside_query)]
fn main() {} |
@michaelwoerister the problem is this line rust/src/tools/compiletest/src/runtest.rs Line 1407 in 3a1b3b3
There is currently no way to avoid the early stop |
OK, that makes sense. In that case adding |
I think the |
Yeah, that's fine. |
I don't know if I put the test in the best place, but it should now error on misuse of |
📌 Commit e01d941 has been approved by |
Making ICEs and test them in incremental This adds: - A way to make the compiler ICE - A way to check for ICE in `cfail` tests with `should-ice` - A regression test for issue rust-lang#65401 I am not sure the attribute added `should-ice` is the best for this job
Rollup of 7 pull requests Successful merges: - #66060 (Making ICEs and test them in incremental) - #66298 (rustdoc: fixes #64305: disable search field instead of hidding it) - #66457 (Just derive Hashstable in librustc) - #66496 (rustc_metadata: Privatize more things) - #66514 (Fix selected crate search filter) - #66535 (Avoid ICE when `break`ing to an unreachable label) - #66573 (Ignore run-make reproducible-build-2 on Mac) Failed merges: r? @ghost
This adds:
cfail
tests withshould-ice
I am not sure the attribute added
should-ice
is the best for this job