Skip to content

fix(edmonds-karp): drop the two unsafe Send impls again - #846

Merged
samueltardieu merged 1 commit into
evenfurther:mainfrom
tachsin:fix/ek-unsafe-send-again
Sep 24, 2026
Merged

samueltardieu merged 1 commit into
evenfurther:mainfrom
tachsin:fix/ek-unsafe-send-again

Conversation

@tachsin

@tachsin tachsin commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

This restores #820, which fixed #817.

#820 removed two unsafe impl Send blocks from edmonds_karp.rs, because the compiler already derives Send for SparseCapacity<C> and DenseCapacity<C> whenever C is Send. They are back on main because of my #823: its branch was cut before #820 was merged, and landing it wrote the old lines back. The same stale branch is what carried CONTRIB-DRAFTS.md in, which #828 took out again. Sorry about that.

This removes the same two blocks #820 removed, and nothing else.

capacities_are_send_without_an_unsafe_impl in tests/edmondskarp.rs, added by #820, still passes. It asserts the types are Send, which holds either way, so it could not have caught the regression. I did not add a test that greps the source for unsafe impl, since that seemed out of keeping with the rest of the suite, but I can if you would like one.

To check nothing else came back the same way, I went through every commit since #786 and looked for deleted lines that are present in the source again. These two blocks are the only real case; the other matches were lines that had been moved rather than removed.

These were removed in evenfurther#820, since the compiler already derives Send for
both types whenever C is Send. evenfurther#823 brought them back by accident: its
branch predated evenfurther#820, and landing it restored the old lines.

tests/edmondskarp.rs still asserts that both types are Send, which holds
without them, as it did after evenfurther#820.
@samueltardieu
samueltardieu added this pull request to the merge queue Sep 24, 2026
Merged via the queue into evenfurther:main with commit 2a3b41f Sep 24, 2026
12 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.

Two unsafe impl Send in edmonds_karp that the compiler already provides

2 participants