Skip to content

Release 0.2.6 - #28

Merged
cuviper merged 17 commits into
indexmap-rs:mainfrom
cuviper:release-0.2.6
Aug 28, 2026
Merged

Release 0.2.6#28
cuviper merged 17 commits into
indexmap-rs:mainfrom
cuviper:release-0.2.6

Conversation

@cuviper

@cuviper cuviper commented Aug 28, 2026

Copy link
Copy Markdown
Member

No description provided.

cuviper and others added 17 commits August 28, 2026 14:06
There are cases where we never need the `Equivalent` abstraction. This
may not lead to much performance difference, if any, but it should at
least be a little lighter burden on the compiler.

(cherry picked from commit 4da89f315654e967b2332331218e8a5da04dc394)
At first glance this may seem worse because it's roughly duplicating the
`unsafe` code. However, these are now placed in a dedicated module where
the parallels are apparent, and they should be more direct for their
respective use-cases.

* For disjoint key lookup in a map, we don't need to produce a `Result`
  that we're just going to turn into panics anyway.
* For disjoint indices in a slice, we don't need to deal with `Option`,
  and we can drop our own unsafe implementation here in favor of the
  standard library once we update to MSRV 1.86.

(cherry picked from commit ddb0316dc25e12fb0ecda55f0a4e754dd62e6e5c)
(cherry picked from commit 323b6797f047494cee90ff5e47faf1e742192671)
This makes sure we use consistent messages for index bounds checks,
without so much repetition.

(cherry picked from commit 49532eb10bc096014100a837c994cccbee22e493)
(cherry picked from commit eae6655867ee1496629bae84e86502909f35dbf0)
(cherry picked from commit ae475950a3cc18bd914aec74ea411cca170e2b38)
(cherry picked from commit 417437d1aae0a963015a6a4fad13a512df562a05)
(cherry picked from commit 79f7bd948506f3e52224b8eb096611576a6cd19b)
(cherry picked from commit be7ffd0d154c06f76152b6884ee44f88eebe68aa)
(cherry picked from commit 41760c52bbfdd6c7cb43331246c813506d825a49)
(cherry picked from commit 64f4a06684dd4ed06dc6629dd8bbefc59394b2c9)
(cherry picked from commit 1c2be7b00c5bb61f654210355d1e9f0d9be03956)
(cherry picked from commit 21963654e41f86f396a2ba6d9582ccd8eb7df52c)
(cherry picked from commit c95da18c97d2742fe8731f36e81c1d04f0620c6a)
(cherry picked from commit af93b43ecd62d28deb59a6ac23f98bd115475eaf)
(cherry picked from commit ada540e17cc7d8f38359f7d83c225e38f367c86b)
@cuviper
cuviper added this pull request to the merge queue Aug 28, 2026
Merged via the queue into indexmap-rs:main with commit e28f993 Aug 28, 2026
16 checks passed
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