File tree 2 files changed +7
-2
lines changed 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ pub fn select(input: TokenStream) -> TokenStream {
262
262
#( #poll_functions ) *
263
263
264
264
let mut __select_arr = [ #( #variant_names ) , * ] ;
265
- <[ _] as #rand_crate:: prelude :: SliceRandom >:: shuffle(
265
+ <[ _] as #rand_crate:: SliceRandom >:: shuffle(
266
266
& mut __select_arr,
267
267
& mut #rand_crate:: thread_rng( ) ,
268
268
) ;
Original file line number Diff line number Diff line change @@ -36,7 +36,12 @@ pub use self::async_await::*;
36
36
#[ cfg( feature = "async-await" ) ]
37
37
#[ doc( hidden) ]
38
38
pub mod rand_reexport { // used by select!
39
- pub use rand:: * ;
39
+ pub use rand:: { prelude:: SliceRandom , thread_rng} ;
40
+
41
+ // HACK: Define dummy `ThreadRng` to avoid `intra_doc_link_resolution_failure` warning.
42
+ #[ allow( missing_debug_implementations) ]
43
+ #[ doc( hidden) ]
44
+ pub struct ThreadRng { }
40
45
}
41
46
42
47
#[ doc( hidden) ]
You can’t perform that action at this time.
0 commit comments