Skip to content

Spec v7.10 (D77): matching on a borrowed trait object — name: C binds &C; sealed implementors are the exhaustiveness domain; no by-value dyn parameter (#1860 #1852) - #1897

Merged
ehartford merged 2 commits into
fix-sdl-importfrom
spec-sealed-matching
Sep 29, 2026
Merged

ehartford merged 2 commits into
fix-sdl-importfrom
spec-sealed-matching

Conversation

@ehartford

@ehartford ehartford commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Stack #1898, top layer (docs only). Eric blessed the words 2026-09-29 ("blessed"). §9.7 gains "Trait-object downcast patterns", §11.3 the by-value refusal, the grammar TYPED_BIND_PAT; D77 in the decision log; the proposal moves to docs/completed. The implementation is on layer 3 (#1868). Draft until the stack battery is green and posted.

@ehartford
ehartford added this pull request to stack #1898 September 29, 2026 05:03
@ehartford ehartford changed the title spec sealed matching Spec v7.10 (D77): matching on a borrowed trait object — name: C binds &C; sealed implementors are the exhaustiveness domain; no by-value dyn parameter (#1860 #1852) Sep 29, 2026
@ehartford

Copy link
Copy Markdown
Contributor Author

Battery RED on the stack top 591d9c5 (2026-09-29, pinned seed cffa4a40…; gate rc=0 in 715 s, battery-checks rc=1 in 1864 s):

behavior-tests (behav_1810_str_view_params, behav_rt_in_unit_check_lane, behav_unit_and_c_void_surface) · native-compile-error-tests (err_c_facade_free_callback_once) · native-spec-tests (spec_ss02_4_expression_temporaries, spec_ss14_17_mutex_generic, spec_ss14_17_rwlock_generic) · internals-tests (mir_move_of_moved_place_test) · tommyds-wo-drift / wo-drift / tommyds-test (bundle functions assumed to write every exported global: HASH32/HASH64/INTHASH*) · c-algorithms-test (migrated avl_tree.w:467 u32→i32) · cli-selfhost-build-w-tests (ToolFs "path escapes project root" through the staging symlinks) · c-migrator-core-tests (selfhost case run-runtime-cabi-aliases) · c-migrator-tests (dependent).

Repairs are being made on the owning layers (fix-literals #1894, fix-globals #1868, fix-cfn #1870 / fix-comptime-str #1891); the layers above get re-folded and ONE battery re-runs. Every PR stays draft until that battery is green. Also filed #1899: the battery re-ran every test with 0 cached because the cache is per-worktree.

Eric Hartford added 2 commits September 29, 2026 14:40
…ds `&C`; sealed implementors are the exhaustiveness domain; no by-value dyn parameter (#1860 #1852)

Eric blessed the words 2026-09-29. §9.7 gains "Trait-object downcast
patterns", §11.3 the by-value refusal, the grammar TYPED_BIND_PAT; the
D77 log entry records the design (option (a), 2026-09-28) and why.
@ehartford
ehartford marked this pull request as ready for review September 29, 2026 18:57
@ehartford
ehartford merged commit e5156e4 into main Sep 29, 2026
@ehartford
ehartford deleted the spec-sealed-matching branch September 29, 2026 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant