Repository navigation
Conversation
added 5 commits
October 5, 2026 13:23
…nds below |>; | < ^ < & (#2074, #2101, #2142) §29.6: Sema treated a wildcard let as moving nothing while MIR dropped the value, so a later use read freed memory. It now moves, and a later use says "let _ = h dropped h at line N; remove it to keep h". §9.1b: the parser refused a pub const without a type; the rule is gone, and the guide no longer teaches it. A use an untyped constant does not fit is refused at that use. §9.9: ?? has its own level between the comparisons and |>, right- associative. The parser also bound | tighter than & and ^ (1 | 2 & 4 was 0): the levels are now C's, as the spec's table always said. A token-level sweep of the tree found no expression whose grouping either change moves other than the spec test's (0xF0 & 0x0F) | (1 << 3) ^ 0b10, whose value is the same both ways. A pipeline stage that is an operator expression (xs |> sum() * 2) is refused with where the parentheses go.
… ==; maps iterate in insertion order (#2161, #2180) A map key is any type whose == is structural and holds no float; a custom equality is a key projection (impl Key for T: fn key()). The runtime map is an insertion-ordered dense table with an i32 index, hashed by SipHash-1-3 keyed once per process; codegen emits a per-key-type hash and equality over the key's parts or its projection. std.hash.hash_of is the same hash for a library container (HashIndex now uses it). Hash is no longer derived or written; derived Eq/Ord take views. MAP_REMOVE drops the probe key it consumed (a leak da_d96_map_remove_drops_its_key pins).
…at one; a plain struct is a key
…(D96 tombstones)
Contributor
Author
|
Battery GREEN on the stack top a21e326 (stack #2196): gate rc=0 (102s), uat rc=0 (73s), battery-checks rc=0 (245s); green evidence published. |
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.
Layer 3 of stack #2196. Spec v7.24 (D95) and v7.25 (D96).
D95:
let _ = xdrops x, and a later use says so;pub consttakes its value's type and a use it does not fit is an error at that use;??sits at its own level, right-associative, between the comparisons and|>;|<^<&in the C and spec order; a pipeline stage that is an operator expression is an error that suggests parentheses.D96: a map key is any type whose == is structural and holds no float. A custom equality is a key projection (
impl Key for T: fn key()). The runtime map is an insertion-ordered dense table, hashed with SipHash-1-3 keyed once per process.std.hash.hash_ofis the same hash, for library containers; HashIndex uses it.Hashis no longer derived or written. Derived Eq/Ord take views. MAP_REMOVE drops the key it consumed.Closes #2074, #2101, #2142, #2161, #2180.
D96's tombstone removal allocates nothing, so the #939 complexity pin is now a pass guarding that. Closes #939.