Skip to content

Document mutation-based logic error #9

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

Closed
apasel422 opened this issue Mar 20, 2015 · 2 comments
Closed

Document mutation-based logic error #9

apasel422 opened this issue Mar 20, 2015 · 2 comments
Assignees

Comments

@apasel422
Copy link
Contributor

Add this to the IntervalHeap doc:

It is a logic error for an item to be modified in such a way that the item's ordering relative to any other item, as determined by the heap's comparator, changes while it is in the heap. This is normally only possible through Cell, RefCell, global state, I/O, or unsafe code.

@Gankra
Copy link
Contributor

Gankra commented Mar 20, 2015

I kinda assumed that that goes without saying but sure, why not.

@apasel422
Copy link
Contributor Author

We added this disclaimer to the collections in std: rust-lang/rust#23342.

@apasel422 apasel422 self-assigned this Mar 20, 2015
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

No branches or pull requests

2 participants