Add regression test for issue 144329#155188
Conversation
|
rustbot has assigned @Mark-Simulacrum. Use Why was this reviewer chosen?The reviewer was selected based on:
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| #[no_mangle] | ||
| pub fn f(stack: &mut Stack, f: fn(&T)) -> bool { | ||
| // CHECK-NOT: icmp eq ptr | ||
| let Some((_a, b)) = stack.popn_top::<0>() else { |
There was a problem hiding this comment.
Any reason this is adding the extra complexity here (e.g., const generic that always has the same value)? Does that influence the codegen?
There was a problem hiding this comment.
Originally from a generic function with callsites using let Some(([a, b, c], d)). I kept the generic and added a couple functions calling it with 0, 1, 2.
|
Reminder, once the PR becomes ready for a review, use |
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
@rustbot ready |
Closes #144329.