-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Compile ignored tests rather than skipping #13745
Comments
My idea is to add a way to specify why a test is ignored (causes ice, fails to compile, fails to run). Test runner could compile such tests and check whether they still compile / cause ice / fail to compile / fail to run and warn if the something changed. |
Triage: I'm not aware of any changes in this area. |
Attempted to triage ignored tests. Summary below, also filed #41629 to unignore or update the ignore statements on a few tests to indicate that they are auxiliary files. Nightly-only:
Currently fail, undiagnosed reasons:
I don't even know what this tried to test, but I expect it's gone by now (delete?):
This compile successfully, but it should fail:
Test claims that it has different output on 32/64 bit (#23926):
Unsized enums aren't supported:
This does not appear to be a compile-fail test:
This should be a UI-test, probably -- compile-fail can't test this I think:
No associated stderr file for undiagnosed reasons:
|
Unignore tests which work fine now. As far as I can tell, these tests will now work fine. #13745 tracks the remaining tests which are ignored for various reasons.
I did some research into where this came from; wow was that a rabbit hole. Here's the commit where that test came from: 2db4259#diff-d7743dac25dc59daac6583aab0dc1bb8 It has a lot of interesting stuff (beyond just the look back into very old Rust syntax), like a hard-coded From its inception, it was tagged an "xfail-test" (as in, ignore-test). The reason for it being ignored, according to f8bd955#diff-884e9fc8b00b17708aa78ee7e6645c6b , is that "blk" wasn't supported in the front-end. (Though I think the type checker was still doing something special for it, as shown here : rust/src/librustc/middle/typeck/check.rs Line 580 in f8bd955
So, yeah, we should just kill that test. |
Delete long-ignored and useless test cc @pnkfelix (#13745 (comment)) r? @petrochenkov as you re-enabled this test in 21d67c4, #55236
I've filed #71711 which further updates some things here and put an updated description of what's left as ignored tests in the issue description. I'm personally leaning towards closing this at this point as I think the remaining tests are sufficiently uninteresting to not be worth having a meta tracking issue like this for. |
…ikomatsakis Updates to some ignored tests This removes or fixes some ignored test cases. cc rust-lang#13745
Show type info on hover of enum variant fields Small addition to rust-lang/rust-analyzer#13490
May I ask what the state of this issue is? What has to be done? |
Oh goodness, this issue is ancient. It looks like the current header command for this is
@TornaxO7 if you want to help, I think the steps would look something like this:
|
(I know this issue is ancient, but) After categorizing and possibly making decisions about how to fix them, we should have compiletest enforce that |
compilestest triage: current
|
Ignored tests:
Lack of support in codegen for closures/generics are always inline:
src/test/codegen-units/item-collection/cross-crate-closures.rs
src/test/codegen-units/item-collection/non-generic-closures.rs
src/test/codegen-units/partitioning/methods-are-with-self-type.rs
This compile successfully, but it should fail:
src/test/ui/lint/dead-code/closure-bang.rs
The text was updated successfully, but these errors were encountered: