diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-04-05 13:26:26 +0000 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-04-05 13:49:48 +0000 |
| commit | c0ceefdfaf9a1e131bfbf4849bbaaac23af621a4 (patch) | |
| tree | 8dbce17dff46bdf159e6d70c8ac5ec7b44459fd7 /compiler/rustc_data_structures/src | |
| parent | 689beda166719ba423faa8ceaab009b85cf03c4a (diff) | |
| download | rust-c0ceefdfaf9a1e131bfbf4849bbaaac23af621a4.tar.gz rust-c0ceefdfaf9a1e131bfbf4849bbaaac23af621a4.zip | |
Use `OwnedSlice` instead of `owning_ref`
Diffstat (limited to 'compiler/rustc_data_structures/src')
| -rw-r--r-- | compiler/rustc_data_structures/src/sync.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_data_structures/src/sync.rs b/compiler/rustc_data_structures/src/sync.rs index 8a53e28034b..855a7eb331f 100644 --- a/compiler/rustc_data_structures/src/sync.rs +++ b/compiler/rustc_data_structures/src/sync.rs @@ -42,7 +42,7 @@ //! //! [^2] `MTLockRef` is a typedef. -use crate::owning_ref::{Erased, OwningRef}; +use crate::owned_slice::OwnedSlice; use std::collections::HashMap; use std::hash::{BuildHasher, Hash}; use std::ops::{Deref, DerefMut}; @@ -188,7 +188,7 @@ cfg_if! { } } - pub type MetadataRef = OwningRef<Box<dyn Erased>, [u8]>; + pub type MetadataRef = OwnedSlice; pub use std::rc::Rc as Lrc; pub use std::rc::Weak as Weak; @@ -371,7 +371,7 @@ cfg_if! { }); } - pub type MetadataRef = OwningRef<Box<dyn Erased + Send + Sync>, [u8]>; + 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 |
