Repository navigation
Conversation
|
rustbot has assigned @petrochenkov. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
Should we run a crater for this? |
|
Related: #123531 |
|
r? types |
|
yeah, sgtm. would do a crater run @bors try |
This comment has been minimized.
This comment has been minimized.
Register wf obligation for closure's return type
This comment has been minimized.
This comment has been minimized.
|
💔 Test for e8009a6 failed: CI. Failed jobs:
|
This comment has been minimized.
This comment has been minimized.
|
@bors try |
This comment has been minimized.
This comment has been minimized.
Register wf obligation for closure's return type
|
@craterbot check |
|
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
|
🚧 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
|
🎉 Experiment
Footnotes
|
This comment was marked as outdated.
This comment was marked as outdated.
1 similar comment
|
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
|
🚧 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
|
🎉 Experiment
Footnotes
|
|
The regression looks weird: This appeared in the two crater runs, I think it is spurious 🤔. @lcnr do you think we should investigate this more, or do the check again? |
|
can you test it locally? it does look spurious to me Apart from this, mind adding a bit of an explanation of this change and why it's necessary to the PR description? @rustbot author |
Tested locally and passed.
Updated :) |
|
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 |
View all comments
Fixes #163356
We register the wf obligations for closure's param types in #123531, but miss the wf obligation for the return type and only register the sized obligation.
For the following case, the closure's return type is
(str, u8)and will pass the sized check because the sized check only requires the last element type is sized, i.e.,u8: Sized.So we could also trigger this ICE by:
This PR registers the wf obligation for the closure's return type, so that
(str, u8)cannot pass the wf check for now.