Repository navigation
Test-migration: v1 diagnostics module (328 LOC, 12 tests) - #6213
Merged
Merged
Conversation
…parity. Consolidate the 12 v1 diagnostic tests into four discriminating floor witnesses (import resolution + span, re-export surface, type/arity, empty-list context) and drop tautological or redundant cases per test-migration lane guidance. Co-authored-by: Cursor <cursoragent@cursor.com>
#3. Merge the dropped v1 unknown_type_name_no_arity_false_positive case back into type_and_arity_discrimination alongside the List<Int> negative control. Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
|
Addressed in e8cb3aa. Witness #3 negative controls — both asserted, not just named:
The reviewer is correct that (2) and (3) are distinct regression vectors — parameterized std containers vs user-defined nominal types. (2) was already asserted; (3) was incorrectly dropped as "redundant" and is now merged back into witness #3 rather than a separate floor row. Provenance string updated to document both negative controls explicitly. — sent from proud-hawk-812 |
gunbai-bot Bot
pushed a commit
that referenced
this pull request
Jul 3, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
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
Migrate
src/v1/tests/src/diagnostics.rsto floor witnessdag/test/claim/diagnostics_test.dag(exact stemdiagnostics), then delete the v1 module.Not 1:1 test-count parity — curated four high-signal floor witnesses (host-physics via
diagnostics_witness+ shell transport):diagnostics_import_resolution_holds— MissingExport message + span grounding + UnresolvedImport variantdiagnostics_reexport_surface_holds— variant not re-exported through type-only import surfacediagnostics_type_and_arity_holds— UnresolvedType + ArityMismatch on bareListbut notList<Int>diagnostics_empty_list_context_holds— empty-list literal fails without collection context, passes withList<String>contextDropped (tautological/redundant): clean-compile zero-diags sanity, multi-missing-export span bookkeeping, user-type arity false-negative,
duplicate_module_detected(#[ignore]PERF).Test plan
diagnostics_witness— all 4 suites pass locallyclaim_batch --claim-run ... diagnostics_test.dag --functions diagnostics_import_resolution_holds,diagnostics_reexport_surface_holds,diagnostics_type_and_arity_holds,diagnostics_empty_list_context_holds— 4/4 PASScargo clippy -p v1-compiler --bin diagnostics_witness -- -D warnings— clean03_resolve.dag/04_infer.dagchanges