about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src/sync.rs
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@gmail.com>2023-04-10 14:33:15 +0000
committerMaybe Waffle <waffle.lapkin@gmail.com>2023-05-16 11:43:25 +0000
commit2eef27a6c1808377e84d68c474f8246a2dafda63 (patch)
tree05c7c9b6004831d3112a90fd377892bc2f0f2b13 /compiler/rustc_data_structures/src/sync.rs
parent8006510ab0f69ee75e9c3f7e8bff3776886dae51 (diff)
downloadrust-2eef27a6c1808377e84d68c474f8246a2dafda63.tar.gz
rust-2eef27a6c1808377e84d68c474f8246a2dafda63.zip
Merge `MetadataRef` type aliases
Diffstat (limited to 'compiler/rustc_data_structures/src/sync.rs')
-rw-r--r--compiler/rustc_data_structures/src/sync.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/compiler/rustc_data_structures/src/sync.rs b/compiler/rustc_data_structures/src/sync.rs
index 8a778866a77..661dd5dacf5 100644
--- a/compiler/rustc_data_structures/src/sync.rs
+++ b/compiler/rustc_data_structures/src/sync.rs
@@ -92,6 +92,9 @@ mod mode {
 }
 
 pub use mode::{is_dyn_thread_safe, set_dyn_thread_safe_mode};
+
+pub type MetadataRef = OwnedSlice;
+
 cfg_if! {
     if #[cfg(not(parallel_compiler))] {
         pub unsafe auto trait Send {}
@@ -244,8 +247,6 @@ cfg_if! {
             r
         }
 
-        pub type MetadataRef = OwnedSlice;
-
         pub use std::rc::Rc as Lrc;
         pub use std::rc::Weak as Weak;
         pub use std::cell::Ref as ReadGuard;
@@ -517,8 +518,6 @@ cfg_if! {
             }
         }
 
-        pub type MetadataRef = OwnedSlice;
-
         /// This makes locks panic if they are already held.
         /// It is only useful when you are running in a single thread
         const ERROR_CHECKING: bool = false;