File tree 3 files changed +9
-0
lines changed
3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 1
1
//! Collection types.
2
2
3
+ // Note: This module is also included in the alloctests crate using #[path] to
4
+ // run the tests. See the comment there for an explanation why this is the case.
5
+
3
6
#![ stable( feature = "rust1" , since = "1.0.0" ) ]
4
7
5
8
#[ cfg( not( no_global_oom_handling) ) ]
Original file line number Diff line number Diff line change 1
1
#![ unstable( feature = "raw_vec_internals" , reason = "unstable const warnings" , issue = "none" ) ]
2
2
#![ cfg_attr( test, allow( dead_code) ) ]
3
3
4
+ // Note: This module is also included in the alloctests crate using #[path] to
5
+ // run the tests. See the comment there for an explanation why this is the case.
6
+
4
7
use core:: marker:: PhantomData ;
5
8
use core:: mem:: { ManuallyDrop , MaybeUninit , SizedTypeProperties } ;
6
9
use core:: ptr:: { self , NonNull , Unique } ;
Original file line number Diff line number Diff line change @@ -67,6 +67,9 @@ extern crate test;
67
67
mod testing;
68
68
use realalloc:: * ;
69
69
70
+ // We are directly including collections and raw_vec here as both use non-public
71
+ // methods and fields in tests and as such need to have the types to test in the
72
+ // same crate as the tests themself.
70
73
#[ path = "../alloc/src/collections/mod.rs" ]
71
74
mod collections;
72
75
You can’t perform that action at this time.
0 commit comments