File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,9 +10,7 @@ use crate::result::*;
1010pub ( crate ) mod dedicated_block_allocator;
1111pub ( crate ) use dedicated_block_allocator:: DedicatedBlockAllocator ;
1212
13- #[ cfg( any( feature = "std" , feature = "hashbrown" ) ) ]
1413pub ( crate ) mod free_list_allocator;
15- #[ cfg( any( feature = "std" , feature = "hashbrown" ) ) ]
1614pub ( crate ) use free_list_allocator:: FreeListAllocator ;
1715
1816#[ derive( PartialEq , Copy , Clone , Debug ) ]
Original file line number Diff line number Diff line change @@ -225,6 +225,9 @@ extern crate alloc;
225225#[ cfg( all( not( feature = "std" ) , feature = "visualizer" ) ) ]
226226compile_error ! ( "Cannot enable \" visualizer\" feature in \" no_std\" environment." ) ;
227227
228+ #[ cfg( not( any( feature = "std" , feature = "hashbrown" ) ) ) ]
229+ compile_error ! ( "Either `std` or `hashbrown` feature must be enabled" ) ;
230+
228231mod result;
229232pub use result:: * ;
230233
You can’t perform that action at this time.
0 commit comments