-
Notifications
You must be signed in to change notification settings - Fork 13.3k
BTreeMap: detect bulk_steal's count-1 underflow in release builds too #79987
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
Conversation
The title here implies that this is happening on release builds, but I presume you just mean "detect it if it happens"? |
The |
My question is more so - is this PR caused by a suspicion that this actually happens? It seems fine to me, but I would like to know if this is brought on by something or just seemed like a good idea. |
It actually happened to me in experimental code, but it cannot happen in the current code. The callers in split.rs are pretty clear about that. Which makes me realize now that it's also possible to skip the operation if count == 0, which allows taking |
@bors r+ rollup=never |
📌 Commit ad75a96 has been approved by |
☀️ Test successful - checks-actions |
r? @Mark-Simulacrum