-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Assert that ADTs have the right number of args #123214
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
Conversation
This comment has been minimized.
This comment has been minimized.
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.
Doesn't this have to account for Type { has_default: true, .. }
? Either way, this seems reasonable but will require cleaning up the existing issues before it can land.
No, default type parameters have been expanded already. The only bug I can find (the one triggering those failures) is because we explicitly create an |
@@ -296,15 +302,6 @@ fn emit_orphan_check_error<'tcx>( | |||
}; | |||
|
|||
ty = tcx.erase_regions(ty); | |||
ty = match ty.kind() { |
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.
Ah lol, thanks :) I encountered this in #117164 and was a bit weirded out by it, glad it's gone.
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.
💀
r=me |
@bors r=estebank CI was green before I pushed the last commit, so I'll just approve this now. |
☀️ Test successful - checks-actions |
Finished benchmarking commit (40116ad): comparison URL. Overall result: ❌ regressions - ACTION NEEDEDNext Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Bootstrap: 669.392s -> 668.22s (-0.18%) |
I only touched code on debug mode and on the error path 🤨 |
This looks within (recently higher likelihood) typical bimodality on these benchmarks. Marking as triaged. |
We're doing it for many other types, let's also do ADTs 😇