-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Std/thread: deny unsafe op in unsafe fn #74225
Std/thread: deny unsafe op in unsafe fn #74225
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
☔ The latest upstream changes (presumably #73265) made this pull request unmergeable. Please resolve the merge conflicts. |
dfa69f8
to
58c7e35
Compare
☔ The latest upstream changes (presumably #75351) made this pull request unmergeable. Please resolve the merge conflicts. |
58c7e35
to
3a22b21
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is a quick high-level review (I can't go any deeper because I know pretty much nothing about threads and TLS and OSes). Thanks again for helping with this @poliorcetics!
In case GitHub makes it non-obvious: I've left answers to some of your suggestions and modified the other comments in response. |
I modified all the comments that were noted. There are some part of those that could maybe go as documentation for their enclosing method and not inner |
@bors r+ rollup |
📌 Commit 0e56b52 has been approved by |
…n-unsafe-fn, r=joshtriplett Std/thread: deny unsafe op in unsafe fn Partial fix of rust-lang#73904. This encloses `unsafe` operations in `unsafe fn` in `libstd/thread`. @rustbot modify labels: F-unsafe-block-in-unsafe-fn
…n-unsafe-fn, r=joshtriplett Std/thread: deny unsafe op in unsafe fn Partial fix of rust-lang#73904. This encloses `unsafe` operations in `unsafe fn` in `libstd/thread`. @rustbot modify labels: F-unsafe-block-in-unsafe-fn
…n-unsafe-fn, r=joshtriplett Std/thread: deny unsafe op in unsafe fn Partial fix of rust-lang#73904. This encloses `unsafe` operations in `unsafe fn` in `libstd/thread`. @rustbot modify labels: F-unsafe-block-in-unsafe-fn
Failed in #77001 (comment) |
0e56b52
to
3afadaa
Compare
I fixed the bug for @rustbot modify labels: -S-waiting-on-author +S-waiting-on-review |
@bors r+ |
📌 Commit d01bd19 has been approved by |
☀️ Test successful - checks-actions, checks-azure |
Partial fix of #73904.
This encloses
unsafe
operations inunsafe fn
inlibstd/thread
.@rustbot modify labels: F-unsafe-block-in-unsafe-fn