Repository navigation
hy-emit(recv): propagate channel element type provenance through receives (#4458) - #4466
Open
SuperPiIot wants to merge 1 commit into
Open
SuperPiIot wants to merge 1 commit into
SuperPiIot wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #4458
Summary
chan_elem,fn_ret_chan_elem, and helperschan_elem_of_type,register_var_from_ty,peel_ptr_base_ty_name,recv_elem_of_expr,chan_elem_of_expr,expr_foreign_binding) inhy-emitacross channel receives (<-ch), comma-ok receives (got, ok := <-chandif got, ok := <-ch; ok),selectreceive arms,for v in ch, and direct(<-ch).memberselectors.snake_casenames.compiler/crates/hy-emit/tests/recv_provenance_4458.rs(including livego runexecution).Verification
cargo test -p hy-emit --test recv_provenance_4458: 5 passed, 0 failedcargo test -p hy-diag -p hy-syntax -p hy-check -p hy-emit: 3218 passed, 0 failedpython3 tools/corpus_harness.py --bin target/debug/hyb: 139/139 verdict agreementpython3 tools/differential_loop.py --bin target/debug/hyb: accept-side (build+run) 47/47, reject-side (checker) 92/92 (FULL AGREEMENT)python3 tools/check_corpus_census.py,python3 tools/check_guarantees.py,python3 tools/check_conflict_markers.py: OKSettlement Coords
0xf084cF0076F91AA48C2370F427C399dAA8C1f07F