Repository navigation
Conversation
added 7 commits
November 28, 2026 05:33
Contributor
Author
|
Seed-driven battery green at Marking ready and merging. |
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
Bundled Wave 2a fixes and features (5 commits, verified locally on
:devand--debug-alloc, seed-driven battery running):31f1225d7):TestDirectives.expect_check_failinsrc/main.withnow storesList[str]and verifies every//! expect-error:///! expect-check-fail:line instead of silently overwriting with the last one.src/Sema.withc_charliteral diagnostic and updated 8 stale first-line expectations intest/compile_errors/.SlotMap/SlotMapSlotmoved tostd.collections(Built-in methods get real bodies and declared signatures in the standard library (D110); delete the freeze door and the method-value adapter #3483) (642aa3343):check_generic_method_callinsrc/SemaCheck.withnow enforcescheck_generic_trait_boundsforimpl[T: Bound]type parameters, method type parameters, andwhereclauses.SlotMap.slot,SlotMap.get_disjoint,SlotMapSlot.get, andSlotMapSlot.setintolib/std/collections.withand deleted the corresponding compiler intrinsics andBuiltinSigsrows.Finalize[T](D257, closes D34-A: demand-site finalization — a Builder satisfies an owned demand for its built type; grander wrapper-elimination design goes to Eric #920) (bcb2e6299):pub trait Finalize[T]: move fn finalize() -> Tinlib/std/traits.withandimpl Finalize[str] for StringBuilderinlib/std/string.with.src/SemaCheck.withandsrc/MirLower.with(owned concrete demands only, no chaining withOptionwrapping, retainsCopybuilders likeStringBuilderand moves non-Copybuilders).D257indocs/meetings/2026-11-28-D257-demand-site-builder-finalization.mdwith Law citations and verbatim Test answers.--debug-alloc, and compile-error tests (behav_920_*,da_920_*,err_920_*).ListSlot,ListRange,ListIterPlacemoved tostd.collections+SlotMapSlot.getcopy glue fix (Built-in methods get real bodies and declared signatures in the standard library (D110); delete the freeze door and the method-value adapter #3483) (10db912aa):pub type ListRange[T] ephemeraland movedListSlot.get/set,ListRange.get/set/len/len32/len64/ulen32/is_empty/split_at/split_at_mut, andListIterPlace.nextintolib/std/collections.with(removing ~398 lines of hardcoded intrinsic code and 5BuiltinSigsrows).SlotMapSlot.get(andListSlot.get/ListRange.get) to copy outT: Copythrough&T(let v: &T = unsafe { &*slot }; *v) so copy glue retains refcountedstr/Listfields instead of bitwise reading.HashMapEntrykey-drop leak fix & generic-struct field Sema lookup:MAP_ENTRYinsrc/CodegenDispatch.withnow usesmir_dest_llvm_type(the registered%HashMapEntry__...struct type) instead of an anonymous struct, somir_emit_drop_fields_ptrfinds the struct and dropsHashMapEntry.keyat scope exit (behav_slot_get_copy_glue.withdrops from 2 leaks to 0 leaks under--debug-alloc).mir_emit_drop_fields_ptrandmir_emit_struct_copy_glue_fieldsresolve instantiated field Sema types by declaration index (type_reflection_field_type_frozen) before falling back to symbol-based projection.test/debug_alloc/da_slot_range_copy_glue.withcoveringListSlot,ListRange,SlotMapSlot, andHashMapEntrywithCourier { name: str, n: i32 }.Closes #920
Part of #3483