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 https://github.com/rust-lang/miri-test-libstd/issues/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::`.
This commit is contained in:
Matthias Krüger 2022-04-11 12:06:58 +02:00 committed by GitHub
commit 5b8e2ea520
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
use alloc::boxed::ThinBox;
use core::mem::size_of;
use std::boxed::ThinBox;
#[test]
fn want_niche_optimization() {