Rollup merge of #85030 - jethrogb:jb/sgx-rearrange-files, r=nagisa

Rearrange SGX split module files

In #75979 several inlined modules were split out into multiple files.
This PR keeps the multiple files but moves a few things around to
organize things in a coherent way.
This commit is contained in:
Dylan DPC 2021-05-07 16:19:24 +02:00 committed by GitHub
commit 62b68f9688
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 6 deletions

View file

@ -13,13 +13,8 @@
#[cfg(test)]
mod tests;
/// A doubly-linked list where callers are in charge of memory allocation
/// of the nodes in the list.
mod unsafe_list;
/// Trivial spinlock-based implementation of `sync::Mutex`.
// FIXME: Perhaps use Intel TSX to avoid locking?
mod spin_mutex;
mod unsafe_list;
use crate::num::NonZeroUsize;
use crate::ops::{Deref, DerefMut};

View file

@ -1,3 +1,6 @@
//! Trivial spinlock-based implementation of `sync::Mutex`.
// FIXME: Perhaps use Intel TSX to avoid locking?
#[cfg(test)]
mod tests;

View file

@ -1,3 +1,6 @@
//! A doubly-linked list where callers are in charge of memory allocation
//! of the nodes in the list.
#[cfg(test)]
mod tests;