Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Ranges::from_iter over Ranges::iter_mut #8825

Open
wants to merge 1 commit into
base: charlie/local
Choose a base branch
from

Conversation

konstin
Copy link
Member

@konstin konstin commented Nov 5, 2024

Use astral-sh/pubgrub#34 (pubgrub-rs/pubgrub#273) for safer ranges modification that can't break pubgrub invariants.

In the process, I removed the &mut references in favor of a direct immutable-to-immutable mapping.

The tests currently fail, i think it's because we're producing empty segments where Ranges expects them to be non-empty; See pubgrub-rs/pubgrub#273 for more discussion on invariants.

Use astral-sh/pubgrub#34 (pubgrub-rs/pubgrub#273) for safer ranges modification that can't break pubgrub invariants.

In the process, I removed the `&mut` references in favor of a direct immutable-to-immutable mapping.
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