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
LeSeulArtichaut
left a comment
There was a problem hiding this comment.
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
unsafeoperations inunsafe fninlibstd/thread.@rustbot modify labels: F-unsafe-block-in-unsafe-fn