-
Notifications
You must be signed in to change notification settings - Fork 13k
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
SGX mutex is movable #85029
SGX mutex is movable #85029
Conversation
@@ -8,7 +8,7 @@ pub struct Mutex { | |||
inner: SpinMutex<WaitVariable<bool>>, | |||
} | |||
|
|||
pub type MovableMutex = Box<Mutex>; | |||
pub type MovableMutex = Mutex; |
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.
Is this truly a pub
type or just pub(crate)
one? If the former, then this is a breaking change.
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.
Pretty much everything in sys
is just pub(crate)
. The only thing we expose is std::sync::Mutex
; all the mutex
stuff in sys
and sys_common
are just implementation details.
@bors r+ |
📌 Commit 30b82e0 has been approved by |
…ou-se SGX mutex is movable r? `@m-ou-se`
Rollup of 9 pull requests Successful merges: - rust-lang#84254 (illumos should put libc last in library search order) - rust-lang#84442 (Unify rustc and rustdoc parsing of `cfg()`) - rust-lang#84655 (Cleanup of `wasm`) - rust-lang#84866 (linker: Avoid library duplication with `/WHOLEARCHIVE`) - rust-lang#84930 (rename LLVM target for RustyHermit) - rust-lang#84991 (rustc: Support Rust-specific features in -Ctarget-feature) - rust-lang#85029 (SGX mutex is movable) - rust-lang#85030 (Rearrange SGX split module files) - rust-lang#85033 (some further small cleanups) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
…=dtolnay SGX mutex is *not* moveable Reverts the erroneous change in rust-lang#85029.
…=dtolnay SGX mutex is *not* moveable Reverts the erroneous change in rust-lang#85029.
…=dtolnay SGX mutex is *not* moveable Reverts the erroneous change in rust-lang#85029.
r? @m-ou-se