Skip to content

Commit 2eef27a

Browse files
committed
Merge MetadataRef type aliases
1 parent 8006510 commit 2eef27a

File tree

1 file changed

+3
-4
lines changed
  • compiler/rustc_data_structures/src

1 file changed

+3
-4
lines changed

compiler/rustc_data_structures/src/sync.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ mod mode {
9292
}
9393

9494
pub use mode::{is_dyn_thread_safe, set_dyn_thread_safe_mode};
95+
96+
pub type MetadataRef = OwnedSlice;
97+
9598
cfg_if! {
9699
if #[cfg(not(parallel_compiler))] {
97100
pub unsafe auto trait Send {}
@@ -244,8 +247,6 @@ cfg_if! {
244247
r
245248
}
246249

247-
pub type MetadataRef = OwnedSlice;
248-
249250
pub use std::rc::Rc as Lrc;
250251
pub use std::rc::Weak as Weak;
251252
pub use std::cell::Ref as ReadGuard;
@@ -517,8 +518,6 @@ cfg_if! {
517518
}
518519
}
519520

520-
pub type MetadataRef = OwnedSlice;
521-
522521
/// This makes locks panic if they are already held.
523522
/// It is only useful when you are running in a single thread
524523
const ERROR_CHECKING: bool = false;

0 commit comments

Comments
 (0)