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

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 4da89f3)
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 ddb0316)
This makes sure we use consistent messages for index bounds checks,
without so much repetition.

(cherry picked from commit 49532eb)
(cherry picked from commit eae6655)
(cherry picked from commit ae47595)
(cherry picked from commit 417437d)
(cherry picked from commit 79f7bd9)
(cherry picked from commit 41760c5)
(cherry picked from commit 64f4a06)
(cherry picked from commit 1c2be7b)
(cherry picked from commit c95da18)
(cherry picked from commit ada540e)
@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