File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,12 +5,15 @@ use alloc::{
55 string:: { String , ToString } ,
66 vec:: Vec ,
77} ;
8- #[ cfg( all( feature = "std" , not( feature = "hashbrown" ) ) ) ]
9- use std:: collections:: { HashMap , HashSet } ;
8+
109#[ cfg( feature = "std" ) ]
11- use std:: { backtrace:: Backtrace , sync:: Arc } ;
10+ use std:: {
11+ backtrace:: Backtrace ,
12+ collections:: { HashMap , HashSet } ,
13+ sync:: Arc ,
14+ } ;
1215
13- #[ cfg( all ( not ( feature = "std" ) , feature = " hashbrown") ) ]
16+ #[ cfg( feature = "hashbrown" ) ]
1417use hashbrown:: { HashMap , HashSet } ;
1518use log:: { log, Level } ;
1619
Original file line number Diff line number Diff line change @@ -10,7 +10,9 @@ use crate::result::*;
1010pub ( crate ) mod dedicated_block_allocator;
1111pub ( crate ) use dedicated_block_allocator:: DedicatedBlockAllocator ;
1212
13+ #[ cfg( any( feature = "std" , feature = "hashbrown" ) ) ]
1314pub ( crate ) mod free_list_allocator;
15+ #[ cfg( any( feature = "std" , feature = "hashbrown" ) ) ]
1416pub ( crate ) use free_list_allocator:: FreeListAllocator ;
1517
1618#[ derive( PartialEq , Copy , Clone , Debug ) ]
Original file line number Diff line number Diff line change 222222#[ macro_use]
223223extern crate alloc;
224224
225- #[ cfg( all( not ( feature = "std" ) , not ( feature = "hashbrown" ) ) ) ]
226- compile_error ! ( "\" hashbrown\" feature should be enabled in \" no_std \" environment." ) ;
225+ #[ cfg( all( feature = "std" , feature = "hashbrown" ) ) ]
226+ compile_error ! ( "\" hashbrown\" feature should not be enabled in \" std \" environment." ) ;
227227
228228#[ cfg( all( not( feature = "std" ) , feature = "visualizer" ) ) ]
229229compile_error ! ( "Cannot enable \" visualizer\" feature in \" no_std\" environment." ) ;
You can’t perform that action at this time.
0 commit comments