File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 52
52
#![ feature( negative_impls) ]
53
53
#![ feature( never_type) ]
54
54
#![ feature( optimize_attribute) ]
55
+ #![ feature( prelude_import) ]
55
56
#![ feature( rustc_allow_const_fn_unstable) ]
56
57
#![ feature( rustc_attrs) ]
57
58
#![ feature( staged_api) ]
61
62
62
63
// Allow testing this library
63
64
extern crate alloc as realalloc;
65
+
66
+ // This is needed to provide macros to the directly imported alloc modules below.
67
+ #[ prelude_import]
68
+ #[ allow( unused_imports) ]
69
+ use std:: prelude:: rust_2024:: * ;
64
70
extern crate std;
71
+
65
72
#[ cfg( test) ]
66
73
extern crate test;
67
74
mod testing;
75
+
68
76
use realalloc:: * ;
69
77
70
78
// We are directly including collections and raw_vec here as both use non-public
@@ -85,8 +93,7 @@ pub(crate) mod test_helpers {
85
93
let mut hasher = std:: hash:: RandomState :: new ( ) . build_hasher ( ) ;
86
94
std:: panic:: Location :: caller ( ) . hash ( & mut hasher) ;
87
95
let hc64 = hasher. finish ( ) ;
88
- let seed_vec =
89
- hc64. to_le_bytes ( ) . into_iter ( ) . chain ( 0u8 ..8 ) . collect :: < crate :: vec:: Vec < u8 > > ( ) ;
96
+ let seed_vec = hc64. to_le_bytes ( ) . into_iter ( ) . chain ( 0u8 ..8 ) . collect :: < std:: vec:: Vec < u8 > > ( ) ;
90
97
let seed: [ u8 ; 16 ] = seed_vec. as_slice ( ) . try_into ( ) . unwrap ( ) ;
91
98
rand:: SeedableRng :: from_seed ( seed)
92
99
}
You can’t perform that action at this time.
0 commit comments