Skip to content

Commit 5b8e2ea

Browse files
authored
Rollup merge of #95917 - RalfJung:thin-box-test, r=dtolnay
thin_box test: import from std, not alloc Importing from `alloc` makes [Miri fail](https://github.com/rust-lang/miri-test-libstd/runs/5964922742?check_suite_focus=true), probably due to the hack that we used to resolve rust-lang/miri-test-libstd#4. There might be better ways around this, but for now this is the easiest thing to do -- no other alloc integration test is importing from `alloc::`.
2 parents 053f703 + dbc0afa commit 5b8e2ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/tests/thin_box.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use alloc::boxed::ThinBox;
21
use core::mem::size_of;
2+
use std::boxed::ThinBox;
33

44
#[test]
55
fn want_niche_optimization() {

0 commit comments

Comments
 (0)