-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
[beta] Revert arg matrix algorithm from check_argument_types
#97701
The head ref may contain hidden characters: "\u{1F171}-remove-arg-matrix"
Conversation
|
I constructed this PR by reverting the body of I walked through all other PRs that change |
lgtm After merging, given the size of the revert I'd appreciate an extra crater run of the resulting beta. |
This just screams "we shouldn't backport this revert" to me. It scares me to land such a large PR directly on beta without testing (especially sense it seems like this was not just mechanical reverts but actually needed manual intervention). If we're worried enough that we need a crater run just to verify this doesn't break anything, I definitely think it's better to just backport smaller patches. (I mean, the bugs files for the arg mismatch code didn't show up in crater - and that's gotten a 6 week head start before landing on stable). |
Manual intervention here was extremely minimal. I did basically just copy and paste the old function body from stable (i.e. before the rewrite) and patch up the call-sites that used this function, of which there are only like 3.
Crater is biased to detect bugs in existing (mostly) compiling code. This arg-mismatch algorithm works in the cases that we have correct code, but crater is missing visibility of incorrect code, such as code in the middle of a large refactor or where genuine bugs (e.g. those encountered during the edit-check-edit loop). But in any case, I'm afraid that we're back at square zero re: the discussion we had back regarding the original backport nomination of #97557... 😵💫 |
Let's do r? @estebank for final signoff here either way. |
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.
Actual changes seem fine to me (despite my hesitance to backport)
Can you clarify what the plan on nightly is? In general, we prefer to avoid landing code solely on beta, since that may mean we need to keep doing so in future (and may forget). It sounds like we're planning a separate patch there? |
OK. If a crater is deemed warranted, that can take ~4+ days (and triage time), so we are relatively short on time if we're to do anything meaningful with the results, so we should likely get this merged pretty quickly. Ideally, I would like to see the master-targeted PRs at least r+'d I think before we move ahead here. Is the primary reason we're not reverting on master that the patch is large and annoying to rebase, so creates pain for folks trying to keep up with master if it's not in-tree? |
It's definitely not worth reverting anything on master. That can just be patched (the patch to fix the smallish ICEs are in the above linked PRs). |
@bors r+ |
📌 Commit 337adc6b41b71595953103b52dd9b6dd8d6a71d8 has been approved by |
@bors rollup=never |
⌛ Testing commit 337adc6b41b71595953103b52dd9b6dd8d6a71d8 with merge 1885963843195765f2672941f783ea838acc708d... |
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
I'm not entirely sure why that test failed 🤔 Just in case it's transient: @bors retry |
@bors r- i need to bless the aarch64-linux-gnu tests |
(accidentally removed some .fixed tests by accident :/ oops) |
@bors r=estebank p=1 |
📌 Commit 2f1bf16 has been approved by |
☀️ Test successful - checks-actions |
We decided in T-compiler meeting that this is best removed in beta, and reworked to be less ICE-y on nightly: https://rust-lang.zulipchat.com/#narrow/stream/238009-t-compiler.2Fmeetings/topic/.5Bweekly.5D.202022-06-02/near/284755523
r? @jackh726 @estebank