Repository navigation
emit import-closure: anonymous record-lit + variant payload harvest - #7160
Merged
Merged
Conversation
`|> unique_strings` lowered to a method call on Rc<Vec<_>> (E0599). Use unique_strings(items: ...) form; regen stage0 output included. Co-authored-by: Cursor <cursoragent@cursor.com>
…0-closure-complete-2
…0-closure-complete-2
1 task
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.
Summary
Extends
reference_derived_use_linesimport harvesting for the post-#7097type-ref-import-missingclass (#7153 follow-on). Adds five harvest paths in05_emit_rust.dag(stage0 seed synced):anonymous_record_lit_surface_name— mirrors emitterfind_struct_name_by_fields/find_unique_struct_name_by_fieldsfor anonymous record lits (e.g.host_transport{ primitive_type, bytes }→RuntimePrimitiveValue)collect_record_lit_field_struct_surfaces— variant field → payload struct types viavariant_summary_keyrecord_lit_variant_payload_struct_surfaces+expand_variant_payload_struct_importscollect_items_field_import_surface_names(RuntimeValue::RuntimePrimitivekey)ExprRecordLitwalk descends throughfield_init_node_value(not field-init wrappers)Construction wall unchanged: candidates still gate on
provider_proven_exports_symbol.Probe receipt (post-change @
0b0322a, CSSL_STD_SEED_LINK=1, six deep modules)Lane totals: E0433=42 · E0422=47 · E0425=47 (unchanged vs post-#7153). 0/6 cargo-green. Histogram unchanged — harvest candidates not yet reaching synthesis for
RuntimePrimitiveValue; follow-on checkpoint targets that gap.Commands:
./target/release/regen_stage0 --verify(green) · parallelCSSL_STD_SEED_LINK=1 scripts/curated_cargo_probe_one.shon all six modules.Test plan
regen_stage0 --verify— byte-identical, divergence_count=0