diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-04-06 17:33:55 +0000 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-04-06 17:33:55 +0000 |
| commit | e0e39caf842579230bc73d2d32c1e293ca55efcb (patch) | |
| tree | f13609596777fe0a193426659eb1f26fa2f08145 /compiler/rustc_data_structures/src/owned_slice.rs | |
| parent | b6970d0e260aa33bb1e22ae7df739470ecad19e0 (diff) | |
| download | rust-e0e39caf842579230bc73d2d32c1e293ca55efcb.tar.gz rust-e0e39caf842579230bc73d2d32c1e293ca55efcb.zip | |
Add basic tests for `OwnedSlice`
Diffstat (limited to 'compiler/rustc_data_structures/src/owned_slice.rs')
| -rw-r--r-- | compiler/rustc_data_structures/src/owned_slice.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_data_structures/src/owned_slice.rs b/compiler/rustc_data_structures/src/owned_slice.rs index e35a93f2a1d..c0a3cb07194 100644 --- a/compiler/rustc_data_structures/src/owned_slice.rs +++ b/compiler/rustc_data_structures/src/owned_slice.rs @@ -111,3 +111,6 @@ unsafe impl Send for OwnedSlice {} // Safety: `OwnedSlice` is conceptually `(&'self.1 [u8], Box<dyn Send + Sync>)`, which is `Sync` unsafe impl Sync for OwnedSlice {} + +#[cfg(test)] +mod tests; |
