-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
mark ty::Const::Error when meet unsupport ty for const generic params #117176
Conversation
r? @wesleywiser (rustbot has picked a reviewer for you, use r? to override) |
Why can't we just delay a bug? Or is there a way we could do the |
The function Can we reorder it and halt the process as follows? I'm concerned that it may not be feasible because it could lead to unsoundness let mut res = None;
if let Some(generics) = node.generics() {
for param in generics.params {
res = res.and(check_param_wf(tcx, param));
}
}
if res.is_error() {
return res
}
return res.and(check_item(xxxx));
How might we postpone this? The exact value is retrieved using the c.expect, but there doesn't appear to be an error fallback for |
☔ The latest upstream changes (presumably #116930) made this pull request unmergeable. Please resolve the merge conflicts. |
r? @jackh726 |
I'll take this review, but it'll be this weekend r? @jackh726 |
Okay, this errors cleanly since beta 1.76. So, I'll mark the issue as needs-test. @bvanjoi sorry for the review delay here - would you like to just update the PR to add the test as a regression test? |
Pleased to see the issue being jointly addressed. And I will add a test case. |
Can you put the test under const-generics? And rename to something descriptive, referencing the issue in a comment? |
Thanks! @bors r+ rollup |
☀️ Test successful - checks-actions |
Finished benchmarking commit (08cc634): 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)ResultsThis 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.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 670.535s -> 669.722s (-0.12%) |
This is only a test, so must be noise. |
Close #116796