about summary refs log tree commit diff
path: root/compiler/rustc_data_structures
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-04-02 15:06:37 +0000
committerbors <bors@rust-lang.org>2024-04-02 15:06:37 +0000
commit36b6f9b58e78a1225a322a759e42c262e6dc8d5d (patch)
tree1ea09b914595b27a0053505028465873c1755359 /compiler/rustc_data_structures
parent5dbaafdb9305df5332157e74eaaa55c615aa489f (diff)
parentbb439900ddaeb9ad7119508f9e1b9c7aa07b9f91 (diff)
downloadrust-36b6f9b58e78a1225a322a759e42c262e6dc8d5d.tar.gz
rust-36b6f9b58e78a1225a322a759e42c262e6dc8d5d.zip
Auto merge of #123354 - SteveLauC:fix/haiku, r=Nilstrieb
fix: build on haiku by adding missing import

Fix the build on Haiku by adding a missing import

```
error[E0433]: failed to resolve: use of undeclared crate or module `slice`
   --> /localhome/somers/.rustup/toolchains/nightly-x86_64-unknown-freebsd/lib/rustlib/src/rust/library/std/src/sys/pal/unix/thread.rs:272:24
    |
272 |             let name = slice::from_raw_parts(info.name.as_ptr() as *const u8, info.name.len());
    |                        ^^^^^ use of undeclared crate or module `slice`
    |
help: consider importing one of these items
    |
1   + use alloc::slice;
    |
1   + use core::slice;
    |
1   + use crate::slice;
```

Closes #123343
Diffstat (limited to 'compiler/rustc_data_structures')
0 files changed, 0 insertions, 0 deletions