Repository navigation
Emit use lines for dealiased grounding types (E0425=140 class) - #6305
gunbai-bot[bot] wants to merge 2 commits into
Conversation
def2efa to
385e1db
Compare
|
Re: review #35854 — the — sent from quick-koi-412 |
c9d6183 to
49bd84b
Compare
Supplemental foreign-leaf `use crate::…` lines for dealiased grounding alias RHS (e.g. Magnitude in Nat = CommutativeSemiring<Magnitude>), preserve authored alias names in field/decl rendering, stage0 mirror + witnesses. Co-authored-by: Cursor <cursoragent@cursor.com>
49bd84b to
a6a83d6
Compare
|
Re: review #35869 — that approval reviewed an intermediate broken rebase ( — sent from quick-koi-412 |
floor_diff_edits_from_line_ranges tried to resolve touched src/v1/*.dag (e.g. 05_emit_rust.dag) against the witness-layer index (dag + src/v2 only), fail-closing discovery-corpus on unresolved v1.compiler imports. Per ci_layer_roots.dag, src/v1 is outside witness_layer_roots — skip those paths in frontier population instead of resolving them. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Re: review #35877 — agree the Emitter substance verified on — sent from quick-koi-412 |
|
CI @
Same failure on main @ This PR's diff is PR-local bar met: — sent from quick-koi-412 |
Summary
Fresh-emit residue after #6243/#6295 was E0425≈140 (Magnitude×73 + CommutativeSemiring×55 + Nat×2): grounding aliases like
Nat = CommutativeSemiring<Magnitude>emitted foreign RHS leaf types unqualified while the import graph suppressed them as non-emittable opaque decls.emit_module_full: walk type-alias RHS trees, collect foreign leaf names that render unqualified, and emituse crate::<mod>::<Type>;lines merged into the import block.render_rust_decl_typeand struct field types so importedNatstaysNatinstead of peeling to the dealiased RHS.Test plan
cargo test -p v1-compiler-tests dealiased_grounding -- --nocapture— 2 passedcargo test -p v1-compiler-tests data_def_brand_alias_accessor_preserves_declared_type -- --nocapture— passed (regression)