-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Remove potentially misleading realloc parenthetical #97053
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
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
(rust-highfive has picked a reviewer for you, use r? to override) |
r? rust-lang/libs-api @rustbot label +T-libs-api -T-libs |
@bors r+ rollup |
📌 Commit 09dc24b has been approved by |
☀️ Test successful - checks-actions |
Finished benchmarking commit (56d540e): comparison url. Summary: This benchmark run did not return any relevant results. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression |
This parenthetical is problematic, because it suggests that the following is sound:
At the very least, this isn't the case for ANSI
realloc
and Windows
HeapReAlloc
is unclear at best (HEAP_REALLOC_IN_PLACE_ONLY
's description may imply that the old pointer may be used ifHEAP_REALLOC_IN_PLACE_ONLY
is provided).The conservative position is to just remove the parenthetical.
cc @rust-lang/wg-unsafe-code-guidelines @rust-lang/wg-allocators